nl-linux 0.3.0 → 0.4.1
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/.yardopts +5 -0
- data/CHANGELOG.md +6 -0
- data/Rakefile +14 -2
- data/generated/nl/linux/binder.rb +172 -44
- data/generated/nl/linux/conntrack.rb +1293 -370
- data/generated/nl/linux/dev_energymodel.rb +278 -93
- data/generated/nl/linux/devlink.rb +5654 -1954
- data/generated/nl/linux/dpll.rb +1838 -669
- data/generated/nl/linux/drm_ras.rb +234 -72
- data/generated/nl/linux/ethtool.rb +6683 -2885
- data/generated/nl/linux/fou.rb +308 -129
- data/generated/nl/linux/handshake.rb +277 -99
- data/generated/nl/linux/lockd.rb +88 -33
- data/generated/nl/linux/mptcp_pm.rb +639 -186
- data/generated/nl/linux/net_shaper.rb +782 -224
- data/generated/nl/linux/netdev.rb +2105 -631
- data/generated/nl/linux/nfsd.rb +1030 -358
- data/generated/nl/linux/nftables.rb +5041 -1612
- data/generated/nl/linux/nl80211.rb +4531 -871
- data/generated/nl/linux/nlctrl.rb +411 -119
- data/generated/nl/linux/ovpn.rb +1211 -293
- data/generated/nl/linux/ovs_datapath.rb +271 -106
- data/generated/nl/linux/ovs_flow.rb +1819 -354
- data/generated/nl/linux/ovs_packet.rb +257 -82
- data/generated/nl/linux/ovs_vport.rb +334 -132
- data/generated/nl/linux/psp.rb +916 -281
- data/generated/nl/linux/rt_addr.rb +369 -166
- data/generated/nl/linux/rt_link.rb +6708 -1450
- data/generated/nl/linux/rt_neigh.rb +919 -364
- data/generated/nl/linux/rt_route.rb +1034 -448
- data/generated/nl/linux/rt_rule.rb +775 -395
- data/generated/nl/linux/sunrpc_cache.rb +297 -102
- data/generated/nl/linux/tc.rb +9989 -1780
- data/generated/nl/linux/tcp_metrics.rb +327 -105
- data/generated/nl/linux/team.rb +279 -93
- data/generated/nl/linux/wireguard.rb +432 -95
- data/generated/nl/linux.rb +1 -0
- data/lib/nl/linux/nlctrl_resolver.rb +31 -0
- data/lib/nl/linux/version.rb +1 -1
- data/sig/generated/nl/linux/binder.rbs +366 -0
- data/sig/generated/nl/linux/conntrack.rbs +2787 -0
- data/sig/generated/nl/linux/dev_energymodel.rbs +636 -0
- data/sig/generated/nl/linux/devlink.rbs +12496 -0
- data/sig/generated/nl/linux/dpll.rbs +3461 -0
- data/sig/generated/nl/linux/drm_ras.rbs +553 -0
- data/sig/generated/nl/linux/ethtool.rbs +15291 -0
- data/sig/generated/nl/linux/fou.rbs +702 -0
- data/sig/generated/nl/linux/handshake.rbs +622 -0
- data/sig/generated/nl/linux/lockd.rbs +234 -0
- data/sig/generated/nl/linux/mptcp_pm.rbs +1511 -0
- data/sig/generated/nl/linux/net_shaper.rbs +1645 -0
- data/sig/generated/nl/linux/netdev.rbs +4187 -0
- data/sig/generated/nl/linux/nfsd.rbs +2520 -0
- data/sig/generated/nl/linux/nftables.rbs +10304 -0
- data/sig/generated/nl/linux/nl80211.rbs +9786 -0
- data/sig/generated/nl/linux/nlctrl.rbs +944 -0
- data/sig/generated/nl/linux/nlctrl_resolver.rbs +20 -0
- data/sig/generated/nl/linux/ovpn.rbs +2564 -0
- data/sig/generated/nl/linux/ovs_datapath.rbs +640 -0
- data/sig/generated/nl/linux/ovs_flow.rbs +3659 -0
- data/sig/generated/nl/linux/ovs_packet.rbs +540 -0
- data/sig/generated/nl/linux/ovs_vport.rbs +777 -0
- data/sig/generated/nl/linux/psp.rbs +1846 -0
- data/sig/generated/nl/linux/rt_addr.rbs +866 -0
- data/sig/generated/nl/linux/rt_link.rbs +13438 -0
- data/sig/generated/nl/linux/rt_neigh.rbs +2124 -0
- data/sig/generated/nl/linux/rt_route.rbs +2218 -0
- data/sig/generated/nl/linux/rt_rule.rbs +1726 -0
- data/sig/generated/nl/linux/sunrpc_cache.rbs +739 -0
- data/sig/generated/nl/linux/tc.rbs +19931 -0
- data/sig/generated/nl/linux/tcp_metrics.rbs +740 -0
- data/sig/generated/nl/linux/team.rbs +733 -0
- data/sig/generated/nl/linux/version.rbs +7 -0
- data/sig/generated/nl/linux/wireguard.rbs +1006 -0
- data/sig/generated/nl/linux.rbs +6 -0
- data/sig/generated/nl-linux.rbs +2 -0
- metadata +46 -7
|
@@ -3,15 +3,45 @@
|
|
|
3
3
|
# This file is based on Documentation/netlink/specs/rt-route.yaml from Linux v7.2.
|
|
4
4
|
#--
|
|
5
5
|
# frozen_string_literal: true
|
|
6
|
-
# rbs_inline: enabled
|
|
7
6
|
# This code is generated by Ynl::Generator. DO NOT EDIT.
|
|
8
7
|
require 'nl'
|
|
9
8
|
module Nl; module Linux
|
|
10
9
|
# Route configuration over rtnetlink.
|
|
11
|
-
class RtRoute < ::Nl::Family
|
|
10
|
+
class RtRoute < ::Nl::Raw::Family
|
|
12
11
|
NAME = "rt-route"
|
|
13
|
-
|
|
12
|
+
PROTONUM = 0
|
|
13
|
+
# @rbs (?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
|
|
14
|
+
# @rbs | [R] (?executor: executor?, ?notification_capacity: ::Integer?) { (instance) -> R } -> R
|
|
15
|
+
# @overload open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
|
|
16
|
+
# @param [Symbol, nil] executor
|
|
17
|
+
# @param [Integer, nil] notification_capacity
|
|
18
|
+
# @return [RtRoute]
|
|
19
|
+
# @overload open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY, &block)
|
|
20
|
+
# @param [Symbol, nil] executor
|
|
21
|
+
# @param [Integer, nil] notification_capacity
|
|
22
|
+
# @yieldparam [RtRoute] family
|
|
23
|
+
# @return [Object] the result of the block
|
|
24
|
+
def self.open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
|
|
25
|
+
super
|
|
26
|
+
end
|
|
27
|
+
# @private
|
|
14
28
|
MCAST_GROUPS = Ractor.make_shareable({}) #: Hash[::Symbol, ::Nl::McastGroup]
|
|
29
|
+
module Enums
|
|
30
|
+
module RtmType
|
|
31
|
+
Unspec = 0
|
|
32
|
+
Unicast = 1
|
|
33
|
+
Local = 2
|
|
34
|
+
Broadcast = 3
|
|
35
|
+
Anycast = 4
|
|
36
|
+
Multicast = 5
|
|
37
|
+
Blackhole = 6
|
|
38
|
+
Unreachable = 7
|
|
39
|
+
Prohibit = 8
|
|
40
|
+
Throw = 9
|
|
41
|
+
Nat = 10
|
|
42
|
+
Xresolve = 11
|
|
43
|
+
end
|
|
44
|
+
end
|
|
15
45
|
module Structs
|
|
16
46
|
Rtmsg = Struct.new(
|
|
17
47
|
:"rtm_family", #: ::Integer
|
|
@@ -25,19 +55,39 @@ class RtRoute < ::Nl::Family
|
|
|
25
55
|
:"rtm_flags", #: ::Integer
|
|
26
56
|
)
|
|
27
57
|
class Rtmsg
|
|
28
|
-
#
|
|
29
|
-
|
|
58
|
+
# @!attribute [rw] rtm_family
|
|
59
|
+
# @return [Integer]
|
|
60
|
+
# @!attribute [rw] rtm_dst_len
|
|
61
|
+
# @return [Integer]
|
|
62
|
+
# @!attribute [rw] rtm_src_len
|
|
63
|
+
# @return [Integer]
|
|
64
|
+
# @!attribute [rw] rtm_tos
|
|
65
|
+
# @return [Integer]
|
|
66
|
+
# @!attribute [rw] rtm_table
|
|
67
|
+
# @return [Integer]
|
|
68
|
+
# @!attribute [rw] rtm_protocol
|
|
69
|
+
# @return [Integer]
|
|
70
|
+
# @!attribute [rw] rtm_scope
|
|
71
|
+
# @return [Integer]
|
|
72
|
+
# @!attribute [rw] rtm_type
|
|
73
|
+
# @return [Integer]
|
|
74
|
+
# @!attribute [rw] rtm_flags
|
|
75
|
+
# @return [Integer]
|
|
76
|
+
# @private
|
|
77
|
+
MEMBERS = Ractor.make_shareable({rtm_family: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), rtm_dst_len: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), rtm_src_len: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), rtm_tos: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), rtm_table: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), rtm_protocol: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), rtm_scope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), rtm_type: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), rtm_flags: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) #: Hash[::Symbol, ::Nl::_DataType]
|
|
30
78
|
# Decodes the struct.
|
|
31
|
-
#--
|
|
32
79
|
# @rbs decoder: ::Nl::Decoder
|
|
33
80
|
# @rbs return: instance
|
|
81
|
+
# @param [Nl::Decoder] decoder
|
|
82
|
+
# @return [self]
|
|
34
83
|
def self.decode(decoder)
|
|
35
84
|
self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
|
|
36
85
|
end
|
|
37
86
|
# Encodes the struct.
|
|
38
|
-
#--
|
|
39
87
|
# @rbs encoder: ::Nl::Encoder
|
|
40
88
|
# @rbs return: void
|
|
89
|
+
# @param [Nl::Encoder] encoder
|
|
90
|
+
# @return [void]
|
|
41
91
|
def encode(encoder)
|
|
42
92
|
MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) }
|
|
43
93
|
end
|
|
@@ -50,1117 +100,1653 @@ class RtRoute < ::Nl::Family
|
|
|
50
100
|
:"rta_used", #: ::Integer
|
|
51
101
|
)
|
|
52
102
|
class RtaCacheinfo
|
|
53
|
-
#
|
|
54
|
-
|
|
103
|
+
# @!attribute [rw] rta_clntref
|
|
104
|
+
# @return [Integer]
|
|
105
|
+
# @!attribute [rw] rta_lastuse
|
|
106
|
+
# @return [Integer]
|
|
107
|
+
# @!attribute [rw] rta_expires
|
|
108
|
+
# @return [Integer]
|
|
109
|
+
# @!attribute [rw] rta_error
|
|
110
|
+
# @return [Integer]
|
|
111
|
+
# @!attribute [rw] rta_used
|
|
112
|
+
# @return [Integer]
|
|
113
|
+
# @private
|
|
114
|
+
MEMBERS = Ractor.make_shareable({rta_clntref: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), rta_lastuse: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), rta_expires: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), rta_error: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), rta_used: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) #: Hash[::Symbol, ::Nl::_DataType]
|
|
55
115
|
# Decodes the struct.
|
|
56
|
-
#--
|
|
57
116
|
# @rbs decoder: ::Nl::Decoder
|
|
58
117
|
# @rbs return: instance
|
|
118
|
+
# @param [Nl::Decoder] decoder
|
|
119
|
+
# @return [self]
|
|
59
120
|
def self.decode(decoder)
|
|
60
121
|
self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
|
|
61
122
|
end
|
|
62
123
|
# Encodes the struct.
|
|
63
|
-
#--
|
|
64
124
|
# @rbs encoder: ::Nl::Encoder
|
|
65
125
|
# @rbs return: void
|
|
126
|
+
# @param [Nl::Encoder] encoder
|
|
127
|
+
# @return [void]
|
|
66
128
|
def encode(encoder)
|
|
67
129
|
MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) }
|
|
68
130
|
end
|
|
69
131
|
end
|
|
70
132
|
end
|
|
71
133
|
module AttributeSets
|
|
72
|
-
class RouteAttrs < ::Nl::
|
|
134
|
+
class RouteAttrs < ::Nl::AttributeSet
|
|
73
135
|
# Abstract class
|
|
74
|
-
class Attribute < ::Nl::
|
|
136
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
75
137
|
end
|
|
76
138
|
class Dst < Attribute
|
|
77
139
|
TYPE = 1
|
|
78
140
|
NAME = :"dst"
|
|
79
|
-
|
|
141
|
+
# @private
|
|
142
|
+
ORDER = 0
|
|
143
|
+
# @private
|
|
144
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
80
145
|
end
|
|
81
146
|
class Src < Attribute
|
|
82
147
|
TYPE = 2
|
|
83
148
|
NAME = :"src"
|
|
84
|
-
|
|
149
|
+
# @private
|
|
150
|
+
ORDER = 1
|
|
151
|
+
# @private
|
|
152
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
85
153
|
end
|
|
86
154
|
class Iif < Attribute
|
|
87
155
|
TYPE = 3
|
|
88
156
|
NAME = :"iif"
|
|
89
|
-
|
|
157
|
+
# @private
|
|
158
|
+
ORDER = 2
|
|
159
|
+
# @private
|
|
160
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
90
161
|
end
|
|
91
162
|
class Oif < Attribute
|
|
92
163
|
TYPE = 4
|
|
93
164
|
NAME = :"oif"
|
|
94
|
-
|
|
165
|
+
# @private
|
|
166
|
+
ORDER = 3
|
|
167
|
+
# @private
|
|
168
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
95
169
|
end
|
|
96
170
|
class Gateway < Attribute
|
|
97
171
|
TYPE = 5
|
|
98
172
|
NAME = :"gateway"
|
|
99
|
-
|
|
173
|
+
# @private
|
|
174
|
+
ORDER = 4
|
|
175
|
+
# @private
|
|
176
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
100
177
|
end
|
|
101
178
|
class Priority < Attribute
|
|
102
179
|
TYPE = 6
|
|
103
180
|
NAME = :"priority"
|
|
104
|
-
|
|
181
|
+
# @private
|
|
182
|
+
ORDER = 5
|
|
183
|
+
# @private
|
|
184
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
105
185
|
end
|
|
106
186
|
class Prefsrc < Attribute
|
|
107
187
|
TYPE = 7
|
|
108
188
|
NAME = :"prefsrc"
|
|
109
|
-
|
|
189
|
+
# @private
|
|
190
|
+
ORDER = 6
|
|
191
|
+
# @private
|
|
192
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
110
193
|
end
|
|
111
194
|
class Metrics < Attribute
|
|
112
195
|
TYPE = 8
|
|
113
196
|
NAME = :"metrics"
|
|
197
|
+
# @private
|
|
198
|
+
ORDER = 7
|
|
114
199
|
end
|
|
115
200
|
class Multipath < Attribute
|
|
116
201
|
TYPE = 9
|
|
117
202
|
NAME = :"multipath"
|
|
118
|
-
|
|
203
|
+
# @private
|
|
204
|
+
ORDER = 8
|
|
205
|
+
# @private
|
|
206
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
119
207
|
end
|
|
120
208
|
class Protoinfo < Attribute
|
|
121
209
|
TYPE = 10
|
|
122
210
|
NAME = :"protoinfo"
|
|
123
|
-
|
|
211
|
+
# @private
|
|
212
|
+
ORDER = 9
|
|
213
|
+
# @private
|
|
214
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
124
215
|
end
|
|
125
216
|
class Flow < Attribute
|
|
126
217
|
TYPE = 11
|
|
127
218
|
NAME = :"flow"
|
|
128
|
-
|
|
219
|
+
# @private
|
|
220
|
+
ORDER = 10
|
|
221
|
+
# @private
|
|
222
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
129
223
|
end
|
|
130
224
|
class Cacheinfo < Attribute
|
|
131
225
|
TYPE = 12
|
|
132
226
|
NAME = :"cacheinfo"
|
|
133
|
-
|
|
227
|
+
# @private
|
|
228
|
+
ORDER = 11
|
|
229
|
+
# @private
|
|
230
|
+
DATATYPE = ::Nl::DataTypes::Struct.new(Structs::RtaCacheinfo, check: nil, consume_remaining: true)
|
|
134
231
|
end
|
|
135
232
|
class Session < Attribute
|
|
136
233
|
TYPE = 13
|
|
137
234
|
NAME = :"session"
|
|
138
|
-
|
|
235
|
+
# @private
|
|
236
|
+
ORDER = 12
|
|
237
|
+
# @private
|
|
238
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
139
239
|
end
|
|
140
240
|
class MpAlgo < Attribute
|
|
141
241
|
TYPE = 14
|
|
142
242
|
NAME = :"mp_algo"
|
|
143
|
-
|
|
243
|
+
# @private
|
|
244
|
+
ORDER = 13
|
|
245
|
+
# @private
|
|
246
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
144
247
|
end
|
|
145
248
|
class Table < Attribute
|
|
146
249
|
TYPE = 15
|
|
147
250
|
NAME = :"table"
|
|
148
|
-
|
|
251
|
+
# @private
|
|
252
|
+
ORDER = 14
|
|
253
|
+
# @private
|
|
254
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
149
255
|
end
|
|
150
256
|
class Mark < Attribute
|
|
151
257
|
TYPE = 16
|
|
152
258
|
NAME = :"mark"
|
|
153
|
-
|
|
259
|
+
# @private
|
|
260
|
+
ORDER = 15
|
|
261
|
+
# @private
|
|
262
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
154
263
|
end
|
|
155
264
|
class MfcStats < Attribute
|
|
156
265
|
TYPE = 17
|
|
157
266
|
NAME = :"mfc_stats"
|
|
158
|
-
|
|
267
|
+
# @private
|
|
268
|
+
ORDER = 16
|
|
269
|
+
# @private
|
|
270
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
159
271
|
end
|
|
160
272
|
class Via < Attribute
|
|
161
273
|
TYPE = 18
|
|
162
274
|
NAME = :"via"
|
|
163
|
-
|
|
275
|
+
# @private
|
|
276
|
+
ORDER = 17
|
|
277
|
+
# @private
|
|
278
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
164
279
|
end
|
|
165
280
|
class Newdst < Attribute
|
|
166
281
|
TYPE = 19
|
|
167
282
|
NAME = :"newdst"
|
|
168
|
-
|
|
283
|
+
# @private
|
|
284
|
+
ORDER = 18
|
|
285
|
+
# @private
|
|
286
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
169
287
|
end
|
|
170
288
|
class Pref < Attribute
|
|
171
289
|
TYPE = 20
|
|
172
290
|
NAME = :"pref"
|
|
173
|
-
|
|
291
|
+
# @private
|
|
292
|
+
ORDER = 19
|
|
293
|
+
# @private
|
|
294
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil)
|
|
174
295
|
end
|
|
175
296
|
class EncapType < Attribute
|
|
176
297
|
TYPE = 21
|
|
177
298
|
NAME = :"encap_type"
|
|
178
|
-
|
|
299
|
+
# @private
|
|
300
|
+
ORDER = 20
|
|
301
|
+
# @private
|
|
302
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil)
|
|
179
303
|
end
|
|
180
304
|
class Encap < Attribute
|
|
181
305
|
TYPE = 22
|
|
182
306
|
NAME = :"encap"
|
|
183
|
-
|
|
307
|
+
# @private
|
|
308
|
+
ORDER = 21
|
|
309
|
+
# @private
|
|
310
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
184
311
|
end
|
|
185
312
|
class Expires < Attribute
|
|
186
313
|
TYPE = 23
|
|
187
314
|
NAME = :"expires"
|
|
188
|
-
|
|
315
|
+
# @private
|
|
316
|
+
ORDER = 22
|
|
317
|
+
# @private
|
|
318
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
189
319
|
end
|
|
190
320
|
class Pad < Attribute
|
|
191
321
|
TYPE = 24
|
|
192
322
|
NAME = :"pad"
|
|
193
|
-
|
|
323
|
+
# @private
|
|
324
|
+
ORDER = 23
|
|
325
|
+
# @private
|
|
326
|
+
DATATYPE = ::Nl::DataTypes::Binary.new(check: nil)
|
|
194
327
|
end
|
|
195
328
|
class Uid < Attribute
|
|
196
329
|
TYPE = 25
|
|
197
330
|
NAME = :"uid"
|
|
198
|
-
|
|
331
|
+
# @private
|
|
332
|
+
ORDER = 24
|
|
333
|
+
# @private
|
|
334
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
199
335
|
end
|
|
200
336
|
class TtlPropagate < Attribute
|
|
201
337
|
TYPE = 26
|
|
202
338
|
NAME = :"ttl_propagate"
|
|
203
|
-
|
|
339
|
+
# @private
|
|
340
|
+
ORDER = 25
|
|
341
|
+
# @private
|
|
342
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil)
|
|
204
343
|
end
|
|
205
344
|
class IpProto < Attribute
|
|
206
345
|
TYPE = 27
|
|
207
346
|
NAME = :"ip_proto"
|
|
208
|
-
|
|
347
|
+
# @private
|
|
348
|
+
ORDER = 26
|
|
349
|
+
# @private
|
|
350
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil)
|
|
209
351
|
end
|
|
210
352
|
class Sport < Attribute
|
|
211
353
|
TYPE = 28
|
|
212
354
|
NAME = :"sport"
|
|
213
|
-
|
|
355
|
+
# @private
|
|
356
|
+
ORDER = 27
|
|
357
|
+
# @private
|
|
358
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil)
|
|
214
359
|
end
|
|
215
360
|
class Dport < Attribute
|
|
216
361
|
TYPE = 29
|
|
217
362
|
NAME = :"dport"
|
|
218
|
-
|
|
363
|
+
# @private
|
|
364
|
+
ORDER = 28
|
|
365
|
+
# @private
|
|
366
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil)
|
|
219
367
|
end
|
|
220
368
|
class NhId < Attribute
|
|
221
369
|
TYPE = 30
|
|
222
370
|
NAME = :"nh_id"
|
|
223
|
-
|
|
371
|
+
# @private
|
|
372
|
+
ORDER = 29
|
|
373
|
+
# @private
|
|
374
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
224
375
|
end
|
|
225
376
|
class Flowlabel < Attribute
|
|
226
377
|
TYPE = 31
|
|
227
378
|
NAME = :"flowlabel"
|
|
228
|
-
|
|
379
|
+
# @private
|
|
380
|
+
ORDER = 30
|
|
381
|
+
# @private
|
|
382
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
|
|
229
383
|
end
|
|
230
|
-
#
|
|
384
|
+
# @private
|
|
231
385
|
BY_NAME = Ractor.make_shareable({:"dst" => Dst, :"src" => Src, :"iif" => Iif, :"oif" => Oif, :"gateway" => Gateway, :"priority" => Priority, :"prefsrc" => Prefsrc, :"metrics" => Metrics, :"multipath" => Multipath, :"protoinfo" => Protoinfo, :"flow" => Flow, :"cacheinfo" => Cacheinfo, :"session" => Session, :"mp_algo" => MpAlgo, :"table" => Table, :"mark" => Mark, :"mfc_stats" => MfcStats, :"via" => Via, :"newdst" => Newdst, :"pref" => Pref, :"encap_type" => EncapType, :"encap" => Encap, :"expires" => Expires, :"pad" => Pad, :"uid" => Uid, :"ttl_propagate" => TtlPropagate, :"ip_proto" => IpProto, :"sport" => Sport, :"dport" => Dport, :"nh_id" => NhId, :"flowlabel" => Flowlabel}) #: Hash[::Symbol, Attribute]
|
|
232
|
-
#
|
|
386
|
+
# @private
|
|
233
387
|
BY_TYPE = Ractor.make_shareable({1 => Dst, 2 => Src, 3 => Iif, 4 => Oif, 5 => Gateway, 6 => Priority, 7 => Prefsrc, 8 => Metrics, 9 => Multipath, 10 => Protoinfo, 11 => Flow, 12 => Cacheinfo, 13 => Session, 14 => MpAlgo, 15 => Table, 16 => Mark, 17 => MfcStats, 18 => Via, 19 => Newdst, 20 => Pref, 21 => EncapType, 22 => Encap, 23 => Expires, 24 => Pad, 25 => Uid, 26 => TtlPropagate, 27 => IpProto, 28 => Sport, 29 => Dport, 30 => NhId, 31 => Flowlabel}) #: Hash[::Integer, Attribute]
|
|
388
|
+
# @rbs return: ::String
|
|
389
|
+
# @return [String]
|
|
390
|
+
# @see Dst
|
|
391
|
+
def dst; self[:"dst"]&.value; end
|
|
392
|
+
# @rbs return: ::String
|
|
393
|
+
# @return [String]
|
|
394
|
+
# @see Src
|
|
395
|
+
def src; self[:"src"]&.value; end
|
|
396
|
+
# @rbs return: ::Integer
|
|
397
|
+
# @return [Integer]
|
|
398
|
+
# @see Iif
|
|
399
|
+
def iif; self[:"iif"]&.value; end
|
|
400
|
+
# @rbs return: ::Integer
|
|
401
|
+
# @return [Integer]
|
|
402
|
+
# @see Oif
|
|
403
|
+
def oif; self[:"oif"]&.value; end
|
|
404
|
+
# @rbs return: ::String
|
|
405
|
+
# @return [String]
|
|
406
|
+
# @see Gateway
|
|
407
|
+
def gateway; self[:"gateway"]&.value; end
|
|
408
|
+
# @rbs return: ::Integer
|
|
409
|
+
# @return [Integer]
|
|
410
|
+
# @see Priority
|
|
411
|
+
def priority; self[:"priority"]&.value; end
|
|
412
|
+
# @rbs return: ::String
|
|
413
|
+
# @return [String]
|
|
414
|
+
# @see Prefsrc
|
|
415
|
+
def prefsrc; self[:"prefsrc"]&.value; end
|
|
416
|
+
# @rbs return: AttributeSets::Metrics
|
|
417
|
+
# @return [AttributeSets::Metrics]
|
|
418
|
+
# @see Metrics
|
|
419
|
+
def metrics; self[:"metrics"]&.value; end
|
|
420
|
+
# @rbs return: ::String
|
|
421
|
+
# @return [String]
|
|
422
|
+
# @see Multipath
|
|
423
|
+
def multipath; self[:"multipath"]&.value; end
|
|
424
|
+
# @rbs return: ::String
|
|
425
|
+
# @return [String]
|
|
426
|
+
# @see Protoinfo
|
|
427
|
+
def protoinfo; self[:"protoinfo"]&.value; end
|
|
428
|
+
# @rbs return: ::Integer
|
|
429
|
+
# @return [Integer]
|
|
430
|
+
# @see Flow
|
|
431
|
+
def flow; self[:"flow"]&.value; end
|
|
432
|
+
# @rbs return: Structs::RtaCacheinfo
|
|
433
|
+
# @return [Structs::RtaCacheinfo]
|
|
434
|
+
# @see Cacheinfo
|
|
435
|
+
def cacheinfo; self[:"cacheinfo"]&.value; end
|
|
436
|
+
# @rbs return: ::String
|
|
437
|
+
# @return [String]
|
|
438
|
+
# @see Session
|
|
439
|
+
def session; self[:"session"]&.value; end
|
|
440
|
+
# @rbs return: ::String
|
|
441
|
+
# @return [String]
|
|
442
|
+
# @see MpAlgo
|
|
443
|
+
def mp_algo; self[:"mp_algo"]&.value; end
|
|
444
|
+
# @rbs return: ::Integer
|
|
445
|
+
# @return [Integer]
|
|
446
|
+
# @see Table
|
|
447
|
+
def table; self[:"table"]&.value; end
|
|
448
|
+
# @rbs return: ::Integer
|
|
449
|
+
# @return [Integer]
|
|
450
|
+
# @see Mark
|
|
451
|
+
def mark; self[:"mark"]&.value; end
|
|
452
|
+
# @rbs return: ::String
|
|
453
|
+
# @return [String]
|
|
454
|
+
# @see MfcStats
|
|
455
|
+
def mfc_stats; self[:"mfc_stats"]&.value; end
|
|
456
|
+
# @rbs return: ::String
|
|
457
|
+
# @return [String]
|
|
458
|
+
# @see Via
|
|
459
|
+
def via; self[:"via"]&.value; end
|
|
460
|
+
# @rbs return: ::String
|
|
461
|
+
# @return [String]
|
|
462
|
+
# @see Newdst
|
|
463
|
+
def newdst; self[:"newdst"]&.value; end
|
|
464
|
+
# @rbs return: ::Integer
|
|
465
|
+
# @return [Integer]
|
|
466
|
+
# @see Pref
|
|
467
|
+
def pref; self[:"pref"]&.value; end
|
|
468
|
+
# @rbs return: ::Integer
|
|
469
|
+
# @return [Integer]
|
|
470
|
+
# @see EncapType
|
|
471
|
+
def encap_type; self[:"encap_type"]&.value; end
|
|
472
|
+
# @rbs return: ::String
|
|
473
|
+
# @return [String]
|
|
474
|
+
# @see Encap
|
|
475
|
+
def encap; self[:"encap"]&.value; end
|
|
476
|
+
# @rbs return: ::Integer
|
|
477
|
+
# @return [Integer]
|
|
478
|
+
# @see Expires
|
|
479
|
+
def expires; self[:"expires"]&.value; end
|
|
480
|
+
# @rbs return: ::String
|
|
481
|
+
# @return [String]
|
|
482
|
+
# @see Pad
|
|
483
|
+
def pad; self[:"pad"]&.value; end
|
|
484
|
+
# @rbs return: ::Integer
|
|
485
|
+
# @return [Integer]
|
|
486
|
+
# @see Uid
|
|
487
|
+
def uid; self[:"uid"]&.value; end
|
|
488
|
+
# @rbs return: ::Integer
|
|
489
|
+
# @return [Integer]
|
|
490
|
+
# @see TtlPropagate
|
|
491
|
+
def ttl_propagate; self[:"ttl_propagate"]&.value; end
|
|
492
|
+
# @rbs return: ::Integer
|
|
493
|
+
# @return [Integer]
|
|
494
|
+
# @see IpProto
|
|
495
|
+
def ip_proto; self[:"ip_proto"]&.value; end
|
|
496
|
+
# @rbs return: ::Integer
|
|
497
|
+
# @return [Integer]
|
|
498
|
+
# @see Sport
|
|
499
|
+
def sport; self[:"sport"]&.value; end
|
|
500
|
+
# @rbs return: ::Integer
|
|
501
|
+
# @return [Integer]
|
|
502
|
+
# @see Dport
|
|
503
|
+
def dport; self[:"dport"]&.value; end
|
|
504
|
+
# @rbs return: ::Integer
|
|
505
|
+
# @return [Integer]
|
|
506
|
+
# @see NhId
|
|
507
|
+
def nh_id; self[:"nh_id"]&.value; end
|
|
508
|
+
# @rbs return: ::Integer
|
|
509
|
+
# @return [Integer]
|
|
510
|
+
# @see Flowlabel
|
|
511
|
+
def flowlabel; self[:"flowlabel"]&.value; end
|
|
234
512
|
class << self
|
|
235
513
|
# Looks up Attribute class by name.
|
|
236
|
-
#--
|
|
237
514
|
# @rbs name: Symbol
|
|
238
515
|
# @rbs return: Attribute
|
|
516
|
+
# @param [Symbol] name
|
|
517
|
+
# @return [Attribute]
|
|
239
518
|
def by_name(name); BY_NAME.fetch(name); end
|
|
240
519
|
# Looks up Attribute class by type value.
|
|
241
|
-
#--
|
|
242
520
|
# @rbs type: Integer
|
|
243
521
|
# @rbs return: Attribute
|
|
522
|
+
# @param [Integer] type
|
|
523
|
+
# @return [Attribute]
|
|
244
524
|
def by_type(type); BY_TYPE.fetch(type); end
|
|
245
525
|
end
|
|
246
526
|
end
|
|
247
|
-
class Metrics < ::Nl::
|
|
527
|
+
class Metrics < ::Nl::AttributeSet
|
|
248
528
|
# Abstract class
|
|
249
|
-
class Attribute < ::Nl::
|
|
529
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
250
530
|
end
|
|
251
531
|
class Lock < Attribute
|
|
252
532
|
TYPE = 1
|
|
253
533
|
NAME = :"lock"
|
|
254
|
-
|
|
534
|
+
# @private
|
|
535
|
+
ORDER = 0
|
|
536
|
+
# @private
|
|
537
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
255
538
|
end
|
|
256
539
|
class Mtu < Attribute
|
|
257
540
|
TYPE = 2
|
|
258
541
|
NAME = :"mtu"
|
|
259
|
-
|
|
542
|
+
# @private
|
|
543
|
+
ORDER = 1
|
|
544
|
+
# @private
|
|
545
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
260
546
|
end
|
|
261
547
|
class Window < Attribute
|
|
262
548
|
TYPE = 3
|
|
263
549
|
NAME = :"window"
|
|
264
|
-
|
|
550
|
+
# @private
|
|
551
|
+
ORDER = 2
|
|
552
|
+
# @private
|
|
553
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
265
554
|
end
|
|
266
555
|
class Rtt < Attribute
|
|
267
556
|
TYPE = 4
|
|
268
557
|
NAME = :"rtt"
|
|
269
|
-
|
|
558
|
+
# @private
|
|
559
|
+
ORDER = 3
|
|
560
|
+
# @private
|
|
561
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
270
562
|
end
|
|
271
563
|
class Rttvar < Attribute
|
|
272
564
|
TYPE = 5
|
|
273
565
|
NAME = :"rttvar"
|
|
274
|
-
|
|
566
|
+
# @private
|
|
567
|
+
ORDER = 4
|
|
568
|
+
# @private
|
|
569
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
275
570
|
end
|
|
276
571
|
class Ssthresh < Attribute
|
|
277
572
|
TYPE = 6
|
|
278
573
|
NAME = :"ssthresh"
|
|
279
|
-
|
|
574
|
+
# @private
|
|
575
|
+
ORDER = 5
|
|
576
|
+
# @private
|
|
577
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
280
578
|
end
|
|
281
579
|
class Cwnd < Attribute
|
|
282
580
|
TYPE = 7
|
|
283
581
|
NAME = :"cwnd"
|
|
284
|
-
|
|
582
|
+
# @private
|
|
583
|
+
ORDER = 6
|
|
584
|
+
# @private
|
|
585
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
285
586
|
end
|
|
286
587
|
class Advmss < Attribute
|
|
287
588
|
TYPE = 8
|
|
288
589
|
NAME = :"advmss"
|
|
289
|
-
|
|
590
|
+
# @private
|
|
591
|
+
ORDER = 7
|
|
592
|
+
# @private
|
|
593
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
290
594
|
end
|
|
291
595
|
class Reordering < Attribute
|
|
292
596
|
TYPE = 9
|
|
293
597
|
NAME = :"reordering"
|
|
294
|
-
|
|
598
|
+
# @private
|
|
599
|
+
ORDER = 8
|
|
600
|
+
# @private
|
|
601
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
295
602
|
end
|
|
296
603
|
class Hoplimit < Attribute
|
|
297
604
|
TYPE = 10
|
|
298
605
|
NAME = :"hoplimit"
|
|
299
|
-
|
|
606
|
+
# @private
|
|
607
|
+
ORDER = 9
|
|
608
|
+
# @private
|
|
609
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
300
610
|
end
|
|
301
611
|
class Initcwnd < Attribute
|
|
302
612
|
TYPE = 11
|
|
303
613
|
NAME = :"initcwnd"
|
|
304
|
-
|
|
614
|
+
# @private
|
|
615
|
+
ORDER = 10
|
|
616
|
+
# @private
|
|
617
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
305
618
|
end
|
|
306
619
|
class Features < Attribute
|
|
307
620
|
TYPE = 12
|
|
308
621
|
NAME = :"features"
|
|
309
|
-
|
|
622
|
+
# @private
|
|
623
|
+
ORDER = 11
|
|
624
|
+
# @private
|
|
625
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
310
626
|
end
|
|
311
627
|
class RtoMin < Attribute
|
|
312
628
|
TYPE = 13
|
|
313
629
|
NAME = :"rto_min"
|
|
314
|
-
|
|
630
|
+
# @private
|
|
631
|
+
ORDER = 12
|
|
632
|
+
# @private
|
|
633
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
315
634
|
end
|
|
316
635
|
class Initrwnd < Attribute
|
|
317
636
|
TYPE = 14
|
|
318
637
|
NAME = :"initrwnd"
|
|
319
|
-
|
|
638
|
+
# @private
|
|
639
|
+
ORDER = 13
|
|
640
|
+
# @private
|
|
641
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
320
642
|
end
|
|
321
643
|
class Quickack < Attribute
|
|
322
644
|
TYPE = 15
|
|
323
645
|
NAME = :"quickack"
|
|
324
|
-
|
|
646
|
+
# @private
|
|
647
|
+
ORDER = 14
|
|
648
|
+
# @private
|
|
649
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
325
650
|
end
|
|
326
651
|
class CcAlgo < Attribute
|
|
327
652
|
TYPE = 16
|
|
328
653
|
NAME = :"cc_algo"
|
|
329
|
-
|
|
654
|
+
# @private
|
|
655
|
+
ORDER = 15
|
|
656
|
+
# @private
|
|
657
|
+
DATATYPE = ::Nl::DataTypes::String.new(check: nil)
|
|
330
658
|
end
|
|
331
659
|
class FastopenNoCookie < Attribute
|
|
332
660
|
TYPE = 17
|
|
333
661
|
NAME = :"fastopen_no_cookie"
|
|
334
|
-
|
|
662
|
+
# @private
|
|
663
|
+
ORDER = 16
|
|
664
|
+
# @private
|
|
665
|
+
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
335
666
|
end
|
|
336
|
-
#
|
|
667
|
+
# @private
|
|
337
668
|
BY_NAME = Ractor.make_shareable({:"lock" => Lock, :"mtu" => Mtu, :"window" => Window, :"rtt" => Rtt, :"rttvar" => Rttvar, :"ssthresh" => Ssthresh, :"cwnd" => Cwnd, :"advmss" => Advmss, :"reordering" => Reordering, :"hoplimit" => Hoplimit, :"initcwnd" => Initcwnd, :"features" => Features, :"rto_min" => RtoMin, :"initrwnd" => Initrwnd, :"quickack" => Quickack, :"cc_algo" => CcAlgo, :"fastopen_no_cookie" => FastopenNoCookie}) #: Hash[::Symbol, Attribute]
|
|
338
|
-
#
|
|
669
|
+
# @private
|
|
339
670
|
BY_TYPE = Ractor.make_shareable({1 => Lock, 2 => Mtu, 3 => Window, 4 => Rtt, 5 => Rttvar, 6 => Ssthresh, 7 => Cwnd, 8 => Advmss, 9 => Reordering, 10 => Hoplimit, 11 => Initcwnd, 12 => Features, 13 => RtoMin, 14 => Initrwnd, 15 => Quickack, 16 => CcAlgo, 17 => FastopenNoCookie}) #: Hash[::Integer, Attribute]
|
|
671
|
+
# @rbs return: ::Integer
|
|
672
|
+
# @return [Integer]
|
|
673
|
+
# @see Lock
|
|
674
|
+
def lock; self[:"lock"]&.value; end
|
|
675
|
+
# @rbs return: ::Integer
|
|
676
|
+
# @return [Integer]
|
|
677
|
+
# @see Mtu
|
|
678
|
+
def mtu; self[:"mtu"]&.value; end
|
|
679
|
+
# @rbs return: ::Integer
|
|
680
|
+
# @return [Integer]
|
|
681
|
+
# @see Window
|
|
682
|
+
def window; self[:"window"]&.value; end
|
|
683
|
+
# @rbs return: ::Integer
|
|
684
|
+
# @return [Integer]
|
|
685
|
+
# @see Rtt
|
|
686
|
+
def rtt; self[:"rtt"]&.value; end
|
|
687
|
+
# @rbs return: ::Integer
|
|
688
|
+
# @return [Integer]
|
|
689
|
+
# @see Rttvar
|
|
690
|
+
def rttvar; self[:"rttvar"]&.value; end
|
|
691
|
+
# @rbs return: ::Integer
|
|
692
|
+
# @return [Integer]
|
|
693
|
+
# @see Ssthresh
|
|
694
|
+
def ssthresh; self[:"ssthresh"]&.value; end
|
|
695
|
+
# @rbs return: ::Integer
|
|
696
|
+
# @return [Integer]
|
|
697
|
+
# @see Cwnd
|
|
698
|
+
def cwnd; self[:"cwnd"]&.value; end
|
|
699
|
+
# @rbs return: ::Integer
|
|
700
|
+
# @return [Integer]
|
|
701
|
+
# @see Advmss
|
|
702
|
+
def advmss; self[:"advmss"]&.value; end
|
|
703
|
+
# @rbs return: ::Integer
|
|
704
|
+
# @return [Integer]
|
|
705
|
+
# @see Reordering
|
|
706
|
+
def reordering; self[:"reordering"]&.value; end
|
|
707
|
+
# @rbs return: ::Integer
|
|
708
|
+
# @return [Integer]
|
|
709
|
+
# @see Hoplimit
|
|
710
|
+
def hoplimit; self[:"hoplimit"]&.value; end
|
|
711
|
+
# @rbs return: ::Integer
|
|
712
|
+
# @return [Integer]
|
|
713
|
+
# @see Initcwnd
|
|
714
|
+
def initcwnd; self[:"initcwnd"]&.value; end
|
|
715
|
+
# @rbs return: ::Integer
|
|
716
|
+
# @return [Integer]
|
|
717
|
+
# @see Features
|
|
718
|
+
def features; self[:"features"]&.value; end
|
|
719
|
+
# @rbs return: ::Integer
|
|
720
|
+
# @return [Integer]
|
|
721
|
+
# @see RtoMin
|
|
722
|
+
def rto_min; self[:"rto_min"]&.value; end
|
|
723
|
+
# @rbs return: ::Integer
|
|
724
|
+
# @return [Integer]
|
|
725
|
+
# @see Initrwnd
|
|
726
|
+
def initrwnd; self[:"initrwnd"]&.value; end
|
|
727
|
+
# @rbs return: ::Integer
|
|
728
|
+
# @return [Integer]
|
|
729
|
+
# @see Quickack
|
|
730
|
+
def quickack; self[:"quickack"]&.value; end
|
|
731
|
+
# @rbs return: ::String
|
|
732
|
+
# @return [String]
|
|
733
|
+
# @see CcAlgo
|
|
734
|
+
def cc_algo; self[:"cc_algo"]&.value; end
|
|
735
|
+
# @rbs return: ::Integer
|
|
736
|
+
# @return [Integer]
|
|
737
|
+
# @see FastopenNoCookie
|
|
738
|
+
def fastopen_no_cookie; self[:"fastopen_no_cookie"]&.value; end
|
|
340
739
|
class << self
|
|
341
740
|
# Looks up Attribute class by name.
|
|
342
|
-
#--
|
|
343
741
|
# @rbs name: Symbol
|
|
344
742
|
# @rbs return: Attribute
|
|
743
|
+
# @param [Symbol] name
|
|
744
|
+
# @return [Attribute]
|
|
345
745
|
def by_name(name); BY_NAME.fetch(name); end
|
|
346
746
|
# Looks up Attribute class by type value.
|
|
347
|
-
#--
|
|
348
747
|
# @rbs type: Integer
|
|
349
748
|
# @rbs return: Attribute
|
|
749
|
+
# @param [Integer] type
|
|
750
|
+
# @return [Attribute]
|
|
350
751
|
def by_type(type); BY_TYPE.fetch(type); end
|
|
351
752
|
end
|
|
352
753
|
end
|
|
353
|
-
|
|
754
|
+
# @private
|
|
755
|
+
RouteAttrs::Metrics::DATATYPE = ::Nl::DataTypes::NestedAttributes.new(AttributeSets::Metrics, selector_bindings: Ractor.make_shareable([]))
|
|
354
756
|
end
|
|
355
757
|
module Messages
|
|
356
758
|
# Dump route information.
|
|
357
|
-
class DoGetrouteRequest < ::Nl::
|
|
759
|
+
class DoGetrouteRequest < ::Nl::Raw::Message
|
|
358
760
|
TYPE = 26
|
|
359
761
|
FIXED_HEADER = Structs::Rtmsg
|
|
360
762
|
ATTRIBUTE_SET = AttributeSets::RouteAttrs
|
|
361
763
|
ATTRIBUTES = Ractor.make_shareable(%i[dst src iif oif mark uid ip_proto sport dport flowlabel])
|
|
362
|
-
# Gets the value of `rtm-family` field in the message's fixed header.
|
|
363
|
-
#--
|
|
364
764
|
# @rbs return: ::Integer
|
|
765
|
+
# @return [Integer]
|
|
365
766
|
def rtm_family; fixed_header.rtm_family; end
|
|
366
|
-
# Gets the value of `rtm-dst-len` field in the message's fixed header.
|
|
367
|
-
#--
|
|
368
767
|
# @rbs return: ::Integer
|
|
768
|
+
# @return [Integer]
|
|
369
769
|
def rtm_dst_len; fixed_header.rtm_dst_len; end
|
|
370
|
-
# Gets the value of `rtm-src-len` field in the message's fixed header.
|
|
371
|
-
#--
|
|
372
770
|
# @rbs return: ::Integer
|
|
771
|
+
# @return [Integer]
|
|
373
772
|
def rtm_src_len; fixed_header.rtm_src_len; end
|
|
374
|
-
# Gets the value of `rtm-tos` field in the message's fixed header.
|
|
375
|
-
#--
|
|
376
773
|
# @rbs return: ::Integer
|
|
774
|
+
# @return [Integer]
|
|
377
775
|
def rtm_tos; fixed_header.rtm_tos; end
|
|
378
|
-
# Gets the value of `rtm-table` field in the message's fixed header.
|
|
379
|
-
#--
|
|
380
776
|
# @rbs return: ::Integer
|
|
777
|
+
# @return [Integer]
|
|
381
778
|
def rtm_table; fixed_header.rtm_table; end
|
|
382
|
-
# Gets the value of `rtm-protocol` field in the message's fixed header.
|
|
383
|
-
#--
|
|
384
779
|
# @rbs return: ::Integer
|
|
780
|
+
# @return [Integer]
|
|
385
781
|
def rtm_protocol; fixed_header.rtm_protocol; end
|
|
386
|
-
# Gets the value of `rtm-scope` field in the message's fixed header.
|
|
387
|
-
#--
|
|
388
782
|
# @rbs return: ::Integer
|
|
783
|
+
# @return [Integer]
|
|
389
784
|
def rtm_scope; fixed_header.rtm_scope; end
|
|
390
|
-
# Gets the value of `rtm-type` field in the message's fixed header.
|
|
391
|
-
#--
|
|
392
785
|
# @rbs return: ::Integer
|
|
786
|
+
# @return [Integer]
|
|
393
787
|
def rtm_type; fixed_header.rtm_type; end
|
|
394
|
-
# Gets the value of `rtm-flags` field in the message's fixed header.
|
|
395
|
-
#--
|
|
396
788
|
# @rbs return: ::Integer
|
|
789
|
+
# @return [Integer]
|
|
397
790
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
398
|
-
# Gets the value of `dst` attribute in the message.
|
|
399
|
-
#--
|
|
400
791
|
# @rbs return: ::String
|
|
792
|
+
# @return [String]
|
|
793
|
+
# @see AttributeSets::RouteAttrs::Dst
|
|
401
794
|
def dst; attributes[:"dst"]&.value; end
|
|
402
|
-
# Gets the value of `src` attribute in the message.
|
|
403
|
-
#--
|
|
404
795
|
# @rbs return: ::String
|
|
796
|
+
# @return [String]
|
|
797
|
+
# @see AttributeSets::RouteAttrs::Src
|
|
405
798
|
def src; attributes[:"src"]&.value; end
|
|
406
|
-
# Gets the value of `iif` attribute in the message.
|
|
407
|
-
#--
|
|
408
799
|
# @rbs return: ::Integer
|
|
800
|
+
# @return [Integer]
|
|
801
|
+
# @see AttributeSets::RouteAttrs::Iif
|
|
409
802
|
def iif; attributes[:"iif"]&.value; end
|
|
410
|
-
# Gets the value of `oif` attribute in the message.
|
|
411
|
-
#--
|
|
412
803
|
# @rbs return: ::Integer
|
|
804
|
+
# @return [Integer]
|
|
805
|
+
# @see AttributeSets::RouteAttrs::Oif
|
|
413
806
|
def oif; attributes[:"oif"]&.value; end
|
|
414
|
-
# Gets the value of `mark` attribute in the message.
|
|
415
|
-
#--
|
|
416
807
|
# @rbs return: ::Integer
|
|
808
|
+
# @return [Integer]
|
|
809
|
+
# @see AttributeSets::RouteAttrs::Mark
|
|
417
810
|
def mark; attributes[:"mark"]&.value; end
|
|
418
|
-
# Gets the value of `uid` attribute in the message.
|
|
419
|
-
#--
|
|
420
811
|
# @rbs return: ::Integer
|
|
812
|
+
# @return [Integer]
|
|
813
|
+
# @see AttributeSets::RouteAttrs::Uid
|
|
421
814
|
def uid; attributes[:"uid"]&.value; end
|
|
422
|
-
# Gets the value of `ip-proto` attribute in the message.
|
|
423
|
-
#--
|
|
424
815
|
# @rbs return: ::Integer
|
|
816
|
+
# @return [Integer]
|
|
817
|
+
# @see AttributeSets::RouteAttrs::IpProto
|
|
425
818
|
def ip_proto; attributes[:"ip_proto"]&.value; end
|
|
426
|
-
# Gets the value of `sport` attribute in the message.
|
|
427
|
-
#--
|
|
428
819
|
# @rbs return: ::Integer
|
|
820
|
+
# @return [Integer]
|
|
821
|
+
# @see AttributeSets::RouteAttrs::Sport
|
|
429
822
|
def sport; attributes[:"sport"]&.value; end
|
|
430
|
-
# Gets the value of `dport` attribute in the message.
|
|
431
|
-
#--
|
|
432
823
|
# @rbs return: ::Integer
|
|
824
|
+
# @return [Integer]
|
|
825
|
+
# @see AttributeSets::RouteAttrs::Dport
|
|
433
826
|
def dport; attributes[:"dport"]&.value; end
|
|
434
|
-
# Gets the value of `flowlabel` attribute in the message.
|
|
435
|
-
#--
|
|
436
827
|
# @rbs return: ::Integer
|
|
828
|
+
# @return [Integer]
|
|
829
|
+
# @see AttributeSets::RouteAttrs::Flowlabel
|
|
437
830
|
def flowlabel; attributes[:"flowlabel"]&.value; end
|
|
438
831
|
end
|
|
439
832
|
# Dump route information.
|
|
440
|
-
class DoGetrouteReply < ::Nl::
|
|
833
|
+
class DoGetrouteReply < ::Nl::Raw::Message
|
|
441
834
|
TYPE = 24
|
|
442
835
|
FIXED_HEADER = Structs::Rtmsg
|
|
443
836
|
ATTRIBUTE_SET = AttributeSets::RouteAttrs
|
|
444
837
|
ATTRIBUTES = Ractor.make_shareable(%i[dst src iif oif gateway priority prefsrc metrics multipath flow cacheinfo table mark mfc_stats via newdst pref encap_type encap expires pad uid ttl_propagate ip_proto sport dport nh_id flowlabel])
|
|
445
|
-
# Gets the value of `rtm-family` field in the message's fixed header.
|
|
446
|
-
#--
|
|
447
838
|
# @rbs return: ::Integer
|
|
839
|
+
# @return [Integer]
|
|
448
840
|
def rtm_family; fixed_header.rtm_family; end
|
|
449
|
-
# Gets the value of `rtm-dst-len` field in the message's fixed header.
|
|
450
|
-
#--
|
|
451
841
|
# @rbs return: ::Integer
|
|
842
|
+
# @return [Integer]
|
|
452
843
|
def rtm_dst_len; fixed_header.rtm_dst_len; end
|
|
453
|
-
# Gets the value of `rtm-src-len` field in the message's fixed header.
|
|
454
|
-
#--
|
|
455
844
|
# @rbs return: ::Integer
|
|
845
|
+
# @return [Integer]
|
|
456
846
|
def rtm_src_len; fixed_header.rtm_src_len; end
|
|
457
|
-
# Gets the value of `rtm-tos` field in the message's fixed header.
|
|
458
|
-
#--
|
|
459
847
|
# @rbs return: ::Integer
|
|
848
|
+
# @return [Integer]
|
|
460
849
|
def rtm_tos; fixed_header.rtm_tos; end
|
|
461
|
-
# Gets the value of `rtm-table` field in the message's fixed header.
|
|
462
|
-
#--
|
|
463
850
|
# @rbs return: ::Integer
|
|
851
|
+
# @return [Integer]
|
|
464
852
|
def rtm_table; fixed_header.rtm_table; end
|
|
465
|
-
# Gets the value of `rtm-protocol` field in the message's fixed header.
|
|
466
|
-
#--
|
|
467
853
|
# @rbs return: ::Integer
|
|
854
|
+
# @return [Integer]
|
|
468
855
|
def rtm_protocol; fixed_header.rtm_protocol; end
|
|
469
|
-
# Gets the value of `rtm-scope` field in the message's fixed header.
|
|
470
|
-
#--
|
|
471
856
|
# @rbs return: ::Integer
|
|
857
|
+
# @return [Integer]
|
|
472
858
|
def rtm_scope; fixed_header.rtm_scope; end
|
|
473
|
-
# Gets the value of `rtm-type` field in the message's fixed header.
|
|
474
|
-
#--
|
|
475
859
|
# @rbs return: ::Integer
|
|
860
|
+
# @return [Integer]
|
|
476
861
|
def rtm_type; fixed_header.rtm_type; end
|
|
477
|
-
# Gets the value of `rtm-flags` field in the message's fixed header.
|
|
478
|
-
#--
|
|
479
862
|
# @rbs return: ::Integer
|
|
863
|
+
# @return [Integer]
|
|
480
864
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
481
|
-
# Gets the value of `dst` attribute in the message.
|
|
482
|
-
#--
|
|
483
865
|
# @rbs return: ::String
|
|
866
|
+
# @return [String]
|
|
867
|
+
# @see AttributeSets::RouteAttrs::Dst
|
|
484
868
|
def dst; attributes[:"dst"]&.value; end
|
|
485
|
-
# Gets the value of `src` attribute in the message.
|
|
486
|
-
#--
|
|
487
869
|
# @rbs return: ::String
|
|
870
|
+
# @return [String]
|
|
871
|
+
# @see AttributeSets::RouteAttrs::Src
|
|
488
872
|
def src; attributes[:"src"]&.value; end
|
|
489
|
-
# Gets the value of `iif` attribute in the message.
|
|
490
|
-
#--
|
|
491
873
|
# @rbs return: ::Integer
|
|
874
|
+
# @return [Integer]
|
|
875
|
+
# @see AttributeSets::RouteAttrs::Iif
|
|
492
876
|
def iif; attributes[:"iif"]&.value; end
|
|
493
|
-
# Gets the value of `oif` attribute in the message.
|
|
494
|
-
#--
|
|
495
877
|
# @rbs return: ::Integer
|
|
878
|
+
# @return [Integer]
|
|
879
|
+
# @see AttributeSets::RouteAttrs::Oif
|
|
496
880
|
def oif; attributes[:"oif"]&.value; end
|
|
497
|
-
# Gets the value of `gateway` attribute in the message.
|
|
498
|
-
#--
|
|
499
881
|
# @rbs return: ::String
|
|
882
|
+
# @return [String]
|
|
883
|
+
# @see AttributeSets::RouteAttrs::Gateway
|
|
500
884
|
def gateway; attributes[:"gateway"]&.value; end
|
|
501
|
-
# Gets the value of `priority` attribute in the message.
|
|
502
|
-
#--
|
|
503
885
|
# @rbs return: ::Integer
|
|
886
|
+
# @return [Integer]
|
|
887
|
+
# @see AttributeSets::RouteAttrs::Priority
|
|
504
888
|
def priority; attributes[:"priority"]&.value; end
|
|
505
|
-
# Gets the value of `prefsrc` attribute in the message.
|
|
506
|
-
#--
|
|
507
889
|
# @rbs return: ::String
|
|
890
|
+
# @return [String]
|
|
891
|
+
# @see AttributeSets::RouteAttrs::Prefsrc
|
|
508
892
|
def prefsrc; attributes[:"prefsrc"]&.value; end
|
|
509
|
-
# Gets the value of `metrics` attribute in the message.
|
|
510
|
-
#--
|
|
511
893
|
# @rbs return: AttributeSets::Metrics
|
|
894
|
+
# @return [AttributeSets::Metrics]
|
|
895
|
+
# @see AttributeSets::RouteAttrs::Metrics
|
|
512
896
|
def metrics; attributes[:"metrics"]&.value; end
|
|
513
|
-
# Gets the value of `multipath` attribute in the message.
|
|
514
|
-
#--
|
|
515
897
|
# @rbs return: ::String
|
|
898
|
+
# @return [String]
|
|
899
|
+
# @see AttributeSets::RouteAttrs::Multipath
|
|
516
900
|
def multipath; attributes[:"multipath"]&.value; end
|
|
517
|
-
# Gets the value of `flow` attribute in the message.
|
|
518
|
-
#--
|
|
519
901
|
# @rbs return: ::Integer
|
|
902
|
+
# @return [Integer]
|
|
903
|
+
# @see AttributeSets::RouteAttrs::Flow
|
|
520
904
|
def flow; attributes[:"flow"]&.value; end
|
|
521
|
-
#
|
|
522
|
-
|
|
523
|
-
# @
|
|
905
|
+
# @rbs return: Structs::RtaCacheinfo
|
|
906
|
+
# @return [Structs::RtaCacheinfo]
|
|
907
|
+
# @see AttributeSets::RouteAttrs::Cacheinfo
|
|
524
908
|
def cacheinfo; attributes[:"cacheinfo"]&.value; end
|
|
525
|
-
# Gets the value of `table` attribute in the message.
|
|
526
|
-
#--
|
|
527
909
|
# @rbs return: ::Integer
|
|
910
|
+
# @return [Integer]
|
|
911
|
+
# @see AttributeSets::RouteAttrs::Table
|
|
528
912
|
def table; attributes[:"table"]&.value; end
|
|
529
|
-
# Gets the value of `mark` attribute in the message.
|
|
530
|
-
#--
|
|
531
913
|
# @rbs return: ::Integer
|
|
914
|
+
# @return [Integer]
|
|
915
|
+
# @see AttributeSets::RouteAttrs::Mark
|
|
532
916
|
def mark; attributes[:"mark"]&.value; end
|
|
533
|
-
# Gets the value of `mfc-stats` attribute in the message.
|
|
534
|
-
#--
|
|
535
917
|
# @rbs return: ::String
|
|
918
|
+
# @return [String]
|
|
919
|
+
# @see AttributeSets::RouteAttrs::MfcStats
|
|
536
920
|
def mfc_stats; attributes[:"mfc_stats"]&.value; end
|
|
537
|
-
# Gets the value of `via` attribute in the message.
|
|
538
|
-
#--
|
|
539
921
|
# @rbs return: ::String
|
|
922
|
+
# @return [String]
|
|
923
|
+
# @see AttributeSets::RouteAttrs::Via
|
|
540
924
|
def via; attributes[:"via"]&.value; end
|
|
541
|
-
# Gets the value of `newdst` attribute in the message.
|
|
542
|
-
#--
|
|
543
925
|
# @rbs return: ::String
|
|
926
|
+
# @return [String]
|
|
927
|
+
# @see AttributeSets::RouteAttrs::Newdst
|
|
544
928
|
def newdst; attributes[:"newdst"]&.value; end
|
|
545
|
-
# Gets the value of `pref` attribute in the message.
|
|
546
|
-
#--
|
|
547
929
|
# @rbs return: ::Integer
|
|
930
|
+
# @return [Integer]
|
|
931
|
+
# @see AttributeSets::RouteAttrs::Pref
|
|
548
932
|
def pref; attributes[:"pref"]&.value; end
|
|
549
|
-
# Gets the value of `encap-type` attribute in the message.
|
|
550
|
-
#--
|
|
551
933
|
# @rbs return: ::Integer
|
|
934
|
+
# @return [Integer]
|
|
935
|
+
# @see AttributeSets::RouteAttrs::EncapType
|
|
552
936
|
def encap_type; attributes[:"encap_type"]&.value; end
|
|
553
|
-
# Gets the value of `encap` attribute in the message.
|
|
554
|
-
#--
|
|
555
937
|
# @rbs return: ::String
|
|
938
|
+
# @return [String]
|
|
939
|
+
# @see AttributeSets::RouteAttrs::Encap
|
|
556
940
|
def encap; attributes[:"encap"]&.value; end
|
|
557
|
-
# Gets the value of `expires` attribute in the message.
|
|
558
|
-
#--
|
|
559
941
|
# @rbs return: ::Integer
|
|
942
|
+
# @return [Integer]
|
|
943
|
+
# @see AttributeSets::RouteAttrs::Expires
|
|
560
944
|
def expires; attributes[:"expires"]&.value; end
|
|
561
|
-
# Gets the value of `pad` attribute in the message.
|
|
562
|
-
#--
|
|
563
945
|
# @rbs return: ::String
|
|
946
|
+
# @return [String]
|
|
947
|
+
# @see AttributeSets::RouteAttrs::Pad
|
|
564
948
|
def pad; attributes[:"pad"]&.value; end
|
|
565
|
-
# Gets the value of `uid` attribute in the message.
|
|
566
|
-
#--
|
|
567
949
|
# @rbs return: ::Integer
|
|
950
|
+
# @return [Integer]
|
|
951
|
+
# @see AttributeSets::RouteAttrs::Uid
|
|
568
952
|
def uid; attributes[:"uid"]&.value; end
|
|
569
|
-
# Gets the value of `ttl-propagate` attribute in the message.
|
|
570
|
-
#--
|
|
571
953
|
# @rbs return: ::Integer
|
|
954
|
+
# @return [Integer]
|
|
955
|
+
# @see AttributeSets::RouteAttrs::TtlPropagate
|
|
572
956
|
def ttl_propagate; attributes[:"ttl_propagate"]&.value; end
|
|
573
|
-
# Gets the value of `ip-proto` attribute in the message.
|
|
574
|
-
#--
|
|
575
957
|
# @rbs return: ::Integer
|
|
958
|
+
# @return [Integer]
|
|
959
|
+
# @see AttributeSets::RouteAttrs::IpProto
|
|
576
960
|
def ip_proto; attributes[:"ip_proto"]&.value; end
|
|
577
|
-
# Gets the value of `sport` attribute in the message.
|
|
578
|
-
#--
|
|
579
961
|
# @rbs return: ::Integer
|
|
962
|
+
# @return [Integer]
|
|
963
|
+
# @see AttributeSets::RouteAttrs::Sport
|
|
580
964
|
def sport; attributes[:"sport"]&.value; end
|
|
581
|
-
# Gets the value of `dport` attribute in the message.
|
|
582
|
-
#--
|
|
583
965
|
# @rbs return: ::Integer
|
|
966
|
+
# @return [Integer]
|
|
967
|
+
# @see AttributeSets::RouteAttrs::Dport
|
|
584
968
|
def dport; attributes[:"dport"]&.value; end
|
|
585
|
-
# Gets the value of `nh-id` attribute in the message.
|
|
586
|
-
#--
|
|
587
969
|
# @rbs return: ::Integer
|
|
970
|
+
# @return [Integer]
|
|
971
|
+
# @see AttributeSets::RouteAttrs::NhId
|
|
588
972
|
def nh_id; attributes[:"nh_id"]&.value; end
|
|
589
|
-
# Gets the value of `flowlabel` attribute in the message.
|
|
590
|
-
#--
|
|
591
973
|
# @rbs return: ::Integer
|
|
974
|
+
# @return [Integer]
|
|
975
|
+
# @see AttributeSets::RouteAttrs::Flowlabel
|
|
592
976
|
def flowlabel; attributes[:"flowlabel"]&.value; end
|
|
593
977
|
end
|
|
594
978
|
# Dump route information.
|
|
595
|
-
class DumpGetrouteRequest < ::Nl::
|
|
979
|
+
class DumpGetrouteRequest < ::Nl::Raw::Message
|
|
596
980
|
TYPE = 26
|
|
597
981
|
FIXED_HEADER = Structs::Rtmsg
|
|
598
982
|
ATTRIBUTE_SET = AttributeSets::RouteAttrs
|
|
599
983
|
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
600
|
-
# Gets the value of `rtm-family` field in the message's fixed header.
|
|
601
|
-
#--
|
|
602
984
|
# @rbs return: ::Integer
|
|
985
|
+
# @return [Integer]
|
|
603
986
|
def rtm_family; fixed_header.rtm_family; end
|
|
604
|
-
# Gets the value of `rtm-dst-len` field in the message's fixed header.
|
|
605
|
-
#--
|
|
606
987
|
# @rbs return: ::Integer
|
|
988
|
+
# @return [Integer]
|
|
607
989
|
def rtm_dst_len; fixed_header.rtm_dst_len; end
|
|
608
|
-
# Gets the value of `rtm-src-len` field in the message's fixed header.
|
|
609
|
-
#--
|
|
610
990
|
# @rbs return: ::Integer
|
|
991
|
+
# @return [Integer]
|
|
611
992
|
def rtm_src_len; fixed_header.rtm_src_len; end
|
|
612
|
-
# Gets the value of `rtm-tos` field in the message's fixed header.
|
|
613
|
-
#--
|
|
614
993
|
# @rbs return: ::Integer
|
|
994
|
+
# @return [Integer]
|
|
615
995
|
def rtm_tos; fixed_header.rtm_tos; end
|
|
616
|
-
# Gets the value of `rtm-table` field in the message's fixed header.
|
|
617
|
-
#--
|
|
618
996
|
# @rbs return: ::Integer
|
|
997
|
+
# @return [Integer]
|
|
619
998
|
def rtm_table; fixed_header.rtm_table; end
|
|
620
|
-
# Gets the value of `rtm-protocol` field in the message's fixed header.
|
|
621
|
-
#--
|
|
622
999
|
# @rbs return: ::Integer
|
|
1000
|
+
# @return [Integer]
|
|
623
1001
|
def rtm_protocol; fixed_header.rtm_protocol; end
|
|
624
|
-
# Gets the value of `rtm-scope` field in the message's fixed header.
|
|
625
|
-
#--
|
|
626
1002
|
# @rbs return: ::Integer
|
|
1003
|
+
# @return [Integer]
|
|
627
1004
|
def rtm_scope; fixed_header.rtm_scope; end
|
|
628
|
-
# Gets the value of `rtm-type` field in the message's fixed header.
|
|
629
|
-
#--
|
|
630
1005
|
# @rbs return: ::Integer
|
|
1006
|
+
# @return [Integer]
|
|
631
1007
|
def rtm_type; fixed_header.rtm_type; end
|
|
632
|
-
# Gets the value of `rtm-flags` field in the message's fixed header.
|
|
633
|
-
#--
|
|
634
1008
|
# @rbs return: ::Integer
|
|
1009
|
+
# @return [Integer]
|
|
635
1010
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
636
1011
|
end
|
|
637
1012
|
# Dump route information.
|
|
638
|
-
class DumpGetrouteReply < ::Nl::
|
|
1013
|
+
class DumpGetrouteReply < ::Nl::Raw::Message
|
|
639
1014
|
TYPE = 24
|
|
640
1015
|
FIXED_HEADER = Structs::Rtmsg
|
|
641
1016
|
ATTRIBUTE_SET = AttributeSets::RouteAttrs
|
|
642
1017
|
ATTRIBUTES = Ractor.make_shareable(%i[dst src iif oif gateway priority prefsrc metrics multipath flow cacheinfo table mark mfc_stats via newdst pref encap_type encap expires pad uid ttl_propagate ip_proto sport dport nh_id flowlabel])
|
|
643
|
-
# Gets the value of `rtm-family` field in the message's fixed header.
|
|
644
|
-
#--
|
|
645
1018
|
# @rbs return: ::Integer
|
|
1019
|
+
# @return [Integer]
|
|
646
1020
|
def rtm_family; fixed_header.rtm_family; end
|
|
647
|
-
# Gets the value of `rtm-dst-len` field in the message's fixed header.
|
|
648
|
-
#--
|
|
649
1021
|
# @rbs return: ::Integer
|
|
1022
|
+
# @return [Integer]
|
|
650
1023
|
def rtm_dst_len; fixed_header.rtm_dst_len; end
|
|
651
|
-
# Gets the value of `rtm-src-len` field in the message's fixed header.
|
|
652
|
-
#--
|
|
653
1024
|
# @rbs return: ::Integer
|
|
1025
|
+
# @return [Integer]
|
|
654
1026
|
def rtm_src_len; fixed_header.rtm_src_len; end
|
|
655
|
-
# Gets the value of `rtm-tos` field in the message's fixed header.
|
|
656
|
-
#--
|
|
657
1027
|
# @rbs return: ::Integer
|
|
1028
|
+
# @return [Integer]
|
|
658
1029
|
def rtm_tos; fixed_header.rtm_tos; end
|
|
659
|
-
# Gets the value of `rtm-table` field in the message's fixed header.
|
|
660
|
-
#--
|
|
661
1030
|
# @rbs return: ::Integer
|
|
1031
|
+
# @return [Integer]
|
|
662
1032
|
def rtm_table; fixed_header.rtm_table; end
|
|
663
|
-
# Gets the value of `rtm-protocol` field in the message's fixed header.
|
|
664
|
-
#--
|
|
665
1033
|
# @rbs return: ::Integer
|
|
1034
|
+
# @return [Integer]
|
|
666
1035
|
def rtm_protocol; fixed_header.rtm_protocol; end
|
|
667
|
-
# Gets the value of `rtm-scope` field in the message's fixed header.
|
|
668
|
-
#--
|
|
669
1036
|
# @rbs return: ::Integer
|
|
1037
|
+
# @return [Integer]
|
|
670
1038
|
def rtm_scope; fixed_header.rtm_scope; end
|
|
671
|
-
# Gets the value of `rtm-type` field in the message's fixed header.
|
|
672
|
-
#--
|
|
673
1039
|
# @rbs return: ::Integer
|
|
1040
|
+
# @return [Integer]
|
|
674
1041
|
def rtm_type; fixed_header.rtm_type; end
|
|
675
|
-
# Gets the value of `rtm-flags` field in the message's fixed header.
|
|
676
|
-
#--
|
|
677
1042
|
# @rbs return: ::Integer
|
|
1043
|
+
# @return [Integer]
|
|
678
1044
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
679
|
-
# Gets the value of `dst` attribute in the message.
|
|
680
|
-
#--
|
|
681
1045
|
# @rbs return: ::String
|
|
1046
|
+
# @return [String]
|
|
1047
|
+
# @see AttributeSets::RouteAttrs::Dst
|
|
682
1048
|
def dst; attributes[:"dst"]&.value; end
|
|
683
|
-
# Gets the value of `src` attribute in the message.
|
|
684
|
-
#--
|
|
685
1049
|
# @rbs return: ::String
|
|
1050
|
+
# @return [String]
|
|
1051
|
+
# @see AttributeSets::RouteAttrs::Src
|
|
686
1052
|
def src; attributes[:"src"]&.value; end
|
|
687
|
-
# Gets the value of `iif` attribute in the message.
|
|
688
|
-
#--
|
|
689
1053
|
# @rbs return: ::Integer
|
|
1054
|
+
# @return [Integer]
|
|
1055
|
+
# @see AttributeSets::RouteAttrs::Iif
|
|
690
1056
|
def iif; attributes[:"iif"]&.value; end
|
|
691
|
-
# Gets the value of `oif` attribute in the message.
|
|
692
|
-
#--
|
|
693
1057
|
# @rbs return: ::Integer
|
|
1058
|
+
# @return [Integer]
|
|
1059
|
+
# @see AttributeSets::RouteAttrs::Oif
|
|
694
1060
|
def oif; attributes[:"oif"]&.value; end
|
|
695
|
-
# Gets the value of `gateway` attribute in the message.
|
|
696
|
-
#--
|
|
697
1061
|
# @rbs return: ::String
|
|
1062
|
+
# @return [String]
|
|
1063
|
+
# @see AttributeSets::RouteAttrs::Gateway
|
|
698
1064
|
def gateway; attributes[:"gateway"]&.value; end
|
|
699
|
-
# Gets the value of `priority` attribute in the message.
|
|
700
|
-
#--
|
|
701
1065
|
# @rbs return: ::Integer
|
|
1066
|
+
# @return [Integer]
|
|
1067
|
+
# @see AttributeSets::RouteAttrs::Priority
|
|
702
1068
|
def priority; attributes[:"priority"]&.value; end
|
|
703
|
-
# Gets the value of `prefsrc` attribute in the message.
|
|
704
|
-
#--
|
|
705
1069
|
# @rbs return: ::String
|
|
1070
|
+
# @return [String]
|
|
1071
|
+
# @see AttributeSets::RouteAttrs::Prefsrc
|
|
706
1072
|
def prefsrc; attributes[:"prefsrc"]&.value; end
|
|
707
|
-
# Gets the value of `metrics` attribute in the message.
|
|
708
|
-
#--
|
|
709
1073
|
# @rbs return: AttributeSets::Metrics
|
|
1074
|
+
# @return [AttributeSets::Metrics]
|
|
1075
|
+
# @see AttributeSets::RouteAttrs::Metrics
|
|
710
1076
|
def metrics; attributes[:"metrics"]&.value; end
|
|
711
|
-
# Gets the value of `multipath` attribute in the message.
|
|
712
|
-
#--
|
|
713
1077
|
# @rbs return: ::String
|
|
1078
|
+
# @return [String]
|
|
1079
|
+
# @see AttributeSets::RouteAttrs::Multipath
|
|
714
1080
|
def multipath; attributes[:"multipath"]&.value; end
|
|
715
|
-
# Gets the value of `flow` attribute in the message.
|
|
716
|
-
#--
|
|
717
1081
|
# @rbs return: ::Integer
|
|
1082
|
+
# @return [Integer]
|
|
1083
|
+
# @see AttributeSets::RouteAttrs::Flow
|
|
718
1084
|
def flow; attributes[:"flow"]&.value; end
|
|
719
|
-
#
|
|
720
|
-
|
|
721
|
-
# @
|
|
1085
|
+
# @rbs return: Structs::RtaCacheinfo
|
|
1086
|
+
# @return [Structs::RtaCacheinfo]
|
|
1087
|
+
# @see AttributeSets::RouteAttrs::Cacheinfo
|
|
722
1088
|
def cacheinfo; attributes[:"cacheinfo"]&.value; end
|
|
723
|
-
# Gets the value of `table` attribute in the message.
|
|
724
|
-
#--
|
|
725
1089
|
# @rbs return: ::Integer
|
|
1090
|
+
# @return [Integer]
|
|
1091
|
+
# @see AttributeSets::RouteAttrs::Table
|
|
726
1092
|
def table; attributes[:"table"]&.value; end
|
|
727
|
-
# Gets the value of `mark` attribute in the message.
|
|
728
|
-
#--
|
|
729
1093
|
# @rbs return: ::Integer
|
|
1094
|
+
# @return [Integer]
|
|
1095
|
+
# @see AttributeSets::RouteAttrs::Mark
|
|
730
1096
|
def mark; attributes[:"mark"]&.value; end
|
|
731
|
-
# Gets the value of `mfc-stats` attribute in the message.
|
|
732
|
-
#--
|
|
733
1097
|
# @rbs return: ::String
|
|
1098
|
+
# @return [String]
|
|
1099
|
+
# @see AttributeSets::RouteAttrs::MfcStats
|
|
734
1100
|
def mfc_stats; attributes[:"mfc_stats"]&.value; end
|
|
735
|
-
# Gets the value of `via` attribute in the message.
|
|
736
|
-
#--
|
|
737
1101
|
# @rbs return: ::String
|
|
1102
|
+
# @return [String]
|
|
1103
|
+
# @see AttributeSets::RouteAttrs::Via
|
|
738
1104
|
def via; attributes[:"via"]&.value; end
|
|
739
|
-
# Gets the value of `newdst` attribute in the message.
|
|
740
|
-
#--
|
|
741
1105
|
# @rbs return: ::String
|
|
1106
|
+
# @return [String]
|
|
1107
|
+
# @see AttributeSets::RouteAttrs::Newdst
|
|
742
1108
|
def newdst; attributes[:"newdst"]&.value; end
|
|
743
|
-
# Gets the value of `pref` attribute in the message.
|
|
744
|
-
#--
|
|
745
1109
|
# @rbs return: ::Integer
|
|
1110
|
+
# @return [Integer]
|
|
1111
|
+
# @see AttributeSets::RouteAttrs::Pref
|
|
746
1112
|
def pref; attributes[:"pref"]&.value; end
|
|
747
|
-
# Gets the value of `encap-type` attribute in the message.
|
|
748
|
-
#--
|
|
749
1113
|
# @rbs return: ::Integer
|
|
1114
|
+
# @return [Integer]
|
|
1115
|
+
# @see AttributeSets::RouteAttrs::EncapType
|
|
750
1116
|
def encap_type; attributes[:"encap_type"]&.value; end
|
|
751
|
-
# Gets the value of `encap` attribute in the message.
|
|
752
|
-
#--
|
|
753
1117
|
# @rbs return: ::String
|
|
1118
|
+
# @return [String]
|
|
1119
|
+
# @see AttributeSets::RouteAttrs::Encap
|
|
754
1120
|
def encap; attributes[:"encap"]&.value; end
|
|
755
|
-
# Gets the value of `expires` attribute in the message.
|
|
756
|
-
#--
|
|
757
1121
|
# @rbs return: ::Integer
|
|
1122
|
+
# @return [Integer]
|
|
1123
|
+
# @see AttributeSets::RouteAttrs::Expires
|
|
758
1124
|
def expires; attributes[:"expires"]&.value; end
|
|
759
|
-
# Gets the value of `pad` attribute in the message.
|
|
760
|
-
#--
|
|
761
1125
|
# @rbs return: ::String
|
|
1126
|
+
# @return [String]
|
|
1127
|
+
# @see AttributeSets::RouteAttrs::Pad
|
|
762
1128
|
def pad; attributes[:"pad"]&.value; end
|
|
763
|
-
# Gets the value of `uid` attribute in the message.
|
|
764
|
-
#--
|
|
765
1129
|
# @rbs return: ::Integer
|
|
1130
|
+
# @return [Integer]
|
|
1131
|
+
# @see AttributeSets::RouteAttrs::Uid
|
|
766
1132
|
def uid; attributes[:"uid"]&.value; end
|
|
767
|
-
# Gets the value of `ttl-propagate` attribute in the message.
|
|
768
|
-
#--
|
|
769
1133
|
# @rbs return: ::Integer
|
|
1134
|
+
# @return [Integer]
|
|
1135
|
+
# @see AttributeSets::RouteAttrs::TtlPropagate
|
|
770
1136
|
def ttl_propagate; attributes[:"ttl_propagate"]&.value; end
|
|
771
|
-
# Gets the value of `ip-proto` attribute in the message.
|
|
772
|
-
#--
|
|
773
1137
|
# @rbs return: ::Integer
|
|
1138
|
+
# @return [Integer]
|
|
1139
|
+
# @see AttributeSets::RouteAttrs::IpProto
|
|
774
1140
|
def ip_proto; attributes[:"ip_proto"]&.value; end
|
|
775
|
-
# Gets the value of `sport` attribute in the message.
|
|
776
|
-
#--
|
|
777
1141
|
# @rbs return: ::Integer
|
|
1142
|
+
# @return [Integer]
|
|
1143
|
+
# @see AttributeSets::RouteAttrs::Sport
|
|
778
1144
|
def sport; attributes[:"sport"]&.value; end
|
|
779
|
-
# Gets the value of `dport` attribute in the message.
|
|
780
|
-
#--
|
|
781
1145
|
# @rbs return: ::Integer
|
|
1146
|
+
# @return [Integer]
|
|
1147
|
+
# @see AttributeSets::RouteAttrs::Dport
|
|
782
1148
|
def dport; attributes[:"dport"]&.value; end
|
|
783
|
-
# Gets the value of `nh-id` attribute in the message.
|
|
784
|
-
#--
|
|
785
1149
|
# @rbs return: ::Integer
|
|
1150
|
+
# @return [Integer]
|
|
1151
|
+
# @see AttributeSets::RouteAttrs::NhId
|
|
786
1152
|
def nh_id; attributes[:"nh_id"]&.value; end
|
|
787
|
-
# Gets the value of `flowlabel` attribute in the message.
|
|
788
|
-
#--
|
|
789
1153
|
# @rbs return: ::Integer
|
|
1154
|
+
# @return [Integer]
|
|
1155
|
+
# @see AttributeSets::RouteAttrs::Flowlabel
|
|
790
1156
|
def flowlabel; attributes[:"flowlabel"]&.value; end
|
|
791
1157
|
end
|
|
792
1158
|
# Create a new route
|
|
793
|
-
class DoNewrouteRequest < ::Nl::
|
|
1159
|
+
class DoNewrouteRequest < ::Nl::Raw::Message
|
|
794
1160
|
TYPE = 24
|
|
795
1161
|
FIXED_HEADER = Structs::Rtmsg
|
|
796
1162
|
ATTRIBUTE_SET = AttributeSets::RouteAttrs
|
|
797
1163
|
ATTRIBUTES = Ractor.make_shareable(%i[dst src iif oif gateway priority prefsrc metrics multipath flow cacheinfo table mark mfc_stats via newdst pref encap_type encap expires pad uid ttl_propagate ip_proto sport dport nh_id flowlabel])
|
|
798
|
-
# Gets the value of `rtm-family` field in the message's fixed header.
|
|
799
|
-
#--
|
|
800
1164
|
# @rbs return: ::Integer
|
|
1165
|
+
# @return [Integer]
|
|
801
1166
|
def rtm_family; fixed_header.rtm_family; end
|
|
802
|
-
# Gets the value of `rtm-dst-len` field in the message's fixed header.
|
|
803
|
-
#--
|
|
804
1167
|
# @rbs return: ::Integer
|
|
1168
|
+
# @return [Integer]
|
|
805
1169
|
def rtm_dst_len; fixed_header.rtm_dst_len; end
|
|
806
|
-
# Gets the value of `rtm-src-len` field in the message's fixed header.
|
|
807
|
-
#--
|
|
808
1170
|
# @rbs return: ::Integer
|
|
1171
|
+
# @return [Integer]
|
|
809
1172
|
def rtm_src_len; fixed_header.rtm_src_len; end
|
|
810
|
-
# Gets the value of `rtm-tos` field in the message's fixed header.
|
|
811
|
-
#--
|
|
812
1173
|
# @rbs return: ::Integer
|
|
1174
|
+
# @return [Integer]
|
|
813
1175
|
def rtm_tos; fixed_header.rtm_tos; end
|
|
814
|
-
# Gets the value of `rtm-table` field in the message's fixed header.
|
|
815
|
-
#--
|
|
816
1176
|
# @rbs return: ::Integer
|
|
1177
|
+
# @return [Integer]
|
|
817
1178
|
def rtm_table; fixed_header.rtm_table; end
|
|
818
|
-
# Gets the value of `rtm-protocol` field in the message's fixed header.
|
|
819
|
-
#--
|
|
820
1179
|
# @rbs return: ::Integer
|
|
1180
|
+
# @return [Integer]
|
|
821
1181
|
def rtm_protocol; fixed_header.rtm_protocol; end
|
|
822
|
-
# Gets the value of `rtm-scope` field in the message's fixed header.
|
|
823
|
-
#--
|
|
824
1182
|
# @rbs return: ::Integer
|
|
1183
|
+
# @return [Integer]
|
|
825
1184
|
def rtm_scope; fixed_header.rtm_scope; end
|
|
826
|
-
# Gets the value of `rtm-type` field in the message's fixed header.
|
|
827
|
-
#--
|
|
828
1185
|
# @rbs return: ::Integer
|
|
1186
|
+
# @return [Integer]
|
|
829
1187
|
def rtm_type; fixed_header.rtm_type; end
|
|
830
|
-
# Gets the value of `rtm-flags` field in the message's fixed header.
|
|
831
|
-
#--
|
|
832
1188
|
# @rbs return: ::Integer
|
|
1189
|
+
# @return [Integer]
|
|
833
1190
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
834
|
-
# Gets the value of `dst` attribute in the message.
|
|
835
|
-
#--
|
|
836
1191
|
# @rbs return: ::String
|
|
1192
|
+
# @return [String]
|
|
1193
|
+
# @see AttributeSets::RouteAttrs::Dst
|
|
837
1194
|
def dst; attributes[:"dst"]&.value; end
|
|
838
|
-
# Gets the value of `src` attribute in the message.
|
|
839
|
-
#--
|
|
840
1195
|
# @rbs return: ::String
|
|
1196
|
+
# @return [String]
|
|
1197
|
+
# @see AttributeSets::RouteAttrs::Src
|
|
841
1198
|
def src; attributes[:"src"]&.value; end
|
|
842
|
-
# Gets the value of `iif` attribute in the message.
|
|
843
|
-
#--
|
|
844
1199
|
# @rbs return: ::Integer
|
|
1200
|
+
# @return [Integer]
|
|
1201
|
+
# @see AttributeSets::RouteAttrs::Iif
|
|
845
1202
|
def iif; attributes[:"iif"]&.value; end
|
|
846
|
-
# Gets the value of `oif` attribute in the message.
|
|
847
|
-
#--
|
|
848
1203
|
# @rbs return: ::Integer
|
|
1204
|
+
# @return [Integer]
|
|
1205
|
+
# @see AttributeSets::RouteAttrs::Oif
|
|
849
1206
|
def oif; attributes[:"oif"]&.value; end
|
|
850
|
-
# Gets the value of `gateway` attribute in the message.
|
|
851
|
-
#--
|
|
852
1207
|
# @rbs return: ::String
|
|
1208
|
+
# @return [String]
|
|
1209
|
+
# @see AttributeSets::RouteAttrs::Gateway
|
|
853
1210
|
def gateway; attributes[:"gateway"]&.value; end
|
|
854
|
-
# Gets the value of `priority` attribute in the message.
|
|
855
|
-
#--
|
|
856
1211
|
# @rbs return: ::Integer
|
|
1212
|
+
# @return [Integer]
|
|
1213
|
+
# @see AttributeSets::RouteAttrs::Priority
|
|
857
1214
|
def priority; attributes[:"priority"]&.value; end
|
|
858
|
-
# Gets the value of `prefsrc` attribute in the message.
|
|
859
|
-
#--
|
|
860
1215
|
# @rbs return: ::String
|
|
1216
|
+
# @return [String]
|
|
1217
|
+
# @see AttributeSets::RouteAttrs::Prefsrc
|
|
861
1218
|
def prefsrc; attributes[:"prefsrc"]&.value; end
|
|
862
|
-
# Gets the value of `metrics` attribute in the message.
|
|
863
|
-
#--
|
|
864
1219
|
# @rbs return: AttributeSets::Metrics
|
|
1220
|
+
# @return [AttributeSets::Metrics]
|
|
1221
|
+
# @see AttributeSets::RouteAttrs::Metrics
|
|
865
1222
|
def metrics; attributes[:"metrics"]&.value; end
|
|
866
|
-
# Gets the value of `multipath` attribute in the message.
|
|
867
|
-
#--
|
|
868
1223
|
# @rbs return: ::String
|
|
1224
|
+
# @return [String]
|
|
1225
|
+
# @see AttributeSets::RouteAttrs::Multipath
|
|
869
1226
|
def multipath; attributes[:"multipath"]&.value; end
|
|
870
|
-
# Gets the value of `flow` attribute in the message.
|
|
871
|
-
#--
|
|
872
1227
|
# @rbs return: ::Integer
|
|
1228
|
+
# @return [Integer]
|
|
1229
|
+
# @see AttributeSets::RouteAttrs::Flow
|
|
873
1230
|
def flow; attributes[:"flow"]&.value; end
|
|
874
|
-
#
|
|
875
|
-
|
|
876
|
-
# @
|
|
1231
|
+
# @rbs return: Structs::RtaCacheinfo
|
|
1232
|
+
# @return [Structs::RtaCacheinfo]
|
|
1233
|
+
# @see AttributeSets::RouteAttrs::Cacheinfo
|
|
877
1234
|
def cacheinfo; attributes[:"cacheinfo"]&.value; end
|
|
878
|
-
# Gets the value of `table` attribute in the message.
|
|
879
|
-
#--
|
|
880
1235
|
# @rbs return: ::Integer
|
|
1236
|
+
# @return [Integer]
|
|
1237
|
+
# @see AttributeSets::RouteAttrs::Table
|
|
881
1238
|
def table; attributes[:"table"]&.value; end
|
|
882
|
-
# Gets the value of `mark` attribute in the message.
|
|
883
|
-
#--
|
|
884
1239
|
# @rbs return: ::Integer
|
|
1240
|
+
# @return [Integer]
|
|
1241
|
+
# @see AttributeSets::RouteAttrs::Mark
|
|
885
1242
|
def mark; attributes[:"mark"]&.value; end
|
|
886
|
-
# Gets the value of `mfc-stats` attribute in the message.
|
|
887
|
-
#--
|
|
888
1243
|
# @rbs return: ::String
|
|
1244
|
+
# @return [String]
|
|
1245
|
+
# @see AttributeSets::RouteAttrs::MfcStats
|
|
889
1246
|
def mfc_stats; attributes[:"mfc_stats"]&.value; end
|
|
890
|
-
# Gets the value of `via` attribute in the message.
|
|
891
|
-
#--
|
|
892
1247
|
# @rbs return: ::String
|
|
1248
|
+
# @return [String]
|
|
1249
|
+
# @see AttributeSets::RouteAttrs::Via
|
|
893
1250
|
def via; attributes[:"via"]&.value; end
|
|
894
|
-
# Gets the value of `newdst` attribute in the message.
|
|
895
|
-
#--
|
|
896
1251
|
# @rbs return: ::String
|
|
1252
|
+
# @return [String]
|
|
1253
|
+
# @see AttributeSets::RouteAttrs::Newdst
|
|
897
1254
|
def newdst; attributes[:"newdst"]&.value; end
|
|
898
|
-
# Gets the value of `pref` attribute in the message.
|
|
899
|
-
#--
|
|
900
1255
|
# @rbs return: ::Integer
|
|
1256
|
+
# @return [Integer]
|
|
1257
|
+
# @see AttributeSets::RouteAttrs::Pref
|
|
901
1258
|
def pref; attributes[:"pref"]&.value; end
|
|
902
|
-
# Gets the value of `encap-type` attribute in the message.
|
|
903
|
-
#--
|
|
904
1259
|
# @rbs return: ::Integer
|
|
1260
|
+
# @return [Integer]
|
|
1261
|
+
# @see AttributeSets::RouteAttrs::EncapType
|
|
905
1262
|
def encap_type; attributes[:"encap_type"]&.value; end
|
|
906
|
-
# Gets the value of `encap` attribute in the message.
|
|
907
|
-
#--
|
|
908
1263
|
# @rbs return: ::String
|
|
1264
|
+
# @return [String]
|
|
1265
|
+
# @see AttributeSets::RouteAttrs::Encap
|
|
909
1266
|
def encap; attributes[:"encap"]&.value; end
|
|
910
|
-
# Gets the value of `expires` attribute in the message.
|
|
911
|
-
#--
|
|
912
1267
|
# @rbs return: ::Integer
|
|
1268
|
+
# @return [Integer]
|
|
1269
|
+
# @see AttributeSets::RouteAttrs::Expires
|
|
913
1270
|
def expires; attributes[:"expires"]&.value; end
|
|
914
|
-
# Gets the value of `pad` attribute in the message.
|
|
915
|
-
#--
|
|
916
1271
|
# @rbs return: ::String
|
|
1272
|
+
# @return [String]
|
|
1273
|
+
# @see AttributeSets::RouteAttrs::Pad
|
|
917
1274
|
def pad; attributes[:"pad"]&.value; end
|
|
918
|
-
# Gets the value of `uid` attribute in the message.
|
|
919
|
-
#--
|
|
920
1275
|
# @rbs return: ::Integer
|
|
1276
|
+
# @return [Integer]
|
|
1277
|
+
# @see AttributeSets::RouteAttrs::Uid
|
|
921
1278
|
def uid; attributes[:"uid"]&.value; end
|
|
922
|
-
# Gets the value of `ttl-propagate` attribute in the message.
|
|
923
|
-
#--
|
|
924
1279
|
# @rbs return: ::Integer
|
|
1280
|
+
# @return [Integer]
|
|
1281
|
+
# @see AttributeSets::RouteAttrs::TtlPropagate
|
|
925
1282
|
def ttl_propagate; attributes[:"ttl_propagate"]&.value; end
|
|
926
|
-
# Gets the value of `ip-proto` attribute in the message.
|
|
927
|
-
#--
|
|
928
1283
|
# @rbs return: ::Integer
|
|
1284
|
+
# @return [Integer]
|
|
1285
|
+
# @see AttributeSets::RouteAttrs::IpProto
|
|
929
1286
|
def ip_proto; attributes[:"ip_proto"]&.value; end
|
|
930
|
-
# Gets the value of `sport` attribute in the message.
|
|
931
|
-
#--
|
|
932
1287
|
# @rbs return: ::Integer
|
|
1288
|
+
# @return [Integer]
|
|
1289
|
+
# @see AttributeSets::RouteAttrs::Sport
|
|
933
1290
|
def sport; attributes[:"sport"]&.value; end
|
|
934
|
-
# Gets the value of `dport` attribute in the message.
|
|
935
|
-
#--
|
|
936
1291
|
# @rbs return: ::Integer
|
|
1292
|
+
# @return [Integer]
|
|
1293
|
+
# @see AttributeSets::RouteAttrs::Dport
|
|
937
1294
|
def dport; attributes[:"dport"]&.value; end
|
|
938
|
-
# Gets the value of `nh-id` attribute in the message.
|
|
939
|
-
#--
|
|
940
1295
|
# @rbs return: ::Integer
|
|
1296
|
+
# @return [Integer]
|
|
1297
|
+
# @see AttributeSets::RouteAttrs::NhId
|
|
941
1298
|
def nh_id; attributes[:"nh_id"]&.value; end
|
|
942
|
-
# Gets the value of `flowlabel` attribute in the message.
|
|
943
|
-
#--
|
|
944
1299
|
# @rbs return: ::Integer
|
|
1300
|
+
# @return [Integer]
|
|
1301
|
+
# @see AttributeSets::RouteAttrs::Flowlabel
|
|
945
1302
|
def flowlabel; attributes[:"flowlabel"]&.value; end
|
|
946
1303
|
end
|
|
947
1304
|
# Delete an existing route
|
|
948
|
-
class DoDelrouteRequest < ::Nl::
|
|
1305
|
+
class DoDelrouteRequest < ::Nl::Raw::Message
|
|
949
1306
|
TYPE = 25
|
|
950
1307
|
FIXED_HEADER = Structs::Rtmsg
|
|
951
1308
|
ATTRIBUTE_SET = AttributeSets::RouteAttrs
|
|
952
1309
|
ATTRIBUTES = Ractor.make_shareable(%i[dst src iif oif gateway priority prefsrc metrics multipath flow cacheinfo table mark mfc_stats via newdst pref encap_type encap expires pad uid ttl_propagate ip_proto sport dport nh_id flowlabel])
|
|
953
|
-
# Gets the value of `rtm-family` field in the message's fixed header.
|
|
954
|
-
#--
|
|
955
1310
|
# @rbs return: ::Integer
|
|
1311
|
+
# @return [Integer]
|
|
956
1312
|
def rtm_family; fixed_header.rtm_family; end
|
|
957
|
-
# Gets the value of `rtm-dst-len` field in the message's fixed header.
|
|
958
|
-
#--
|
|
959
1313
|
# @rbs return: ::Integer
|
|
1314
|
+
# @return [Integer]
|
|
960
1315
|
def rtm_dst_len; fixed_header.rtm_dst_len; end
|
|
961
|
-
# Gets the value of `rtm-src-len` field in the message's fixed header.
|
|
962
|
-
#--
|
|
963
1316
|
# @rbs return: ::Integer
|
|
1317
|
+
# @return [Integer]
|
|
964
1318
|
def rtm_src_len; fixed_header.rtm_src_len; end
|
|
965
|
-
# Gets the value of `rtm-tos` field in the message's fixed header.
|
|
966
|
-
#--
|
|
967
1319
|
# @rbs return: ::Integer
|
|
1320
|
+
# @return [Integer]
|
|
968
1321
|
def rtm_tos; fixed_header.rtm_tos; end
|
|
969
|
-
# Gets the value of `rtm-table` field in the message's fixed header.
|
|
970
|
-
#--
|
|
971
1322
|
# @rbs return: ::Integer
|
|
1323
|
+
# @return [Integer]
|
|
972
1324
|
def rtm_table; fixed_header.rtm_table; end
|
|
973
|
-
# Gets the value of `rtm-protocol` field in the message's fixed header.
|
|
974
|
-
#--
|
|
975
1325
|
# @rbs return: ::Integer
|
|
1326
|
+
# @return [Integer]
|
|
976
1327
|
def rtm_protocol; fixed_header.rtm_protocol; end
|
|
977
|
-
# Gets the value of `rtm-scope` field in the message's fixed header.
|
|
978
|
-
#--
|
|
979
1328
|
# @rbs return: ::Integer
|
|
1329
|
+
# @return [Integer]
|
|
980
1330
|
def rtm_scope; fixed_header.rtm_scope; end
|
|
981
|
-
# Gets the value of `rtm-type` field in the message's fixed header.
|
|
982
|
-
#--
|
|
983
1331
|
# @rbs return: ::Integer
|
|
1332
|
+
# @return [Integer]
|
|
984
1333
|
def rtm_type; fixed_header.rtm_type; end
|
|
985
|
-
# Gets the value of `rtm-flags` field in the message's fixed header.
|
|
986
|
-
#--
|
|
987
1334
|
# @rbs return: ::Integer
|
|
1335
|
+
# @return [Integer]
|
|
988
1336
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
989
|
-
# Gets the value of `dst` attribute in the message.
|
|
990
|
-
#--
|
|
991
1337
|
# @rbs return: ::String
|
|
1338
|
+
# @return [String]
|
|
1339
|
+
# @see AttributeSets::RouteAttrs::Dst
|
|
992
1340
|
def dst; attributes[:"dst"]&.value; end
|
|
993
|
-
# Gets the value of `src` attribute in the message.
|
|
994
|
-
#--
|
|
995
1341
|
# @rbs return: ::String
|
|
1342
|
+
# @return [String]
|
|
1343
|
+
# @see AttributeSets::RouteAttrs::Src
|
|
996
1344
|
def src; attributes[:"src"]&.value; end
|
|
997
|
-
# Gets the value of `iif` attribute in the message.
|
|
998
|
-
#--
|
|
999
1345
|
# @rbs return: ::Integer
|
|
1346
|
+
# @return [Integer]
|
|
1347
|
+
# @see AttributeSets::RouteAttrs::Iif
|
|
1000
1348
|
def iif; attributes[:"iif"]&.value; end
|
|
1001
|
-
# Gets the value of `oif` attribute in the message.
|
|
1002
|
-
#--
|
|
1003
1349
|
# @rbs return: ::Integer
|
|
1350
|
+
# @return [Integer]
|
|
1351
|
+
# @see AttributeSets::RouteAttrs::Oif
|
|
1004
1352
|
def oif; attributes[:"oif"]&.value; end
|
|
1005
|
-
# Gets the value of `gateway` attribute in the message.
|
|
1006
|
-
#--
|
|
1007
1353
|
# @rbs return: ::String
|
|
1354
|
+
# @return [String]
|
|
1355
|
+
# @see AttributeSets::RouteAttrs::Gateway
|
|
1008
1356
|
def gateway; attributes[:"gateway"]&.value; end
|
|
1009
|
-
# Gets the value of `priority` attribute in the message.
|
|
1010
|
-
#--
|
|
1011
1357
|
# @rbs return: ::Integer
|
|
1358
|
+
# @return [Integer]
|
|
1359
|
+
# @see AttributeSets::RouteAttrs::Priority
|
|
1012
1360
|
def priority; attributes[:"priority"]&.value; end
|
|
1013
|
-
# Gets the value of `prefsrc` attribute in the message.
|
|
1014
|
-
#--
|
|
1015
1361
|
# @rbs return: ::String
|
|
1362
|
+
# @return [String]
|
|
1363
|
+
# @see AttributeSets::RouteAttrs::Prefsrc
|
|
1016
1364
|
def prefsrc; attributes[:"prefsrc"]&.value; end
|
|
1017
|
-
# Gets the value of `metrics` attribute in the message.
|
|
1018
|
-
#--
|
|
1019
1365
|
# @rbs return: AttributeSets::Metrics
|
|
1366
|
+
# @return [AttributeSets::Metrics]
|
|
1367
|
+
# @see AttributeSets::RouteAttrs::Metrics
|
|
1020
1368
|
def metrics; attributes[:"metrics"]&.value; end
|
|
1021
|
-
# Gets the value of `multipath` attribute in the message.
|
|
1022
|
-
#--
|
|
1023
1369
|
# @rbs return: ::String
|
|
1370
|
+
# @return [String]
|
|
1371
|
+
# @see AttributeSets::RouteAttrs::Multipath
|
|
1024
1372
|
def multipath; attributes[:"multipath"]&.value; end
|
|
1025
|
-
# Gets the value of `flow` attribute in the message.
|
|
1026
|
-
#--
|
|
1027
1373
|
# @rbs return: ::Integer
|
|
1374
|
+
# @return [Integer]
|
|
1375
|
+
# @see AttributeSets::RouteAttrs::Flow
|
|
1028
1376
|
def flow; attributes[:"flow"]&.value; end
|
|
1029
|
-
#
|
|
1030
|
-
|
|
1031
|
-
# @
|
|
1377
|
+
# @rbs return: Structs::RtaCacheinfo
|
|
1378
|
+
# @return [Structs::RtaCacheinfo]
|
|
1379
|
+
# @see AttributeSets::RouteAttrs::Cacheinfo
|
|
1032
1380
|
def cacheinfo; attributes[:"cacheinfo"]&.value; end
|
|
1033
|
-
# Gets the value of `table` attribute in the message.
|
|
1034
|
-
#--
|
|
1035
1381
|
# @rbs return: ::Integer
|
|
1382
|
+
# @return [Integer]
|
|
1383
|
+
# @see AttributeSets::RouteAttrs::Table
|
|
1036
1384
|
def table; attributes[:"table"]&.value; end
|
|
1037
|
-
# Gets the value of `mark` attribute in the message.
|
|
1038
|
-
#--
|
|
1039
1385
|
# @rbs return: ::Integer
|
|
1386
|
+
# @return [Integer]
|
|
1387
|
+
# @see AttributeSets::RouteAttrs::Mark
|
|
1040
1388
|
def mark; attributes[:"mark"]&.value; end
|
|
1041
|
-
# Gets the value of `mfc-stats` attribute in the message.
|
|
1042
|
-
#--
|
|
1043
1389
|
# @rbs return: ::String
|
|
1390
|
+
# @return [String]
|
|
1391
|
+
# @see AttributeSets::RouteAttrs::MfcStats
|
|
1044
1392
|
def mfc_stats; attributes[:"mfc_stats"]&.value; end
|
|
1045
|
-
# Gets the value of `via` attribute in the message.
|
|
1046
|
-
#--
|
|
1047
1393
|
# @rbs return: ::String
|
|
1394
|
+
# @return [String]
|
|
1395
|
+
# @see AttributeSets::RouteAttrs::Via
|
|
1048
1396
|
def via; attributes[:"via"]&.value; end
|
|
1049
|
-
# Gets the value of `newdst` attribute in the message.
|
|
1050
|
-
#--
|
|
1051
1397
|
# @rbs return: ::String
|
|
1398
|
+
# @return [String]
|
|
1399
|
+
# @see AttributeSets::RouteAttrs::Newdst
|
|
1052
1400
|
def newdst; attributes[:"newdst"]&.value; end
|
|
1053
|
-
# Gets the value of `pref` attribute in the message.
|
|
1054
|
-
#--
|
|
1055
1401
|
# @rbs return: ::Integer
|
|
1402
|
+
# @return [Integer]
|
|
1403
|
+
# @see AttributeSets::RouteAttrs::Pref
|
|
1056
1404
|
def pref; attributes[:"pref"]&.value; end
|
|
1057
|
-
# Gets the value of `encap-type` attribute in the message.
|
|
1058
|
-
#--
|
|
1059
1405
|
# @rbs return: ::Integer
|
|
1406
|
+
# @return [Integer]
|
|
1407
|
+
# @see AttributeSets::RouteAttrs::EncapType
|
|
1060
1408
|
def encap_type; attributes[:"encap_type"]&.value; end
|
|
1061
|
-
# Gets the value of `encap` attribute in the message.
|
|
1062
|
-
#--
|
|
1063
1409
|
# @rbs return: ::String
|
|
1410
|
+
# @return [String]
|
|
1411
|
+
# @see AttributeSets::RouteAttrs::Encap
|
|
1064
1412
|
def encap; attributes[:"encap"]&.value; end
|
|
1065
|
-
# Gets the value of `expires` attribute in the message.
|
|
1066
|
-
#--
|
|
1067
1413
|
# @rbs return: ::Integer
|
|
1414
|
+
# @return [Integer]
|
|
1415
|
+
# @see AttributeSets::RouteAttrs::Expires
|
|
1068
1416
|
def expires; attributes[:"expires"]&.value; end
|
|
1069
|
-
# Gets the value of `pad` attribute in the message.
|
|
1070
|
-
#--
|
|
1071
1417
|
# @rbs return: ::String
|
|
1418
|
+
# @return [String]
|
|
1419
|
+
# @see AttributeSets::RouteAttrs::Pad
|
|
1072
1420
|
def pad; attributes[:"pad"]&.value; end
|
|
1073
|
-
# Gets the value of `uid` attribute in the message.
|
|
1074
|
-
#--
|
|
1075
1421
|
# @rbs return: ::Integer
|
|
1422
|
+
# @return [Integer]
|
|
1423
|
+
# @see AttributeSets::RouteAttrs::Uid
|
|
1076
1424
|
def uid; attributes[:"uid"]&.value; end
|
|
1077
|
-
# Gets the value of `ttl-propagate` attribute in the message.
|
|
1078
|
-
#--
|
|
1079
1425
|
# @rbs return: ::Integer
|
|
1426
|
+
# @return [Integer]
|
|
1427
|
+
# @see AttributeSets::RouteAttrs::TtlPropagate
|
|
1080
1428
|
def ttl_propagate; attributes[:"ttl_propagate"]&.value; end
|
|
1081
|
-
# Gets the value of `ip-proto` attribute in the message.
|
|
1082
|
-
#--
|
|
1083
1429
|
# @rbs return: ::Integer
|
|
1430
|
+
# @return [Integer]
|
|
1431
|
+
# @see AttributeSets::RouteAttrs::IpProto
|
|
1084
1432
|
def ip_proto; attributes[:"ip_proto"]&.value; end
|
|
1085
|
-
# Gets the value of `sport` attribute in the message.
|
|
1086
|
-
#--
|
|
1087
1433
|
# @rbs return: ::Integer
|
|
1434
|
+
# @return [Integer]
|
|
1435
|
+
# @see AttributeSets::RouteAttrs::Sport
|
|
1088
1436
|
def sport; attributes[:"sport"]&.value; end
|
|
1089
|
-
# Gets the value of `dport` attribute in the message.
|
|
1090
|
-
#--
|
|
1091
1437
|
# @rbs return: ::Integer
|
|
1438
|
+
# @return [Integer]
|
|
1439
|
+
# @see AttributeSets::RouteAttrs::Dport
|
|
1092
1440
|
def dport; attributes[:"dport"]&.value; end
|
|
1093
|
-
# Gets the value of `nh-id` attribute in the message.
|
|
1094
|
-
#--
|
|
1095
1441
|
# @rbs return: ::Integer
|
|
1442
|
+
# @return [Integer]
|
|
1443
|
+
# @see AttributeSets::RouteAttrs::NhId
|
|
1096
1444
|
def nh_id; attributes[:"nh_id"]&.value; end
|
|
1097
|
-
# Gets the value of `flowlabel` attribute in the message.
|
|
1098
|
-
#--
|
|
1099
1445
|
# @rbs return: ::Integer
|
|
1446
|
+
# @return [Integer]
|
|
1447
|
+
# @see AttributeSets::RouteAttrs::Flowlabel
|
|
1100
1448
|
def flowlabel; attributes[:"flowlabel"]&.value; end
|
|
1101
1449
|
end
|
|
1102
1450
|
end
|
|
1103
1451
|
module Notifications
|
|
1104
1452
|
end
|
|
1453
|
+
# @private
|
|
1105
1454
|
NOTIFICATIONS = Ractor.make_shareable({}) #: Hash[::Integer, ::Class]
|
|
1106
1455
|
# Dump route information.
|
|
1107
|
-
#--
|
|
1108
1456
|
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?mark: ::Integer, ?uid: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?flowlabel: ::Integer) -> Messages::DoGetrouteReply
|
|
1457
|
+
# @param [Hash] args
|
|
1458
|
+
# @option args [Integer] rtm_family
|
|
1459
|
+
# @option args [Integer] rtm_dst_len
|
|
1460
|
+
# @option args [Integer] rtm_src_len
|
|
1461
|
+
# @option args [Integer] rtm_tos
|
|
1462
|
+
# @option args [Integer] rtm_table
|
|
1463
|
+
# @option args [Integer] rtm_protocol
|
|
1464
|
+
# @option args [Integer] rtm_scope
|
|
1465
|
+
# @option args [Integer] rtm_type
|
|
1466
|
+
# @option args [Integer] rtm_flags
|
|
1467
|
+
# @option args [String] dst
|
|
1468
|
+
# @option args [String] src
|
|
1469
|
+
# @option args [Integer] iif
|
|
1470
|
+
# @option args [Integer] oif
|
|
1471
|
+
# @option args [Integer] mark
|
|
1472
|
+
# @option args [Integer] uid
|
|
1473
|
+
# @option args [Integer] ip_proto
|
|
1474
|
+
# @option args [Integer] sport
|
|
1475
|
+
# @option args [Integer] dport
|
|
1476
|
+
# @option args [Integer] flowlabel
|
|
1477
|
+
# @return [Messages::DoGetrouteReply]
|
|
1478
|
+
# @see Messages::DoGetrouteRequest
|
|
1109
1479
|
def do_getroute(**args)
|
|
1110
1480
|
exchange_message(:"do", Messages::DoGetrouteRequest, Messages::DoGetrouteReply, args)
|
|
1111
1481
|
end
|
|
1112
1482
|
# Dump route information.
|
|
1113
|
-
|
|
1114
|
-
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer) -> Enumerable[Messages::DumpGetrouteReply]
|
|
1483
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer) -> Array[Messages::DumpGetrouteReply]
|
|
1115
1484
|
# | (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer) { (Messages::DumpGetrouteReply) -> void } -> void
|
|
1485
|
+
# @overload dump_getroute(**args)
|
|
1486
|
+
# Returns an array when no block is given.
|
|
1487
|
+
# @param [Hash] args
|
|
1488
|
+
# @option args [Integer] rtm_family
|
|
1489
|
+
# @option args [Integer] rtm_dst_len
|
|
1490
|
+
# @option args [Integer] rtm_src_len
|
|
1491
|
+
# @option args [Integer] rtm_tos
|
|
1492
|
+
# @option args [Integer] rtm_table
|
|
1493
|
+
# @option args [Integer] rtm_protocol
|
|
1494
|
+
# @option args [Integer] rtm_scope
|
|
1495
|
+
# @option args [Integer] rtm_type
|
|
1496
|
+
# @option args [Integer] rtm_flags
|
|
1497
|
+
# @return [Array<Messages::DumpGetrouteReply>]
|
|
1498
|
+
# @overload dump_getroute(**args, &block)
|
|
1499
|
+
# Yields each reply when a block is given.
|
|
1500
|
+
# @param [Hash] args
|
|
1501
|
+
# @option args [Integer] rtm_family
|
|
1502
|
+
# @option args [Integer] rtm_dst_len
|
|
1503
|
+
# @option args [Integer] rtm_src_len
|
|
1504
|
+
# @option args [Integer] rtm_tos
|
|
1505
|
+
# @option args [Integer] rtm_table
|
|
1506
|
+
# @option args [Integer] rtm_protocol
|
|
1507
|
+
# @option args [Integer] rtm_scope
|
|
1508
|
+
# @option args [Integer] rtm_type
|
|
1509
|
+
# @option args [Integer] rtm_flags
|
|
1510
|
+
# @yieldparam [Messages::DumpGetrouteReply] reply
|
|
1511
|
+
# @return [void]
|
|
1512
|
+
# @see Messages::DumpGetrouteRequest
|
|
1116
1513
|
def dump_getroute(**args, &block)
|
|
1117
1514
|
exchange_message(:"dump", Messages::DumpGetrouteRequest, Messages::DumpGetrouteReply, args, &block)
|
|
1118
1515
|
end
|
|
1119
1516
|
# Create a new route
|
|
1120
|
-
|
|
1121
|
-
# @
|
|
1517
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?gateway: ::String, ?priority: ::Integer, ?prefsrc: ::String, ?metrics: (AttributeSets::Metrics | ::Hash[::Symbol, untyped]), ?multipath: ::String, ?flow: ::Integer, ?cacheinfo: (Structs::RtaCacheinfo | ::Hash[::Symbol, untyped]), ?table: ::Integer, ?mark: ::Integer, ?mfc_stats: ::String, ?via: ::String, ?newdst: ::String, ?pref: ::Integer, ?encap_type: ::Integer, ?encap: ::String, ?expires: ::Integer, ?pad: ::String, ?uid: ::Integer, ?ttl_propagate: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?nh_id: ::Integer, ?flowlabel: ::Integer) -> void
|
|
1518
|
+
# @param [Hash] args
|
|
1519
|
+
# @option args [Integer] rtm_family
|
|
1520
|
+
# @option args [Integer] rtm_dst_len
|
|
1521
|
+
# @option args [Integer] rtm_src_len
|
|
1522
|
+
# @option args [Integer] rtm_tos
|
|
1523
|
+
# @option args [Integer] rtm_table
|
|
1524
|
+
# @option args [Integer] rtm_protocol
|
|
1525
|
+
# @option args [Integer] rtm_scope
|
|
1526
|
+
# @option args [Integer] rtm_type
|
|
1527
|
+
# @option args [Integer] rtm_flags
|
|
1528
|
+
# @option args [String] dst
|
|
1529
|
+
# @option args [String] src
|
|
1530
|
+
# @option args [Integer] iif
|
|
1531
|
+
# @option args [Integer] oif
|
|
1532
|
+
# @option args [String] gateway
|
|
1533
|
+
# @option args [Integer] priority
|
|
1534
|
+
# @option args [String] prefsrc
|
|
1535
|
+
# @option args [AttributeSets::Metrics, Hash<Symbol, Object>] metrics
|
|
1536
|
+
# @option args [String] multipath
|
|
1537
|
+
# @option args [Integer] flow
|
|
1538
|
+
# @option args [Structs::RtaCacheinfo, Hash<Symbol, Object>] cacheinfo
|
|
1539
|
+
# @option args [Integer] table
|
|
1540
|
+
# @option args [Integer] mark
|
|
1541
|
+
# @option args [String] mfc_stats
|
|
1542
|
+
# @option args [String] via
|
|
1543
|
+
# @option args [String] newdst
|
|
1544
|
+
# @option args [Integer] pref
|
|
1545
|
+
# @option args [Integer] encap_type
|
|
1546
|
+
# @option args [String] encap
|
|
1547
|
+
# @option args [Integer] expires
|
|
1548
|
+
# @option args [String] pad
|
|
1549
|
+
# @option args [Integer] uid
|
|
1550
|
+
# @option args [Integer] ttl_propagate
|
|
1551
|
+
# @option args [Integer] ip_proto
|
|
1552
|
+
# @option args [Integer] sport
|
|
1553
|
+
# @option args [Integer] dport
|
|
1554
|
+
# @option args [Integer] nh_id
|
|
1555
|
+
# @option args [Integer] flowlabel
|
|
1556
|
+
# @return [void]
|
|
1557
|
+
# @see Messages::DoNewrouteRequest
|
|
1122
1558
|
def do_newroute(**args)
|
|
1123
1559
|
exchange_message(:"do", Messages::DoNewrouteRequest, nil, args)
|
|
1124
1560
|
end
|
|
1125
1561
|
# Delete an existing route
|
|
1126
|
-
|
|
1127
|
-
# @
|
|
1562
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?gateway: ::String, ?priority: ::Integer, ?prefsrc: ::String, ?metrics: (AttributeSets::Metrics | ::Hash[::Symbol, untyped]), ?multipath: ::String, ?flow: ::Integer, ?cacheinfo: (Structs::RtaCacheinfo | ::Hash[::Symbol, untyped]), ?table: ::Integer, ?mark: ::Integer, ?mfc_stats: ::String, ?via: ::String, ?newdst: ::String, ?pref: ::Integer, ?encap_type: ::Integer, ?encap: ::String, ?expires: ::Integer, ?pad: ::String, ?uid: ::Integer, ?ttl_propagate: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?nh_id: ::Integer, ?flowlabel: ::Integer) -> void
|
|
1563
|
+
# @param [Hash] args
|
|
1564
|
+
# @option args [Integer] rtm_family
|
|
1565
|
+
# @option args [Integer] rtm_dst_len
|
|
1566
|
+
# @option args [Integer] rtm_src_len
|
|
1567
|
+
# @option args [Integer] rtm_tos
|
|
1568
|
+
# @option args [Integer] rtm_table
|
|
1569
|
+
# @option args [Integer] rtm_protocol
|
|
1570
|
+
# @option args [Integer] rtm_scope
|
|
1571
|
+
# @option args [Integer] rtm_type
|
|
1572
|
+
# @option args [Integer] rtm_flags
|
|
1573
|
+
# @option args [String] dst
|
|
1574
|
+
# @option args [String] src
|
|
1575
|
+
# @option args [Integer] iif
|
|
1576
|
+
# @option args [Integer] oif
|
|
1577
|
+
# @option args [String] gateway
|
|
1578
|
+
# @option args [Integer] priority
|
|
1579
|
+
# @option args [String] prefsrc
|
|
1580
|
+
# @option args [AttributeSets::Metrics, Hash<Symbol, Object>] metrics
|
|
1581
|
+
# @option args [String] multipath
|
|
1582
|
+
# @option args [Integer] flow
|
|
1583
|
+
# @option args [Structs::RtaCacheinfo, Hash<Symbol, Object>] cacheinfo
|
|
1584
|
+
# @option args [Integer] table
|
|
1585
|
+
# @option args [Integer] mark
|
|
1586
|
+
# @option args [String] mfc_stats
|
|
1587
|
+
# @option args [String] via
|
|
1588
|
+
# @option args [String] newdst
|
|
1589
|
+
# @option args [Integer] pref
|
|
1590
|
+
# @option args [Integer] encap_type
|
|
1591
|
+
# @option args [String] encap
|
|
1592
|
+
# @option args [Integer] expires
|
|
1593
|
+
# @option args [String] pad
|
|
1594
|
+
# @option args [Integer] uid
|
|
1595
|
+
# @option args [Integer] ttl_propagate
|
|
1596
|
+
# @option args [Integer] ip_proto
|
|
1597
|
+
# @option args [Integer] sport
|
|
1598
|
+
# @option args [Integer] dport
|
|
1599
|
+
# @option args [Integer] nh_id
|
|
1600
|
+
# @option args [Integer] flowlabel
|
|
1601
|
+
# @return [void]
|
|
1602
|
+
# @see Messages::DoDelrouteRequest
|
|
1128
1603
|
def do_delroute(**args)
|
|
1129
1604
|
exchange_message(:"do", Messages::DoDelrouteRequest, nil, args)
|
|
1130
1605
|
end
|
|
1131
1606
|
class AsyncOperations
|
|
1132
|
-
#
|
|
1607
|
+
# @private
|
|
1133
1608
|
def initialize(&exchange)
|
|
1134
1609
|
@exchange = exchange
|
|
1135
1610
|
end
|
|
1136
1611
|
# Dump route information.
|
|
1137
|
-
#--
|
|
1138
1612
|
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?mark: ::Integer, ?uid: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?flowlabel: ::Integer) -> ::Nl::Async::Future[Messages::DoGetrouteReply]
|
|
1613
|
+
# @param [Hash] args
|
|
1614
|
+
# @option args [Integer] rtm_family
|
|
1615
|
+
# @option args [Integer] rtm_dst_len
|
|
1616
|
+
# @option args [Integer] rtm_src_len
|
|
1617
|
+
# @option args [Integer] rtm_tos
|
|
1618
|
+
# @option args [Integer] rtm_table
|
|
1619
|
+
# @option args [Integer] rtm_protocol
|
|
1620
|
+
# @option args [Integer] rtm_scope
|
|
1621
|
+
# @option args [Integer] rtm_type
|
|
1622
|
+
# @option args [Integer] rtm_flags
|
|
1623
|
+
# @option args [String] dst
|
|
1624
|
+
# @option args [String] src
|
|
1625
|
+
# @option args [Integer] iif
|
|
1626
|
+
# @option args [Integer] oif
|
|
1627
|
+
# @option args [Integer] mark
|
|
1628
|
+
# @option args [Integer] uid
|
|
1629
|
+
# @option args [Integer] ip_proto
|
|
1630
|
+
# @option args [Integer] sport
|
|
1631
|
+
# @option args [Integer] dport
|
|
1632
|
+
# @option args [Integer] flowlabel
|
|
1633
|
+
# @return [Nl::Async::Future<Messages::DoGetrouteReply>]
|
|
1634
|
+
# @see Messages::DoGetrouteRequest
|
|
1139
1635
|
def do_getroute(**args)
|
|
1140
1636
|
@exchange.call(:"do", Messages::DoGetrouteRequest, Messages::DoGetrouteReply, args)
|
|
1141
1637
|
end
|
|
1142
1638
|
# Dump route information.
|
|
1143
|
-
#--
|
|
1144
1639
|
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetrouteReply]
|
|
1640
|
+
# @param [Hash] args
|
|
1641
|
+
# @option args [Integer] rtm_family
|
|
1642
|
+
# @option args [Integer] rtm_dst_len
|
|
1643
|
+
# @option args [Integer] rtm_src_len
|
|
1644
|
+
# @option args [Integer] rtm_tos
|
|
1645
|
+
# @option args [Integer] rtm_table
|
|
1646
|
+
# @option args [Integer] rtm_protocol
|
|
1647
|
+
# @option args [Integer] rtm_scope
|
|
1648
|
+
# @option args [Integer] rtm_type
|
|
1649
|
+
# @option args [Integer] rtm_flags
|
|
1650
|
+
# @return [Nl::Async::Stream<Messages::DumpGetrouteReply>]
|
|
1651
|
+
# @see Messages::DumpGetrouteRequest
|
|
1145
1652
|
def dump_getroute(**args)
|
|
1146
1653
|
@exchange.call(:"dump", Messages::DumpGetrouteRequest, Messages::DumpGetrouteReply, args)
|
|
1147
1654
|
end
|
|
1148
1655
|
# Create a new route
|
|
1149
|
-
|
|
1150
|
-
# @
|
|
1656
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?gateway: ::String, ?priority: ::Integer, ?prefsrc: ::String, ?metrics: (AttributeSets::Metrics | ::Hash[::Symbol, untyped]), ?multipath: ::String, ?flow: ::Integer, ?cacheinfo: (Structs::RtaCacheinfo | ::Hash[::Symbol, untyped]), ?table: ::Integer, ?mark: ::Integer, ?mfc_stats: ::String, ?via: ::String, ?newdst: ::String, ?pref: ::Integer, ?encap_type: ::Integer, ?encap: ::String, ?expires: ::Integer, ?pad: ::String, ?uid: ::Integer, ?ttl_propagate: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?nh_id: ::Integer, ?flowlabel: ::Integer) -> ::Nl::Async::Future[void]
|
|
1657
|
+
# @param [Hash] args
|
|
1658
|
+
# @option args [Integer] rtm_family
|
|
1659
|
+
# @option args [Integer] rtm_dst_len
|
|
1660
|
+
# @option args [Integer] rtm_src_len
|
|
1661
|
+
# @option args [Integer] rtm_tos
|
|
1662
|
+
# @option args [Integer] rtm_table
|
|
1663
|
+
# @option args [Integer] rtm_protocol
|
|
1664
|
+
# @option args [Integer] rtm_scope
|
|
1665
|
+
# @option args [Integer] rtm_type
|
|
1666
|
+
# @option args [Integer] rtm_flags
|
|
1667
|
+
# @option args [String] dst
|
|
1668
|
+
# @option args [String] src
|
|
1669
|
+
# @option args [Integer] iif
|
|
1670
|
+
# @option args [Integer] oif
|
|
1671
|
+
# @option args [String] gateway
|
|
1672
|
+
# @option args [Integer] priority
|
|
1673
|
+
# @option args [String] prefsrc
|
|
1674
|
+
# @option args [AttributeSets::Metrics, Hash<Symbol, Object>] metrics
|
|
1675
|
+
# @option args [String] multipath
|
|
1676
|
+
# @option args [Integer] flow
|
|
1677
|
+
# @option args [Structs::RtaCacheinfo, Hash<Symbol, Object>] cacheinfo
|
|
1678
|
+
# @option args [Integer] table
|
|
1679
|
+
# @option args [Integer] mark
|
|
1680
|
+
# @option args [String] mfc_stats
|
|
1681
|
+
# @option args [String] via
|
|
1682
|
+
# @option args [String] newdst
|
|
1683
|
+
# @option args [Integer] pref
|
|
1684
|
+
# @option args [Integer] encap_type
|
|
1685
|
+
# @option args [String] encap
|
|
1686
|
+
# @option args [Integer] expires
|
|
1687
|
+
# @option args [String] pad
|
|
1688
|
+
# @option args [Integer] uid
|
|
1689
|
+
# @option args [Integer] ttl_propagate
|
|
1690
|
+
# @option args [Integer] ip_proto
|
|
1691
|
+
# @option args [Integer] sport
|
|
1692
|
+
# @option args [Integer] dport
|
|
1693
|
+
# @option args [Integer] nh_id
|
|
1694
|
+
# @option args [Integer] flowlabel
|
|
1695
|
+
# @return [Nl::Async::Future<void>]
|
|
1696
|
+
# @see Messages::DoNewrouteRequest
|
|
1151
1697
|
def do_newroute(**args)
|
|
1152
1698
|
@exchange.call(:"do", Messages::DoNewrouteRequest, nil, args)
|
|
1153
1699
|
end
|
|
1154
1700
|
# Delete an existing route
|
|
1155
|
-
|
|
1156
|
-
# @
|
|
1701
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?gateway: ::String, ?priority: ::Integer, ?prefsrc: ::String, ?metrics: (AttributeSets::Metrics | ::Hash[::Symbol, untyped]), ?multipath: ::String, ?flow: ::Integer, ?cacheinfo: (Structs::RtaCacheinfo | ::Hash[::Symbol, untyped]), ?table: ::Integer, ?mark: ::Integer, ?mfc_stats: ::String, ?via: ::String, ?newdst: ::String, ?pref: ::Integer, ?encap_type: ::Integer, ?encap: ::String, ?expires: ::Integer, ?pad: ::String, ?uid: ::Integer, ?ttl_propagate: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?nh_id: ::Integer, ?flowlabel: ::Integer) -> ::Nl::Async::Future[void]
|
|
1702
|
+
# @param [Hash] args
|
|
1703
|
+
# @option args [Integer] rtm_family
|
|
1704
|
+
# @option args [Integer] rtm_dst_len
|
|
1705
|
+
# @option args [Integer] rtm_src_len
|
|
1706
|
+
# @option args [Integer] rtm_tos
|
|
1707
|
+
# @option args [Integer] rtm_table
|
|
1708
|
+
# @option args [Integer] rtm_protocol
|
|
1709
|
+
# @option args [Integer] rtm_scope
|
|
1710
|
+
# @option args [Integer] rtm_type
|
|
1711
|
+
# @option args [Integer] rtm_flags
|
|
1712
|
+
# @option args [String] dst
|
|
1713
|
+
# @option args [String] src
|
|
1714
|
+
# @option args [Integer] iif
|
|
1715
|
+
# @option args [Integer] oif
|
|
1716
|
+
# @option args [String] gateway
|
|
1717
|
+
# @option args [Integer] priority
|
|
1718
|
+
# @option args [String] prefsrc
|
|
1719
|
+
# @option args [AttributeSets::Metrics, Hash<Symbol, Object>] metrics
|
|
1720
|
+
# @option args [String] multipath
|
|
1721
|
+
# @option args [Integer] flow
|
|
1722
|
+
# @option args [Structs::RtaCacheinfo, Hash<Symbol, Object>] cacheinfo
|
|
1723
|
+
# @option args [Integer] table
|
|
1724
|
+
# @option args [Integer] mark
|
|
1725
|
+
# @option args [String] mfc_stats
|
|
1726
|
+
# @option args [String] via
|
|
1727
|
+
# @option args [String] newdst
|
|
1728
|
+
# @option args [Integer] pref
|
|
1729
|
+
# @option args [Integer] encap_type
|
|
1730
|
+
# @option args [String] encap
|
|
1731
|
+
# @option args [Integer] expires
|
|
1732
|
+
# @option args [String] pad
|
|
1733
|
+
# @option args [Integer] uid
|
|
1734
|
+
# @option args [Integer] ttl_propagate
|
|
1735
|
+
# @option args [Integer] ip_proto
|
|
1736
|
+
# @option args [Integer] sport
|
|
1737
|
+
# @option args [Integer] dport
|
|
1738
|
+
# @option args [Integer] nh_id
|
|
1739
|
+
# @option args [Integer] flowlabel
|
|
1740
|
+
# @return [Nl::Async::Future<void>]
|
|
1741
|
+
# @see Messages::DoDelrouteRequest
|
|
1157
1742
|
def do_delroute(**args)
|
|
1158
1743
|
@exchange.call(:"do", Messages::DoDelrouteRequest, nil, args)
|
|
1159
1744
|
end
|
|
1160
1745
|
end
|
|
1161
1746
|
# Returns the asynchronous operation facade for this family.
|
|
1162
|
-
#--
|
|
1163
1747
|
# @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
1748
|
+
# @param [::Integer, nil] stream_capacity
|
|
1749
|
+
# @return [AsyncOperations]
|
|
1164
1750
|
def async(stream_capacity: nil)
|
|
1165
1751
|
return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil?
|
|
1166
1752
|
build_async_facade(AsyncOperations, stream_capacity:)
|