nl-linux 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/Rakefile +31 -5
- data/generated/nl/linux/binder.rb +3 -1
- data/generated/nl/linux/conntrack.rb +3 -1
- data/generated/nl/linux/dev_energymodel.rb +3 -1
- data/generated/nl/linux/devlink.rb +3 -1
- data/generated/nl/linux/dpll.rb +3 -1
- data/generated/nl/linux/ethtool.rb +3 -1
- data/generated/nl/linux/fou.rb +3 -1
- data/generated/nl/linux/handshake.rb +3 -1
- data/generated/nl/linux/lockd.rb +3 -1
- data/generated/nl/linux/mptcp_pm.rb +3 -1
- data/generated/nl/linux/net_shaper.rb +3 -1
- data/generated/nl/linux/netdev.rb +3 -1
- data/generated/nl/linux/nfsd.rb +3 -1
- data/generated/nl/linux/nftables.rb +3 -1
- data/generated/nl/linux/nl80211.rb +3 -1
- data/generated/nl/linux/nlctrl.rb +3 -1
- data/generated/nl/linux/ovpn.rb +3 -1
- data/generated/nl/linux/ovs_datapath.rb +3 -1
- data/generated/nl/linux/ovs_flow.rb +3 -1
- data/generated/nl/linux/ovs_vport.rb +3 -1
- data/generated/nl/linux/psp.rb +3 -1
- data/generated/nl/linux/rt_addr.rb +3 -1
- data/generated/nl/linux/rt_link.rb +3 -1
- data/generated/nl/linux/rt_neigh.rb +3 -1
- data/generated/nl/linux/rt_route.rb +3 -1
- data/generated/nl/linux/rt_rule.rb +3 -1
- data/generated/nl/linux/tc.rb +3 -1
- data/generated/nl/linux/tcp_metrics.rb +3 -1
- data/generated/nl/linux/team.rb +3 -1
- data/generated/nl/linux/wireguard.rb +3 -1
- data/generated/nl/linux.rb +35 -0
- data/lib/nl/linux/version.rb +1 -1
- data/lib/nl-linux.rb +1 -1
- metadata +7 -7
- data/lib/nl/linux.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 284ea375be70db2139625cb4082e1fd210a73d8cc6881fc6e9034a6209b1b976
|
|
4
|
+
data.tar.gz: e9ce0e063afdfff003858e9fc2666a0b1fd0dff7b0e60911f9cb2b049dcbb858
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 360ff89e86f3abeb0a8809466203cf4223ca13458adcb5aafc6a52ef47ddf04a43f74ec3417546a5e0f35cb055a9e0ff13faaf7ddea42c26834b134811a46427
|
|
7
|
+
data.tar.gz: 8412f62adba758c60aca182f4efb0e29712786dc84ba7d677efd3a2fee8cbf08d513f5e06f5352ae3042563d34fa1e5e0ca44825c641c3de8609722f5ff2e2f7
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
|
@@ -8,11 +8,17 @@ directory 'generated'
|
|
|
8
8
|
directory 'generated/nl' => 'generated'
|
|
9
9
|
directory 'generated/nl/linux' => 'generated/nl'
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
specs = Dir['*.yaml', base: 'linux'].to_h do |spec|
|
|
12
|
+
[
|
|
13
|
+
spec,
|
|
14
|
+
source: 'linux/' + spec,
|
|
15
|
+
target: 'generated/nl/linux/' + spec.gsub(?-, ?_).sub(%r[\.yaml\z], '.rb'),
|
|
16
|
+
]
|
|
17
|
+
end
|
|
15
18
|
|
|
19
|
+
# For each of linux/%.yaml spec, generate generated/nl/linux/%.rb
|
|
20
|
+
specs.each do |spec, h|
|
|
21
|
+
h => {source:, target:}
|
|
16
22
|
task :generate => target
|
|
17
23
|
task target => [source, 'generated/nl/linux'] do
|
|
18
24
|
require 'ynl'
|
|
@@ -22,10 +28,30 @@ Dir['*.yaml', base: 'linux'].each do |spec|
|
|
|
22
28
|
File.open(target, 'w') do |out|
|
|
23
29
|
out << front
|
|
24
30
|
out << "#--\n"
|
|
25
|
-
|
|
31
|
+
out << Ynl::Generator::PRELUDE
|
|
32
|
+
out << "module Nl; module Linux\n"
|
|
33
|
+
Ynl::Family.generate(src.tap(&:rewind), out)
|
|
34
|
+
out << "end; end\n"
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
task 'generated/nl/linux.rb' => specs.values.map { it[:target] } do |t|
|
|
41
|
+
File.open(t.name, 'w') do |out|
|
|
42
|
+
out << "require 'nl/linux/version'\n"
|
|
43
|
+
out << "module Nl\n"
|
|
44
|
+
out << " module Linux\n"
|
|
45
|
+
specs.values.map { it[:target] }.each do |f|
|
|
46
|
+
cls = File.read(f)[/^class\s\K[^\s]+/]
|
|
47
|
+
if cls
|
|
48
|
+
out << " autoload :#{cls}, #{f.sub('generated/', '').dump}\n"
|
|
26
49
|
end
|
|
27
50
|
end
|
|
51
|
+
out << " end\n"
|
|
52
|
+
out << "end\n"
|
|
28
53
|
end
|
|
29
54
|
end
|
|
55
|
+
task :generate => 'generated/nl/linux.rb'
|
|
30
56
|
|
|
31
57
|
task :default => :generate
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
# rbs_inline: enabled
|
|
8
8
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
9
9
|
require 'nl'
|
|
10
|
+
module Nl; module Linux
|
|
10
11
|
# Binder interface over generic netlink
|
|
11
|
-
class
|
|
12
|
+
class Binder < ::Nl::Family
|
|
12
13
|
NAME = "binder"
|
|
13
14
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("binder"))
|
|
14
15
|
module Structs
|
|
@@ -92,3 +93,4 @@ class Nl::Linux::Binder < ::Nl::Family
|
|
|
92
93
|
module Messages
|
|
93
94
|
end
|
|
94
95
|
end
|
|
96
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Netfilter connection tracking subsystem over nfnetlink
|
|
8
|
-
class
|
|
9
|
+
class Conntrack < ::Nl::Family
|
|
9
10
|
NAME = "conntrack"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("conntrack", 12))
|
|
11
12
|
module Structs
|
|
@@ -1223,3 +1224,4 @@ class Nl::Linux::Conntrack < ::Nl::Family
|
|
|
1223
1224
|
exchange_message(:"dump", Messages::DumpGetStatsRequest, Messages::DumpGetStatsReply, args, &block)
|
|
1224
1225
|
end
|
|
1225
1226
|
end
|
|
1227
|
+
end; end
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
# rbs_inline: enabled
|
|
8
8
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
9
9
|
require 'nl'
|
|
10
|
+
module Nl; module Linux
|
|
10
11
|
# Energy model netlink interface to notify its changes.
|
|
11
|
-
class
|
|
12
|
+
class DevEnergymodel < ::Nl::Family
|
|
12
13
|
NAME = "dev-energymodel"
|
|
13
14
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("dev-energymodel"))
|
|
14
15
|
module Structs
|
|
@@ -231,3 +232,4 @@ class Nl::Linux::DevEnergymodel < ::Nl::Family
|
|
|
231
232
|
exchange_message(:"do", Messages::DoGetPerfTableRequest, Messages::DoGetPerfTableReply, args)
|
|
232
233
|
end
|
|
233
234
|
end
|
|
235
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Partial family for Devlink.
|
|
8
|
-
class
|
|
9
|
+
class Devlink < ::Nl::Family
|
|
9
10
|
NAME = "devlink"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("devlink"))
|
|
11
12
|
module Structs
|
|
@@ -5173,3 +5174,4 @@ class Nl::Linux::Devlink < ::Nl::Family
|
|
|
5173
5174
|
exchange_message(:"do", Messages::DoNotifyFilterSetRequest, nil, args)
|
|
5174
5175
|
end
|
|
5175
5176
|
end
|
|
5177
|
+
end; end
|
data/generated/nl/linux/dpll.rb
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# DPLL subsystem.
|
|
8
|
-
class
|
|
9
|
+
class Dpll < ::Nl::Family
|
|
9
10
|
NAME = "dpll"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("dpll"))
|
|
11
12
|
module Structs
|
|
@@ -940,3 +941,4 @@ class Nl::Linux::Dpll < ::Nl::Family
|
|
|
940
941
|
exchange_message(:"do", Messages::DoPinSetRequest, nil, args)
|
|
941
942
|
end
|
|
942
943
|
end
|
|
944
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Partial family for Ethtool Netlink.
|
|
8
|
-
class
|
|
9
|
+
class Ethtool < ::Nl::Family
|
|
9
10
|
NAME = "ethtool"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("ethtool"))
|
|
11
12
|
module Structs
|
|
@@ -7117,3 +7118,4 @@ class Nl::Linux::Ethtool < ::Nl::Family
|
|
|
7117
7118
|
exchange_message(:"dump", Messages::DumpMseGetRequest, Messages::DumpMseGetReply, args, &block)
|
|
7118
7119
|
end
|
|
7119
7120
|
end
|
|
7121
|
+
end; end
|
data/generated/nl/linux/fou.rb
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Foo-over-UDP.
|
|
8
|
-
class
|
|
9
|
+
class Fou < ::Nl::Family
|
|
9
10
|
NAME = "fou"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("fou"))
|
|
11
12
|
module Structs
|
|
@@ -328,3 +329,4 @@ class Nl::Linux::Fou < ::Nl::Family
|
|
|
328
329
|
exchange_message(:"do", Messages::DoGetRequest, Messages::DoGetReply, args)
|
|
329
330
|
end
|
|
330
331
|
end
|
|
332
|
+
end; end
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
# rbs_inline: enabled
|
|
10
10
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
11
11
|
require 'nl'
|
|
12
|
+
module Nl; module Linux
|
|
12
13
|
# Netlink protocol to request a transport layer security handshake.
|
|
13
|
-
class
|
|
14
|
+
class Handshake < ::Nl::Family
|
|
14
15
|
NAME = "handshake"
|
|
15
16
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("handshake"))
|
|
16
17
|
module Structs
|
|
@@ -234,3 +235,4 @@ class Nl::Linux::Handshake < ::Nl::Family
|
|
|
234
235
|
exchange_message(:"do", Messages::DoDoneRequest, nil, args)
|
|
235
236
|
end
|
|
236
237
|
end
|
|
238
|
+
end; end
|
data/generated/nl/linux/lockd.rb
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# lockd configuration over generic netlink
|
|
8
|
-
class
|
|
9
|
+
class Lockd < ::Nl::Family
|
|
9
10
|
NAME = "lockd"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("lockd"))
|
|
11
12
|
module Structs
|
|
@@ -95,3 +96,4 @@ class Nl::Linux::Lockd < ::Nl::Family
|
|
|
95
96
|
exchange_message(:"do", Messages::DoServerSetRequest, nil, args)
|
|
96
97
|
end
|
|
97
98
|
end
|
|
99
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Multipath TCP.
|
|
8
|
-
class
|
|
9
|
+
class MptcpPm < ::Nl::Family
|
|
9
10
|
NAME = "mptcp_pm"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("mptcp_pm"))
|
|
11
12
|
module Structs
|
|
@@ -603,3 +604,4 @@ class Nl::Linux::MptcpPm < ::Nl::Family
|
|
|
603
604
|
exchange_message(:"do", Messages::DoSubflowDestroyRequest, nil, args)
|
|
604
605
|
end
|
|
605
606
|
end
|
|
607
|
+
end; end
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Networking HW rate limiting configuration.
|
|
8
9
|
#
|
|
9
10
|
# This API allows configuring HW shapers available on the network
|
|
@@ -32,7 +33,7 @@ require 'nl'
|
|
|
32
33
|
# support for complex scheduling hierarchy, or for some shaping
|
|
33
34
|
# parameters. The user can introspect the HW capabilities via the
|
|
34
35
|
# `cap-get` operation.
|
|
35
|
-
class
|
|
36
|
+
class NetShaper < ::Nl::Family
|
|
36
37
|
NAME = "net-shaper"
|
|
37
38
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("net-shaper"))
|
|
38
39
|
module Structs
|
|
@@ -727,3 +728,4 @@ class Nl::Linux::NetShaper < ::Nl::Family
|
|
|
727
728
|
exchange_message(:"dump", Messages::DumpCapGetRequest, Messages::DumpCapGetReply, args, &block)
|
|
728
729
|
end
|
|
729
730
|
end
|
|
731
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# netdev configuration over generic netlink.
|
|
8
|
-
class
|
|
9
|
+
class Netdev < ::Nl::Family
|
|
9
10
|
NAME = "netdev"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("netdev"))
|
|
11
12
|
module Structs
|
|
@@ -1446,3 +1447,4 @@ class Nl::Linux::Netdev < ::Nl::Family
|
|
|
1446
1447
|
exchange_message(:"do", Messages::DoBindTxRequest, Messages::DoBindTxReply, args)
|
|
1447
1448
|
end
|
|
1448
1449
|
end
|
|
1450
|
+
end; end
|
data/generated/nl/linux/nfsd.rb
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# NFSD configuration over generic netlink.
|
|
8
|
-
class
|
|
9
|
+
class Nfsd < ::Nl::Family
|
|
9
10
|
NAME = "nfsd"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("nfsd"))
|
|
11
12
|
module Structs
|
|
@@ -496,3 +497,4 @@ class Nl::Linux::Nfsd < ::Nl::Family
|
|
|
496
497
|
exchange_message(:"do", Messages::DoPoolModeSetRequest, nil, args)
|
|
497
498
|
end
|
|
498
499
|
end
|
|
500
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Netfilter nftables configuration over netlink.
|
|
8
|
-
class
|
|
9
|
+
class Nftables < ::Nl::Family
|
|
9
10
|
NAME = "nftables"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("nftables", 12))
|
|
11
12
|
module Structs
|
|
@@ -2920,3 +2921,4 @@ class Nl::Linux::Nftables < ::Nl::Family
|
|
|
2920
2921
|
exchange_message(:"do", Messages::DoDestroyflowtableRequest, nil, args)
|
|
2921
2922
|
end
|
|
2922
2923
|
end
|
|
2924
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Netlink API for 802.11 wireless devices
|
|
8
|
-
class
|
|
9
|
+
class Nl80211 < ::Nl::Family
|
|
9
10
|
NAME = "nl80211"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("nl80211"))
|
|
11
12
|
module Structs
|
|
@@ -3389,3 +3390,4 @@ class Nl::Linux::Nl80211 < ::Nl::Family
|
|
|
3389
3390
|
exchange_message(:"do", Messages::DoGetProtocolFeaturesRequest, Messages::DoGetProtocolFeaturesReply, args)
|
|
3390
3391
|
end
|
|
3391
3392
|
end
|
|
3393
|
+
end; end
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# genetlink meta-family that exposes information about all genetlink
|
|
8
9
|
# families registered in the kernel (including itself).
|
|
9
|
-
class
|
|
10
|
+
class Nlctrl < ::Nl::Family
|
|
10
11
|
NAME = "nlctrl"
|
|
11
12
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("nlctrl"))
|
|
12
13
|
module Structs
|
|
@@ -393,3 +394,4 @@ class Nl::Linux::Nlctrl < ::Nl::Family
|
|
|
393
394
|
exchange_message(:"dump", Messages::DumpGetpolicyRequest, Messages::DumpGetpolicyReply, args, &block)
|
|
394
395
|
end
|
|
395
396
|
end
|
|
397
|
+
end; end
|
data/generated/nl/linux/ovpn.rb
CHANGED
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
# rbs_inline: enabled
|
|
10
10
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
11
11
|
require 'nl'
|
|
12
|
+
module Nl; module Linux
|
|
12
13
|
# Netlink protocol to control OpenVPN network devices
|
|
13
|
-
class
|
|
14
|
+
class Ovpn < ::Nl::Family
|
|
14
15
|
NAME = "ovpn"
|
|
15
16
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("ovpn"))
|
|
16
17
|
module Structs
|
|
@@ -960,3 +961,4 @@ class Nl::Linux::Ovpn < ::Nl::Family
|
|
|
960
961
|
exchange_message(:"do", Messages::DoKeyDelRequest, nil, args)
|
|
961
962
|
end
|
|
962
963
|
end
|
|
964
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# OVS datapath configuration over generic netlink.
|
|
8
|
-
class
|
|
9
|
+
class OvsDatapath < ::Nl::Family
|
|
9
10
|
NAME = "ovs_datapath"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("ovs_datapath"))
|
|
11
12
|
module Structs
|
|
@@ -317,3 +318,4 @@ class Nl::Linux::OvsDatapath < ::Nl::Family
|
|
|
317
318
|
exchange_message(:"do", Messages::DoDelRequest, nil, args)
|
|
318
319
|
end
|
|
319
320
|
end
|
|
321
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# OVS flow configuration over generic netlink.
|
|
8
|
-
class
|
|
9
|
+
class OvsFlow < ::Nl::Family
|
|
9
10
|
NAME = "ovs_flow"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("ovs_flow"))
|
|
11
12
|
module Structs
|
|
@@ -1443,3 +1444,4 @@ class Nl::Linux::OvsFlow < ::Nl::Family
|
|
|
1443
1444
|
exchange_message(:"do", Messages::DoNewRequest, nil, args)
|
|
1444
1445
|
end
|
|
1445
1446
|
end
|
|
1447
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# OVS vport configuration over generic netlink.
|
|
8
|
-
class
|
|
9
|
+
class OvsVport < ::Nl::Family
|
|
9
10
|
NAME = "ovs_vport"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("ovs_vport"))
|
|
11
12
|
module Structs
|
|
@@ -387,3 +388,4 @@ class Nl::Linux::OvsVport < ::Nl::Family
|
|
|
387
388
|
exchange_message(:"dump", Messages::DumpGetRequest, Messages::DumpGetReply, args, &block)
|
|
388
389
|
end
|
|
389
390
|
end
|
|
391
|
+
end; end
|
data/generated/nl/linux/psp.rb
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# PSP Security Protocol Generic Netlink family.
|
|
8
|
-
class
|
|
9
|
+
class Psp < ::Nl::Family
|
|
9
10
|
NAME = "psp"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("psp"))
|
|
11
12
|
module Structs
|
|
@@ -459,3 +460,4 @@ class Nl::Linux::Psp < ::Nl::Family
|
|
|
459
460
|
exchange_message(:"do", Messages::DoGetStatsRequest, Messages::DoGetStatsReply, args)
|
|
460
461
|
end
|
|
461
462
|
end
|
|
463
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Address configuration over rtnetlink.
|
|
8
|
-
class
|
|
9
|
+
class RtAddr < ::Nl::Family
|
|
9
10
|
NAME = "rt-addr"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("rt-addr", 0))
|
|
11
12
|
module Structs
|
|
@@ -444,3 +445,4 @@ class Nl::Linux::RtAddr < ::Nl::Family
|
|
|
444
445
|
exchange_message(:"dump", Messages::DumpGetmulticastRequest, Messages::DumpGetmulticastReply, args, &block)
|
|
445
446
|
end
|
|
446
447
|
end
|
|
448
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Link configuration over rtnetlink.
|
|
8
|
-
class
|
|
9
|
+
class RtLink < ::Nl::Family
|
|
9
10
|
NAME = "rt-link"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("rt-link", 0))
|
|
11
12
|
module Structs
|
|
@@ -4609,3 +4610,4 @@ class Nl::Linux::RtLink < ::Nl::Family
|
|
|
4609
4610
|
exchange_message(:"dump", Messages::DumpGetstatsRequest, Messages::DumpGetstatsReply, args, &block)
|
|
4610
4611
|
end
|
|
4611
4612
|
end
|
|
4613
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# IP neighbour management over rtnetlink.
|
|
8
|
-
class
|
|
9
|
+
class RtNeigh < ::Nl::Family
|
|
9
10
|
NAME = "rt-neigh"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("rt-neigh", 0))
|
|
11
12
|
module Structs
|
|
@@ -893,3 +894,4 @@ class Nl::Linux::RtNeigh < ::Nl::Family
|
|
|
893
894
|
exchange_message(:"do", Messages::DoSetneightblRequest, nil, args)
|
|
894
895
|
end
|
|
895
896
|
end
|
|
897
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Route configuration over rtnetlink.
|
|
8
|
-
class
|
|
9
|
+
class RtRoute < ::Nl::Family
|
|
9
10
|
NAME = "rt-route"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("rt-route", 0))
|
|
11
12
|
module Structs
|
|
@@ -1122,3 +1123,4 @@ class Nl::Linux::RtRoute < ::Nl::Family
|
|
|
1122
1123
|
exchange_message(:"do", Messages::DoDelrouteRequest, nil, args)
|
|
1123
1124
|
end
|
|
1124
1125
|
end
|
|
1126
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# FIB rule management over rtnetlink.
|
|
8
|
-
class
|
|
9
|
+
class RtRule < ::Nl::Family
|
|
9
10
|
NAME = "rt-rule"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("rt-rule", 0))
|
|
11
12
|
module Structs
|
|
@@ -704,3 +705,4 @@ class Nl::Linux::RtRule < ::Nl::Family
|
|
|
704
705
|
exchange_message(:"dump", Messages::DumpGetruleRequest, Messages::DumpGetruleReply, args, &block)
|
|
705
706
|
end
|
|
706
707
|
end
|
|
708
|
+
end; end
|
data/generated/nl/linux/tc.rb
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Netlink raw family for tc qdisc, chain, class and filter configuration over rtnetlink.
|
|
8
|
-
class
|
|
9
|
+
class Tc < ::Nl::Family
|
|
9
10
|
NAME = "tc"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("tc", 0))
|
|
11
12
|
module Structs
|
|
@@ -7062,3 +7063,4 @@ class Nl::Linux::Tc < ::Nl::Family
|
|
|
7062
7063
|
exchange_message(:"do", Messages::DoGetchainRequest, Messages::DoGetchainReply, args)
|
|
7063
7064
|
end
|
|
7064
7065
|
end
|
|
7066
|
+
end; end
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Management interface for TCP metrics.
|
|
8
|
-
class
|
|
9
|
+
class TcpMetrics < ::Nl::Family
|
|
9
10
|
NAME = "tcp_metrics"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("tcp_metrics"))
|
|
11
12
|
module Structs
|
|
@@ -313,3 +314,4 @@ class Nl::Linux::TcpMetrics < ::Nl::Family
|
|
|
313
314
|
exchange_message(:"do", Messages::DoDelRequest, nil, args)
|
|
314
315
|
end
|
|
315
316
|
end
|
|
317
|
+
end; end
|
data/generated/nl/linux/team.rb
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# Network team device driver.
|
|
8
|
-
class
|
|
9
|
+
class Team < ::Nl::Family
|
|
9
10
|
NAME = "team"
|
|
10
11
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("team"))
|
|
11
12
|
module Structs
|
|
@@ -335,3 +336,4 @@ class Nl::Linux::Team < ::Nl::Family
|
|
|
335
336
|
exchange_message(:"do", Messages::DoPortListGetRequest, Messages::DoPortListGetReply, args)
|
|
336
337
|
end
|
|
337
338
|
end
|
|
339
|
+
end; end
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
# rbs_inline: enabled
|
|
5
5
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
6
6
|
require 'nl'
|
|
7
|
+
module Nl; module Linux
|
|
7
8
|
# **Netlink protocol to control WireGuard network devices.**
|
|
8
9
|
#
|
|
9
10
|
# The below enums and macros are for interfacing with WireGuard, using generic
|
|
@@ -12,7 +13,7 @@ require 'nl'
|
|
|
12
13
|
# attributes, these two commands actually accept a slightly different set of
|
|
13
14
|
# inputs and outputs. These differences are noted under the individual
|
|
14
15
|
# attributes.
|
|
15
|
-
class
|
|
16
|
+
class Wireguard < ::Nl::Family
|
|
16
17
|
NAME = "wireguard"
|
|
17
18
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("wireguard"))
|
|
18
19
|
module Structs
|
|
@@ -426,3 +427,4 @@ class Nl::Linux::Wireguard < ::Nl::Family
|
|
|
426
427
|
exchange_message(:"do", Messages::DoSetDeviceRequest, nil, args)
|
|
427
428
|
end
|
|
428
429
|
end
|
|
430
|
+
end; end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
require 'nl/linux/version'
|
|
2
|
+
module Nl
|
|
3
|
+
module Linux
|
|
4
|
+
autoload :Binder, "nl/linux/binder.rb"
|
|
5
|
+
autoload :Conntrack, "nl/linux/conntrack.rb"
|
|
6
|
+
autoload :DevEnergymodel, "nl/linux/dev_energymodel.rb"
|
|
7
|
+
autoload :Devlink, "nl/linux/devlink.rb"
|
|
8
|
+
autoload :Dpll, "nl/linux/dpll.rb"
|
|
9
|
+
autoload :Ethtool, "nl/linux/ethtool.rb"
|
|
10
|
+
autoload :Fou, "nl/linux/fou.rb"
|
|
11
|
+
autoload :Handshake, "nl/linux/handshake.rb"
|
|
12
|
+
autoload :Lockd, "nl/linux/lockd.rb"
|
|
13
|
+
autoload :MptcpPm, "nl/linux/mptcp_pm.rb"
|
|
14
|
+
autoload :NetShaper, "nl/linux/net_shaper.rb"
|
|
15
|
+
autoload :Netdev, "nl/linux/netdev.rb"
|
|
16
|
+
autoload :Nfsd, "nl/linux/nfsd.rb"
|
|
17
|
+
autoload :Nftables, "nl/linux/nftables.rb"
|
|
18
|
+
autoload :Nl80211, "nl/linux/nl80211.rb"
|
|
19
|
+
autoload :Nlctrl, "nl/linux/nlctrl.rb"
|
|
20
|
+
autoload :Ovpn, "nl/linux/ovpn.rb"
|
|
21
|
+
autoload :OvsDatapath, "nl/linux/ovs_datapath.rb"
|
|
22
|
+
autoload :OvsFlow, "nl/linux/ovs_flow.rb"
|
|
23
|
+
autoload :OvsVport, "nl/linux/ovs_vport.rb"
|
|
24
|
+
autoload :Psp, "nl/linux/psp.rb"
|
|
25
|
+
autoload :RtAddr, "nl/linux/rt_addr.rb"
|
|
26
|
+
autoload :RtLink, "nl/linux/rt_link.rb"
|
|
27
|
+
autoload :RtNeigh, "nl/linux/rt_neigh.rb"
|
|
28
|
+
autoload :RtRoute, "nl/linux/rt_route.rb"
|
|
29
|
+
autoload :RtRule, "nl/linux/rt_rule.rb"
|
|
30
|
+
autoload :Tc, "nl/linux/tc.rb"
|
|
31
|
+
autoload :TcpMetrics, "nl/linux/tcp_metrics.rb"
|
|
32
|
+
autoload :Team, "nl/linux/team.rb"
|
|
33
|
+
autoload :Wireguard, "nl/linux/wireguard.rb"
|
|
34
|
+
end
|
|
35
|
+
end
|
data/lib/nl/linux/version.rb
CHANGED
data/lib/nl-linux.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require 'nl/linux'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nl-linux
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kasumi Hanazuki
|
|
@@ -15,28 +15,28 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.2.
|
|
18
|
+
version: 0.2.2
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.2.
|
|
25
|
+
version: 0.2.2
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: ynl
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.2.
|
|
32
|
+
version: 0.2.2
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.2.
|
|
39
|
+
version: 0.2.2
|
|
40
40
|
description: Linux Netlink client
|
|
41
41
|
email:
|
|
42
42
|
- kasumi@rollingapple.net
|
|
@@ -48,6 +48,7 @@ files:
|
|
|
48
48
|
- NLSPEC_VERSION
|
|
49
49
|
- README.md
|
|
50
50
|
- Rakefile
|
|
51
|
+
- generated/nl/linux.rb
|
|
51
52
|
- generated/nl/linux/binder.rb
|
|
52
53
|
- generated/nl/linux/conntrack.rb
|
|
53
54
|
- generated/nl/linux/dev_energymodel.rb
|
|
@@ -79,7 +80,6 @@ files:
|
|
|
79
80
|
- generated/nl/linux/team.rb
|
|
80
81
|
- generated/nl/linux/wireguard.rb
|
|
81
82
|
- lib/nl-linux.rb
|
|
82
|
-
- lib/nl/linux.rb
|
|
83
83
|
- lib/nl/linux/version.rb
|
|
84
84
|
- linux/BSD-3-Clause
|
|
85
85
|
- linux/GPL-2.0
|
|
@@ -119,7 +119,7 @@ licenses:
|
|
|
119
119
|
- "(GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause"
|
|
120
120
|
metadata:
|
|
121
121
|
homepage_uri: https://github.com/hanazuki/nl
|
|
122
|
-
source_code_uri: https://github.com/hanazuki/nl/tree/v0.2.
|
|
122
|
+
source_code_uri: https://github.com/hanazuki/nl/tree/v0.2.2
|
|
123
123
|
changelog_uri: https://github.com/hanazuki/nl/blob/master/CHANGELOG.md
|
|
124
124
|
rdoc_options: []
|
|
125
125
|
require_paths:
|
data/lib/nl/linux.rb
DELETED