nl-linux 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/NLSPEC_VERSION +1 -1
- data/generated/nl/linux/binder.rb +103 -187
- data/generated/nl/linux/conntrack.rb +1053 -1649
- data/generated/nl/linux/dev_energymodel.rb +303 -265
- data/generated/nl/linux/devlink.rb +4904 -5576
- data/generated/nl/linux/dpll.rb +1097 -1467
- data/generated/nl/linux/drm_ras.rb +235 -195
- data/generated/nl/linux/ethtool.rb +6652 -7415
- data/generated/nl/linux/fou.rb +234 -255
- data/generated/nl/linux/handshake.rb +208 -280
- data/generated/nl/linux/lockd.rb +99 -73
- data/generated/nl/linux/mptcp_pm.rb +589 -687
- data/generated/nl/linux/net_shaper.rb +520 -615
- data/generated/nl/linux/netdev.rb +1640 -1987
- data/generated/nl/linux/nfsd.rb +1341 -1215
- data/generated/nl/linux/nftables.rb +5143 -4870
- data/generated/nl/linux/nl80211.rb +2542 -6316
- data/generated/nl/linux/nlctrl.rb +338 -483
- data/generated/nl/linux/ovpn.rb +1006 -1522
- data/generated/nl/linux/ovs_datapath.rb +291 -186
- data/generated/nl/linux/ovs_flow.rb +1393 -2065
- data/generated/nl/linux/ovs_packet.rb +186 -223
- data/generated/nl/linux/ovs_vport.rb +328 -285
- data/generated/nl/linux/psp.rb +812 -717
- data/generated/nl/linux/rt_addr.rb +513 -243
- data/generated/nl/linux/rt_link.rb +4504 -7238
- data/generated/nl/linux/rt_neigh.rb +935 -847
- data/generated/nl/linux/rt_route.rb +1198 -871
- data/generated/nl/linux/rt_rule.rb +680 -659
- data/generated/nl/linux/sunrpc_cache.rb +323 -321
- data/generated/nl/linux/tc.rb +9058 -10454
- data/generated/nl/linux/tcp_metrics.rb +258 -367
- data/generated/nl/linux/team.rb +327 -345
- data/generated/nl/linux/wireguard.rb +270 -434
- data/lib/nl/linux/nlctrl_resolver.rb +1 -1
- data/lib/nl/linux/version.rb +1 -1
- data/linux/conntrack.yaml +18 -3
- data/linux/devlink.yaml +26 -4
- data/linux/dpll.yaml +19 -0
- data/linux/netdev.yaml +21 -0
- data/linux/nfsd.yaml +111 -0
- data/linux/nl80211.yaml +2 -2
- data/linux/rt-addr.yaml +4 -0
- data/linux/rt-link.yaml +7 -0
- data/linux/rt-neigh.yaml +3 -0
- data/linux/rt-route.yaml +83 -2
- data/sig/generated/nl/linux/binder.rbs +77 -220
- data/sig/generated/nl/linux/conntrack.rbs +770 -1954
- data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
- data/sig/generated/nl/linux/devlink.rbs +3318 -6068
- data/sig/generated/nl/linux/dpll.rbs +791 -1589
- data/sig/generated/nl/linux/drm_ras.rbs +160 -208
- data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
- data/sig/generated/nl/linux/fou.rbs +139 -254
- data/sig/generated/nl/linux/handshake.rbs +144 -319
- data/sig/generated/nl/linux/lockd.rbs +64 -74
- data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
- data/sig/generated/nl/linux/net_shaper.rbs +351 -644
- data/sig/generated/nl/linux/netdev.rbs +1151 -2146
- data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
- data/sig/generated/nl/linux/nftables.rbs +2907 -5030
- data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
- data/sig/generated/nl/linux/nlctrl.rbs +220 -544
- data/sig/generated/nl/linux/ovpn.rbs +835 -1859
- data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
- data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
- data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
- data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
- data/sig/generated/nl/linux/psp.rbs +550 -741
- data/sig/generated/nl/linux/rt_addr.rbs +188 -226
- data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
- data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
- data/sig/generated/nl/linux/rt_route.rbs +632 -862
- data/sig/generated/nl/linux/rt_rule.rbs +217 -639
- data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
- data/sig/generated/nl/linux/tc.rbs +6199 -13391
- data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
- data/sig/generated/nl/linux/team.rbs +232 -391
- data/sig/generated/nl/linux/wireguard.rbs +197 -502
- metadata +6 -6
|
@@ -35,246 +35,63 @@ module Nl
|
|
|
35
35
|
|
|
36
36
|
module AttributeSets
|
|
37
37
|
class TcpMetrics < ::Nl::AttributeSet
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
module Definitions
|
|
39
|
+
# @rbs return: ::Integer
|
|
40
|
+
# @return [Integer]
|
|
41
|
+
def addr_ipv4: () -> ::Integer
|
|
42
|
+
|
|
43
|
+
# @rbs return: ::String
|
|
44
|
+
# @return [String]
|
|
45
|
+
def addr_ipv6: () -> ::String
|
|
46
|
+
|
|
47
|
+
# @rbs return: ::Integer
|
|
48
|
+
# @return [Integer]
|
|
49
|
+
def age: () -> ::Integer
|
|
50
|
+
|
|
51
|
+
# unused
|
|
52
|
+
# @rbs return: ::Integer
|
|
53
|
+
# @return [Integer]
|
|
54
|
+
def tw_tsval: () -> ::Integer
|
|
55
|
+
|
|
56
|
+
# unused
|
|
57
|
+
# @rbs return: ::Integer
|
|
58
|
+
# @return [Integer]
|
|
59
|
+
def tw_ts_stamp: () -> ::Integer
|
|
60
|
+
|
|
61
|
+
# @rbs return: AttributeSets::Metrics
|
|
62
|
+
# @return [AttributeSets::Metrics]
|
|
63
|
+
def vals: () -> AttributeSets::Metrics
|
|
64
|
+
|
|
65
|
+
# @rbs return: ::Integer
|
|
66
|
+
# @return [Integer]
|
|
67
|
+
def fopen_mss: () -> ::Integer
|
|
68
|
+
|
|
69
|
+
# @rbs return: ::Integer
|
|
70
|
+
# @return [Integer]
|
|
71
|
+
def fopen_syn_drops: () -> ::Integer
|
|
72
|
+
|
|
73
|
+
# @rbs return: ::Integer
|
|
74
|
+
# @return [Integer]
|
|
75
|
+
def fopen_syn_drop_ts: () -> ::Integer
|
|
76
|
+
|
|
77
|
+
# @rbs return: ::String
|
|
78
|
+
# @return [String]
|
|
79
|
+
def fopen_cookie: () -> ::String
|
|
80
|
+
|
|
81
|
+
# @rbs return: ::Integer
|
|
82
|
+
# @return [Integer]
|
|
83
|
+
def saddr_ipv4: () -> ::Integer
|
|
84
|
+
|
|
85
|
+
# @rbs return: ::String
|
|
86
|
+
# @return [String]
|
|
87
|
+
def saddr_ipv6: () -> ::String
|
|
40
88
|
end
|
|
41
89
|
|
|
42
|
-
|
|
43
|
-
TYPE: ::Integer
|
|
90
|
+
include Definitions
|
|
44
91
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
ORDER: ::Integer
|
|
49
|
-
|
|
50
|
-
# @private
|
|
51
|
-
DATATYPE: untyped
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
class AddrIpv6 < Attribute
|
|
55
|
-
TYPE: ::Integer
|
|
56
|
-
|
|
57
|
-
NAME: ::Symbol
|
|
58
|
-
|
|
59
|
-
# @private
|
|
60
|
-
ORDER: ::Integer
|
|
61
|
-
|
|
62
|
-
# @private
|
|
63
|
-
DATATYPE: untyped
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
class Age < Attribute
|
|
67
|
-
TYPE: ::Integer
|
|
68
|
-
|
|
69
|
-
NAME: ::Symbol
|
|
70
|
-
|
|
71
|
-
# @private
|
|
72
|
-
ORDER: ::Integer
|
|
73
|
-
|
|
74
|
-
# @private
|
|
75
|
-
DATATYPE: untyped
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
# unused
|
|
79
|
-
class TwTsval < Attribute
|
|
80
|
-
TYPE: ::Integer
|
|
81
|
-
|
|
82
|
-
NAME: ::Symbol
|
|
83
|
-
|
|
84
|
-
# @private
|
|
85
|
-
ORDER: ::Integer
|
|
86
|
-
|
|
87
|
-
# @private
|
|
88
|
-
DATATYPE: untyped
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
# unused
|
|
92
|
-
class TwTsStamp < Attribute
|
|
93
|
-
TYPE: ::Integer
|
|
94
|
-
|
|
95
|
-
NAME: ::Symbol
|
|
96
|
-
|
|
97
|
-
# @private
|
|
98
|
-
ORDER: ::Integer
|
|
99
|
-
|
|
100
|
-
# @private
|
|
101
|
-
DATATYPE: untyped
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
class Vals < Attribute
|
|
105
|
-
TYPE: ::Integer
|
|
106
|
-
|
|
107
|
-
NAME: ::Symbol
|
|
108
|
-
|
|
109
|
-
# @private
|
|
110
|
-
ORDER: ::Integer
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
class FopenMss < Attribute
|
|
114
|
-
TYPE: ::Integer
|
|
115
|
-
|
|
116
|
-
NAME: ::Symbol
|
|
117
|
-
|
|
118
|
-
# @private
|
|
119
|
-
ORDER: ::Integer
|
|
120
|
-
|
|
121
|
-
# @private
|
|
122
|
-
DATATYPE: untyped
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
class FopenSynDrops < Attribute
|
|
126
|
-
TYPE: ::Integer
|
|
127
|
-
|
|
128
|
-
NAME: ::Symbol
|
|
129
|
-
|
|
130
|
-
# @private
|
|
131
|
-
ORDER: ::Integer
|
|
132
|
-
|
|
133
|
-
# @private
|
|
134
|
-
DATATYPE: untyped
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
class FopenSynDropTs < Attribute
|
|
138
|
-
TYPE: ::Integer
|
|
139
|
-
|
|
140
|
-
NAME: ::Symbol
|
|
141
|
-
|
|
142
|
-
# @private
|
|
143
|
-
ORDER: ::Integer
|
|
144
|
-
|
|
145
|
-
# @private
|
|
146
|
-
DATATYPE: untyped
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
class FopenCookie < Attribute
|
|
150
|
-
TYPE: ::Integer
|
|
151
|
-
|
|
152
|
-
NAME: ::Symbol
|
|
153
|
-
|
|
154
|
-
# @private
|
|
155
|
-
ORDER: ::Integer
|
|
156
|
-
|
|
157
|
-
# @private
|
|
158
|
-
DATATYPE: untyped
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
class SaddrIpv4 < Attribute
|
|
162
|
-
TYPE: ::Integer
|
|
163
|
-
|
|
164
|
-
NAME: ::Symbol
|
|
165
|
-
|
|
166
|
-
# @private
|
|
167
|
-
ORDER: ::Integer
|
|
168
|
-
|
|
169
|
-
# @private
|
|
170
|
-
DATATYPE: untyped
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
class SaddrIpv6 < Attribute
|
|
174
|
-
TYPE: ::Integer
|
|
175
|
-
|
|
176
|
-
NAME: ::Symbol
|
|
177
|
-
|
|
178
|
-
# @private
|
|
179
|
-
ORDER: ::Integer
|
|
180
|
-
|
|
181
|
-
# @private
|
|
182
|
-
DATATYPE: untyped
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
class Pad < Attribute
|
|
186
|
-
TYPE: ::Integer
|
|
187
|
-
|
|
188
|
-
NAME: ::Symbol
|
|
189
|
-
|
|
190
|
-
# @private
|
|
191
|
-
ORDER: ::Integer
|
|
192
|
-
|
|
193
|
-
# @private
|
|
194
|
-
DATATYPE: untyped
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
# @private
|
|
198
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
199
|
-
|
|
200
|
-
# @private
|
|
201
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
202
|
-
|
|
203
|
-
# @rbs return: ::Integer
|
|
204
|
-
# @return [Integer]
|
|
205
|
-
# @see AddrIpv4
|
|
206
|
-
def addr_ipv4: () -> ::Integer
|
|
207
|
-
|
|
208
|
-
# @rbs return: ::String
|
|
209
|
-
# @return [String]
|
|
210
|
-
# @see AddrIpv6
|
|
211
|
-
def addr_ipv6: () -> ::String
|
|
212
|
-
|
|
213
|
-
# @rbs return: ::Integer
|
|
214
|
-
# @return [Integer]
|
|
215
|
-
# @see Age
|
|
216
|
-
def age: () -> ::Integer
|
|
217
|
-
|
|
218
|
-
# unused
|
|
219
|
-
# @rbs return: ::Integer
|
|
220
|
-
# @return [Integer]
|
|
221
|
-
# @see TwTsval
|
|
222
|
-
def tw_tsval: () -> ::Integer
|
|
223
|
-
|
|
224
|
-
# unused
|
|
225
|
-
# @rbs return: ::Integer
|
|
226
|
-
# @return [Integer]
|
|
227
|
-
# @see TwTsStamp
|
|
228
|
-
def tw_ts_stamp: () -> ::Integer
|
|
229
|
-
|
|
230
|
-
# @rbs return: AttributeSets::Metrics
|
|
231
|
-
# @return [AttributeSets::Metrics]
|
|
232
|
-
# @see Vals
|
|
233
|
-
def vals: () -> AttributeSets::Metrics
|
|
234
|
-
|
|
235
|
-
# @rbs return: ::Integer
|
|
236
|
-
# @return [Integer]
|
|
237
|
-
# @see FopenMss
|
|
238
|
-
def fopen_mss: () -> ::Integer
|
|
239
|
-
|
|
240
|
-
# @rbs return: ::Integer
|
|
241
|
-
# @return [Integer]
|
|
242
|
-
# @see FopenSynDrops
|
|
243
|
-
def fopen_syn_drops: () -> ::Integer
|
|
244
|
-
|
|
245
|
-
# @rbs return: ::Integer
|
|
246
|
-
# @return [Integer]
|
|
247
|
-
# @see FopenSynDropTs
|
|
248
|
-
def fopen_syn_drop_ts: () -> ::Integer
|
|
249
|
-
|
|
250
|
-
# @rbs return: ::String
|
|
251
|
-
# @return [String]
|
|
252
|
-
# @see FopenCookie
|
|
253
|
-
def fopen_cookie: () -> ::String
|
|
254
|
-
|
|
255
|
-
# @rbs return: ::Integer
|
|
256
|
-
# @return [Integer]
|
|
257
|
-
# @see SaddrIpv4
|
|
258
|
-
def saddr_ipv4: () -> ::Integer
|
|
259
|
-
|
|
260
|
-
# @rbs return: ::String
|
|
261
|
-
# @return [String]
|
|
262
|
-
# @see SaddrIpv6
|
|
263
|
-
def saddr_ipv6: () -> ::String
|
|
264
|
-
|
|
265
|
-
# Looks up Attribute class by name.
|
|
266
|
-
# @rbs name: Symbol
|
|
267
|
-
# @rbs return: Attribute
|
|
268
|
-
# @param [Symbol] name
|
|
269
|
-
# @return [Attribute]
|
|
270
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
271
|
-
|
|
272
|
-
# Looks up Attribute class by type value.
|
|
273
|
-
# @rbs type: Integer
|
|
274
|
-
# @rbs return: Attribute
|
|
275
|
-
# @param [Integer] type
|
|
276
|
-
# @return [Attribute]
|
|
277
|
-
def self.by_type: (Integer type) -> Attribute
|
|
92
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
93
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
94
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
278
95
|
end
|
|
279
96
|
|
|
280
97
|
# Attributes with metrics. Note that the values here do not match
|
|
@@ -282,176 +99,80 @@ module Nl
|
|
|
282
99
|
# are off-by one (e.g. rtt is defined as enum 0, while netlink carries
|
|
283
100
|
# attribute type 1).
|
|
284
101
|
class Metrics < ::Nl::AttributeSet
|
|
285
|
-
|
|
286
|
-
|
|
102
|
+
module Definitions
|
|
103
|
+
# Round Trip Time (RTT), in msecs with 3 bits fractional
|
|
104
|
+
# (left-shift by 3 to get the msec value).
|
|
105
|
+
# @rbs return: ::Integer
|
|
106
|
+
# @return [Integer]
|
|
107
|
+
def rtt: () -> ::Integer
|
|
108
|
+
|
|
109
|
+
# Round Trip Time VARiance (RTT), in msecs with 2 bits fractional
|
|
110
|
+
# (left-shift by 2 to get the msec value).
|
|
111
|
+
# @rbs return: ::Integer
|
|
112
|
+
# @return [Integer]
|
|
113
|
+
def rttvar: () -> ::Integer
|
|
114
|
+
|
|
115
|
+
# Slow Start THRESHold.
|
|
116
|
+
# @rbs return: ::Integer
|
|
117
|
+
# @return [Integer]
|
|
118
|
+
def ssthresh: () -> ::Integer
|
|
119
|
+
|
|
120
|
+
# Congestion Window.
|
|
121
|
+
# @rbs return: ::Integer
|
|
122
|
+
# @return [Integer]
|
|
123
|
+
def cwnd: () -> ::Integer
|
|
124
|
+
|
|
125
|
+
# Reodering metric.
|
|
126
|
+
# @rbs return: ::Integer
|
|
127
|
+
# @return [Integer]
|
|
128
|
+
def reodering: () -> ::Integer
|
|
129
|
+
|
|
130
|
+
# Round Trip Time (RTT), in usecs, with 3 bits fractional
|
|
131
|
+
# (left-shift by 3 to get the msec value).
|
|
132
|
+
# @rbs return: ::Integer
|
|
133
|
+
# @return [Integer]
|
|
134
|
+
def rtt_us: () -> ::Integer
|
|
135
|
+
|
|
136
|
+
# Round Trip Time (RTT), in usecs, with 2 bits fractional
|
|
137
|
+
# (left-shift by 3 to get the msec value).
|
|
138
|
+
# @rbs return: ::Integer
|
|
139
|
+
# @return [Integer]
|
|
140
|
+
def rttvar_us: () -> ::Integer
|
|
287
141
|
end
|
|
288
142
|
|
|
289
|
-
|
|
290
|
-
# (left-shift by 3 to get the msec value).
|
|
291
|
-
class Rtt < Attribute
|
|
292
|
-
TYPE: ::Integer
|
|
143
|
+
include Definitions
|
|
293
144
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
# @private
|
|
300
|
-
DATATYPE: untyped
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
# Round Trip Time VARiance (RTT), in msecs with 2 bits fractional
|
|
304
|
-
# (left-shift by 2 to get the msec value).
|
|
305
|
-
class Rttvar < Attribute
|
|
306
|
-
TYPE: ::Integer
|
|
307
|
-
|
|
308
|
-
NAME: ::Symbol
|
|
309
|
-
|
|
310
|
-
# @private
|
|
311
|
-
ORDER: ::Integer
|
|
312
|
-
|
|
313
|
-
# @private
|
|
314
|
-
DATATYPE: untyped
|
|
315
|
-
end
|
|
316
|
-
|
|
317
|
-
# Slow Start THRESHold.
|
|
318
|
-
class Ssthresh < Attribute
|
|
319
|
-
TYPE: ::Integer
|
|
320
|
-
|
|
321
|
-
NAME: ::Symbol
|
|
322
|
-
|
|
323
|
-
# @private
|
|
324
|
-
ORDER: ::Integer
|
|
325
|
-
|
|
326
|
-
# @private
|
|
327
|
-
DATATYPE: untyped
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
# Congestion Window.
|
|
331
|
-
class Cwnd < Attribute
|
|
332
|
-
TYPE: ::Integer
|
|
333
|
-
|
|
334
|
-
NAME: ::Symbol
|
|
335
|
-
|
|
336
|
-
# @private
|
|
337
|
-
ORDER: ::Integer
|
|
338
|
-
|
|
339
|
-
# @private
|
|
340
|
-
DATATYPE: untyped
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
# Reodering metric.
|
|
344
|
-
class Reodering < Attribute
|
|
345
|
-
TYPE: ::Integer
|
|
346
|
-
|
|
347
|
-
NAME: ::Symbol
|
|
348
|
-
|
|
349
|
-
# @private
|
|
350
|
-
ORDER: ::Integer
|
|
351
|
-
|
|
352
|
-
# @private
|
|
353
|
-
DATATYPE: untyped
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
# Round Trip Time (RTT), in usecs, with 3 bits fractional
|
|
357
|
-
# (left-shift by 3 to get the msec value).
|
|
358
|
-
class RttUs < Attribute
|
|
359
|
-
TYPE: ::Integer
|
|
360
|
-
|
|
361
|
-
NAME: ::Symbol
|
|
145
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
146
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
147
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
148
|
+
end
|
|
149
|
+
end
|
|
362
150
|
|
|
151
|
+
module AttributeSets
|
|
152
|
+
class TcpMetrics
|
|
153
|
+
module Definitions
|
|
363
154
|
# @private
|
|
364
|
-
|
|
155
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
365
156
|
|
|
366
157
|
# @private
|
|
367
|
-
|
|
158
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
368
159
|
end
|
|
160
|
+
end
|
|
369
161
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
class RttvarUs < Attribute
|
|
373
|
-
TYPE: ::Integer
|
|
374
|
-
|
|
375
|
-
NAME: ::Symbol
|
|
376
|
-
|
|
162
|
+
class Metrics
|
|
163
|
+
module Definitions
|
|
377
164
|
# @private
|
|
378
|
-
|
|
165
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
379
166
|
|
|
380
167
|
# @private
|
|
381
|
-
|
|
168
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
382
169
|
end
|
|
383
|
-
|
|
384
|
-
# @private
|
|
385
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
386
|
-
|
|
387
|
-
# @private
|
|
388
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
389
|
-
|
|
390
|
-
# Round Trip Time (RTT), in msecs with 3 bits fractional
|
|
391
|
-
# (left-shift by 3 to get the msec value).
|
|
392
|
-
# @rbs return: ::Integer
|
|
393
|
-
# @return [Integer]
|
|
394
|
-
# @see Rtt
|
|
395
|
-
def rtt: () -> ::Integer
|
|
396
|
-
|
|
397
|
-
# Round Trip Time VARiance (RTT), in msecs with 2 bits fractional
|
|
398
|
-
# (left-shift by 2 to get the msec value).
|
|
399
|
-
# @rbs return: ::Integer
|
|
400
|
-
# @return [Integer]
|
|
401
|
-
# @see Rttvar
|
|
402
|
-
def rttvar: () -> ::Integer
|
|
403
|
-
|
|
404
|
-
# Slow Start THRESHold.
|
|
405
|
-
# @rbs return: ::Integer
|
|
406
|
-
# @return [Integer]
|
|
407
|
-
# @see Ssthresh
|
|
408
|
-
def ssthresh: () -> ::Integer
|
|
409
|
-
|
|
410
|
-
# Congestion Window.
|
|
411
|
-
# @rbs return: ::Integer
|
|
412
|
-
# @return [Integer]
|
|
413
|
-
# @see Cwnd
|
|
414
|
-
def cwnd: () -> ::Integer
|
|
415
|
-
|
|
416
|
-
# Reodering metric.
|
|
417
|
-
# @rbs return: ::Integer
|
|
418
|
-
# @return [Integer]
|
|
419
|
-
# @see Reodering
|
|
420
|
-
def reodering: () -> ::Integer
|
|
421
|
-
|
|
422
|
-
# Round Trip Time (RTT), in usecs, with 3 bits fractional
|
|
423
|
-
# (left-shift by 3 to get the msec value).
|
|
424
|
-
# @rbs return: ::Integer
|
|
425
|
-
# @return [Integer]
|
|
426
|
-
# @see RttUs
|
|
427
|
-
def rtt_us: () -> ::Integer
|
|
428
|
-
|
|
429
|
-
# Round Trip Time (RTT), in usecs, with 2 bits fractional
|
|
430
|
-
# (left-shift by 3 to get the msec value).
|
|
431
|
-
# @rbs return: ::Integer
|
|
432
|
-
# @return [Integer]
|
|
433
|
-
# @see RttvarUs
|
|
434
|
-
def rttvar_us: () -> ::Integer
|
|
435
|
-
|
|
436
|
-
# Looks up Attribute class by name.
|
|
437
|
-
# @rbs name: Symbol
|
|
438
|
-
# @rbs return: Attribute
|
|
439
|
-
# @param [Symbol] name
|
|
440
|
-
# @return [Attribute]
|
|
441
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
442
|
-
|
|
443
|
-
# Looks up Attribute class by type value.
|
|
444
|
-
# @rbs type: Integer
|
|
445
|
-
# @rbs return: Attribute
|
|
446
|
-
# @param [Integer] type
|
|
447
|
-
# @return [Attribute]
|
|
448
|
-
def self.by_type: (Integer type) -> Attribute
|
|
449
170
|
end
|
|
450
171
|
end
|
|
451
172
|
|
|
452
173
|
module Messages
|
|
453
174
|
# Retrieve metrics.
|
|
454
|
-
class DoGetRequest < ::Nl::
|
|
175
|
+
class DoGetRequest < ::Nl::Message
|
|
455
176
|
TYPE: ::Integer
|
|
456
177
|
|
|
457
178
|
FIXED_HEADER: untyped
|
|
@@ -460,29 +181,38 @@ module Nl
|
|
|
460
181
|
|
|
461
182
|
ATTRIBUTES: untyped
|
|
462
183
|
|
|
184
|
+
include ATTRIBUTE_SET::Definitions
|
|
185
|
+
|
|
186
|
+
def initialize: (?untyped attributes) -> untyped
|
|
187
|
+
|
|
188
|
+
# @private
|
|
189
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
190
|
+
|
|
191
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
192
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
193
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
194
|
+
|
|
195
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
196
|
+
|
|
463
197
|
# @rbs return: ::Integer
|
|
464
198
|
# @return [Integer]
|
|
465
|
-
# @see AttributeSets::TcpMetrics::AddrIpv4
|
|
466
199
|
def addr_ipv4: () -> ::Integer
|
|
467
200
|
|
|
468
201
|
# @rbs return: ::String
|
|
469
202
|
# @return [String]
|
|
470
|
-
# @see AttributeSets::TcpMetrics::AddrIpv6
|
|
471
203
|
def addr_ipv6: () -> ::String
|
|
472
204
|
|
|
473
205
|
# @rbs return: ::Integer
|
|
474
206
|
# @return [Integer]
|
|
475
|
-
# @see AttributeSets::TcpMetrics::SaddrIpv4
|
|
476
207
|
def saddr_ipv4: () -> ::Integer
|
|
477
208
|
|
|
478
209
|
# @rbs return: ::String
|
|
479
210
|
# @return [String]
|
|
480
|
-
# @see AttributeSets::TcpMetrics::SaddrIpv6
|
|
481
211
|
def saddr_ipv6: () -> ::String
|
|
482
212
|
end
|
|
483
213
|
|
|
484
214
|
# Retrieve metrics.
|
|
485
|
-
class DoGetReply < ::Nl::
|
|
215
|
+
class DoGetReply < ::Nl::Message
|
|
486
216
|
TYPE: ::Integer
|
|
487
217
|
|
|
488
218
|
FIXED_HEADER: untyped
|
|
@@ -491,59 +221,62 @@ module Nl
|
|
|
491
221
|
|
|
492
222
|
ATTRIBUTES: untyped
|
|
493
223
|
|
|
224
|
+
include ATTRIBUTE_SET::Definitions
|
|
225
|
+
|
|
226
|
+
def initialize: (?untyped attributes) -> untyped
|
|
227
|
+
|
|
228
|
+
# @private
|
|
229
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
230
|
+
|
|
231
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
232
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
233
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
234
|
+
|
|
235
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
236
|
+
|
|
494
237
|
# @rbs return: ::Integer
|
|
495
238
|
# @return [Integer]
|
|
496
|
-
# @see AttributeSets::TcpMetrics::AddrIpv4
|
|
497
239
|
def addr_ipv4: () -> ::Integer
|
|
498
240
|
|
|
499
241
|
# @rbs return: ::String
|
|
500
242
|
# @return [String]
|
|
501
|
-
# @see AttributeSets::TcpMetrics::AddrIpv6
|
|
502
243
|
def addr_ipv6: () -> ::String
|
|
503
244
|
|
|
504
245
|
# @rbs return: ::Integer
|
|
505
246
|
# @return [Integer]
|
|
506
|
-
# @see AttributeSets::TcpMetrics::Age
|
|
507
247
|
def age: () -> ::Integer
|
|
508
248
|
|
|
509
249
|
# @rbs return: AttributeSets::Metrics
|
|
510
250
|
# @return [AttributeSets::Metrics]
|
|
511
|
-
# @see AttributeSets::TcpMetrics::Vals
|
|
512
251
|
def vals: () -> AttributeSets::Metrics
|
|
513
252
|
|
|
514
253
|
# @rbs return: ::Integer
|
|
515
254
|
# @return [Integer]
|
|
516
|
-
# @see AttributeSets::TcpMetrics::FopenMss
|
|
517
255
|
def fopen_mss: () -> ::Integer
|
|
518
256
|
|
|
519
257
|
# @rbs return: ::Integer
|
|
520
258
|
# @return [Integer]
|
|
521
|
-
# @see AttributeSets::TcpMetrics::FopenSynDrops
|
|
522
259
|
def fopen_syn_drops: () -> ::Integer
|
|
523
260
|
|
|
524
261
|
# @rbs return: ::Integer
|
|
525
262
|
# @return [Integer]
|
|
526
|
-
# @see AttributeSets::TcpMetrics::FopenSynDropTs
|
|
527
263
|
def fopen_syn_drop_ts: () -> ::Integer
|
|
528
264
|
|
|
529
265
|
# @rbs return: ::String
|
|
530
266
|
# @return [String]
|
|
531
|
-
# @see AttributeSets::TcpMetrics::FopenCookie
|
|
532
267
|
def fopen_cookie: () -> ::String
|
|
533
268
|
|
|
534
269
|
# @rbs return: ::Integer
|
|
535
270
|
# @return [Integer]
|
|
536
|
-
# @see AttributeSets::TcpMetrics::SaddrIpv4
|
|
537
271
|
def saddr_ipv4: () -> ::Integer
|
|
538
272
|
|
|
539
273
|
# @rbs return: ::String
|
|
540
274
|
# @return [String]
|
|
541
|
-
# @see AttributeSets::TcpMetrics::SaddrIpv6
|
|
542
275
|
def saddr_ipv6: () -> ::String
|
|
543
276
|
end
|
|
544
277
|
|
|
545
278
|
# Retrieve metrics.
|
|
546
|
-
class DumpGetRequest < ::Nl::
|
|
279
|
+
class DumpGetRequest < ::Nl::Message
|
|
547
280
|
TYPE: ::Integer
|
|
548
281
|
|
|
549
282
|
FIXED_HEADER: untyped
|
|
@@ -551,10 +284,23 @@ module Nl
|
|
|
551
284
|
ATTRIBUTE_SET: untyped
|
|
552
285
|
|
|
553
286
|
ATTRIBUTES: untyped
|
|
287
|
+
|
|
288
|
+
include ATTRIBUTE_SET::Definitions
|
|
289
|
+
|
|
290
|
+
def initialize: (?untyped attributes) -> untyped
|
|
291
|
+
|
|
292
|
+
# @private
|
|
293
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
294
|
+
|
|
295
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
296
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
297
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
298
|
+
|
|
299
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
554
300
|
end
|
|
555
301
|
|
|
556
302
|
# Retrieve metrics.
|
|
557
|
-
class DumpGetReply < ::Nl::
|
|
303
|
+
class DumpGetReply < ::Nl::Message
|
|
558
304
|
TYPE: ::Integer
|
|
559
305
|
|
|
560
306
|
FIXED_HEADER: untyped
|
|
@@ -563,61 +309,64 @@ module Nl
|
|
|
563
309
|
|
|
564
310
|
ATTRIBUTES: untyped
|
|
565
311
|
|
|
312
|
+
include ATTRIBUTE_SET::Definitions
|
|
313
|
+
|
|
314
|
+
def initialize: (?untyped attributes) -> untyped
|
|
315
|
+
|
|
316
|
+
# @private
|
|
317
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
318
|
+
|
|
319
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
320
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
321
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
322
|
+
|
|
323
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
324
|
+
|
|
566
325
|
# @rbs return: ::Integer
|
|
567
326
|
# @return [Integer]
|
|
568
|
-
# @see AttributeSets::TcpMetrics::AddrIpv4
|
|
569
327
|
def addr_ipv4: () -> ::Integer
|
|
570
328
|
|
|
571
329
|
# @rbs return: ::String
|
|
572
330
|
# @return [String]
|
|
573
|
-
# @see AttributeSets::TcpMetrics::AddrIpv6
|
|
574
331
|
def addr_ipv6: () -> ::String
|
|
575
332
|
|
|
576
333
|
# @rbs return: ::Integer
|
|
577
334
|
# @return [Integer]
|
|
578
|
-
# @see AttributeSets::TcpMetrics::Age
|
|
579
335
|
def age: () -> ::Integer
|
|
580
336
|
|
|
581
337
|
# @rbs return: AttributeSets::Metrics
|
|
582
338
|
# @return [AttributeSets::Metrics]
|
|
583
|
-
# @see AttributeSets::TcpMetrics::Vals
|
|
584
339
|
def vals: () -> AttributeSets::Metrics
|
|
585
340
|
|
|
586
341
|
# @rbs return: ::Integer
|
|
587
342
|
# @return [Integer]
|
|
588
|
-
# @see AttributeSets::TcpMetrics::FopenMss
|
|
589
343
|
def fopen_mss: () -> ::Integer
|
|
590
344
|
|
|
591
345
|
# @rbs return: ::Integer
|
|
592
346
|
# @return [Integer]
|
|
593
|
-
# @see AttributeSets::TcpMetrics::FopenSynDrops
|
|
594
347
|
def fopen_syn_drops: () -> ::Integer
|
|
595
348
|
|
|
596
349
|
# @rbs return: ::Integer
|
|
597
350
|
# @return [Integer]
|
|
598
|
-
# @see AttributeSets::TcpMetrics::FopenSynDropTs
|
|
599
351
|
def fopen_syn_drop_ts: () -> ::Integer
|
|
600
352
|
|
|
601
353
|
# @rbs return: ::String
|
|
602
354
|
# @return [String]
|
|
603
|
-
# @see AttributeSets::TcpMetrics::FopenCookie
|
|
604
355
|
def fopen_cookie: () -> ::String
|
|
605
356
|
|
|
606
357
|
# @rbs return: ::Integer
|
|
607
358
|
# @return [Integer]
|
|
608
|
-
# @see AttributeSets::TcpMetrics::SaddrIpv4
|
|
609
359
|
def saddr_ipv4: () -> ::Integer
|
|
610
360
|
|
|
611
361
|
# @rbs return: ::String
|
|
612
362
|
# @return [String]
|
|
613
|
-
# @see AttributeSets::TcpMetrics::SaddrIpv6
|
|
614
363
|
def saddr_ipv6: () -> ::String
|
|
615
364
|
end
|
|
616
365
|
|
|
617
366
|
# Delete metrics.
|
|
618
367
|
#
|
|
619
368
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
620
|
-
class DoDelRequest < ::Nl::
|
|
369
|
+
class DoDelRequest < ::Nl::Message
|
|
621
370
|
TYPE: ::Integer
|
|
622
371
|
|
|
623
372
|
FIXED_HEADER: untyped
|
|
@@ -626,24 +375,33 @@ module Nl
|
|
|
626
375
|
|
|
627
376
|
ATTRIBUTES: untyped
|
|
628
377
|
|
|
378
|
+
include ATTRIBUTE_SET::Definitions
|
|
379
|
+
|
|
380
|
+
def initialize: (?untyped attributes) -> untyped
|
|
381
|
+
|
|
382
|
+
# @private
|
|
383
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
384
|
+
|
|
385
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
386
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
387
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
388
|
+
|
|
389
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
390
|
+
|
|
629
391
|
# @rbs return: ::Integer
|
|
630
392
|
# @return [Integer]
|
|
631
|
-
# @see AttributeSets::TcpMetrics::AddrIpv4
|
|
632
393
|
def addr_ipv4: () -> ::Integer
|
|
633
394
|
|
|
634
395
|
# @rbs return: ::String
|
|
635
396
|
# @return [String]
|
|
636
|
-
# @see AttributeSets::TcpMetrics::AddrIpv6
|
|
637
397
|
def addr_ipv6: () -> ::String
|
|
638
398
|
|
|
639
399
|
# @rbs return: ::Integer
|
|
640
400
|
# @return [Integer]
|
|
641
|
-
# @see AttributeSets::TcpMetrics::SaddrIpv4
|
|
642
401
|
def saddr_ipv4: () -> ::Integer
|
|
643
402
|
|
|
644
403
|
# @rbs return: ::String
|
|
645
404
|
# @return [String]
|
|
646
|
-
# @see AttributeSets::TcpMetrics::SaddrIpv6
|
|
647
405
|
def saddr_ipv6: () -> ::String
|
|
648
406
|
end
|
|
649
407
|
end
|