nl-linux 0.2.4 → 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/.rspec +3 -0
- data/.yardopts +5 -0
- data/CHANGELOG.md +8 -0
- data/Rakefile +27 -5
- data/generated/nl/linux/binder.rb +227 -19
- data/generated/nl/linux/conntrack.rb +1325 -365
- data/generated/nl/linux/dev_energymodel.rb +357 -66
- data/generated/nl/linux/devlink.rb +6310 -1859
- data/generated/nl/linux/dpll.rb +2202 -376
- data/generated/nl/linux/drm_ras.rb +312 -63
- data/generated/nl/linux/ethtool.rb +7555 -2447
- data/generated/nl/linux/fou.rb +381 -133
- data/generated/nl/linux/handshake.rb +340 -70
- data/generated/nl/linux/lockd.rb +132 -27
- data/generated/nl/linux/mptcp_pm.rb +773 -161
- data/generated/nl/linux/net_shaper.rb +892 -211
- data/generated/nl/linux/netdev.rb +2366 -518
- data/generated/nl/linux/nfsd.rb +1299 -317
- data/generated/nl/linux/nftables.rb +5351 -1533
- data/generated/nl/linux/nl80211.rb +4601 -882
- data/generated/nl/linux/nlctrl.rb +460 -117
- data/generated/nl/linux/ovpn.rb +1360 -262
- data/generated/nl/linux/ovs_datapath.rb +312 -98
- data/generated/nl/linux/ovs_flow.rb +1866 -358
- data/generated/nl/linux/ovs_packet.rb +331 -45
- data/generated/nl/linux/ovs_vport.rb +374 -123
- data/generated/nl/linux/psp.rb +1093 -201
- data/generated/nl/linux/rt_addr.rb +423 -165
- data/generated/nl/linux/rt_link.rb +6928 -1336
- data/generated/nl/linux/rt_neigh.rb +1063 -297
- data/generated/nl/linux/rt_route.rb +1112 -483
- data/generated/nl/linux/rt_rule.rb +931 -262
- data/generated/nl/linux/sunrpc_cache.rb +407 -82
- data/generated/nl/linux/tc.rb +10081 -1763
- data/generated/nl/linux/tcp_metrics.rb +388 -109
- data/generated/nl/linux/team.rb +350 -84
- data/generated/nl/linux/wireguard.rb +525 -96
- 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 +51 -10
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
# Generated from generated/nl/linux/tcp_metrics.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module Nl
|
|
4
|
+
module Linux
|
|
5
|
+
# Management interface for TCP metrics.
|
|
6
|
+
class TcpMetrics < ::Nl::Genl::Family
|
|
7
|
+
NAME: ::String
|
|
8
|
+
|
|
9
|
+
VERSION: ::Integer
|
|
10
|
+
|
|
11
|
+
# @rbs (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
|
|
12
|
+
# @rbs | [R] (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) { (instance) -> R } -> R
|
|
13
|
+
# @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
|
|
14
|
+
# @param [#call] resolver
|
|
15
|
+
# @param [Symbol, nil] executor
|
|
16
|
+
# @param [Integer, nil] notification_capacity
|
|
17
|
+
# @return [TcpMetrics]
|
|
18
|
+
# @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY, &block)
|
|
19
|
+
# @param [#call] resolver
|
|
20
|
+
# @param [Symbol, nil] executor
|
|
21
|
+
# @param [Integer, nil] notification_capacity
|
|
22
|
+
# @yieldparam [TcpMetrics] family
|
|
23
|
+
# @return [Object] the result of the block
|
|
24
|
+
def self.open: (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
|
|
25
|
+
|
|
26
|
+
# @private
|
|
27
|
+
MCAST_GROUPS: Hash[::Symbol, ::Nl::McastGroup]
|
|
28
|
+
|
|
29
|
+
module Constants
|
|
30
|
+
TCP_FASTOPEN_COOKIE_MAX: ::Integer
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
module Structs
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
module AttributeSets
|
|
37
|
+
class TcpMetrics < ::Nl::AttributeSet
|
|
38
|
+
# Abstract class
|
|
39
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class AddrIpv4 < Attribute
|
|
43
|
+
TYPE: ::Integer
|
|
44
|
+
|
|
45
|
+
NAME: ::Symbol
|
|
46
|
+
|
|
47
|
+
# @private
|
|
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
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Attributes with metrics. Note that the values here do not match
|
|
281
|
+
# the TCP_METRIC_* defines in the kernel, because kernel defines
|
|
282
|
+
# are off-by one (e.g. rtt is defined as enum 0, while netlink carries
|
|
283
|
+
# attribute type 1).
|
|
284
|
+
class Metrics < ::Nl::AttributeSet
|
|
285
|
+
# Abstract class
|
|
286
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Round Trip Time (RTT), in msecs with 3 bits fractional
|
|
290
|
+
# (left-shift by 3 to get the msec value).
|
|
291
|
+
class Rtt < Attribute
|
|
292
|
+
TYPE: ::Integer
|
|
293
|
+
|
|
294
|
+
NAME: ::Symbol
|
|
295
|
+
|
|
296
|
+
# @private
|
|
297
|
+
ORDER: ::Integer
|
|
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
|
|
362
|
+
|
|
363
|
+
# @private
|
|
364
|
+
ORDER: ::Integer
|
|
365
|
+
|
|
366
|
+
# @private
|
|
367
|
+
DATATYPE: untyped
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# Round Trip Time (RTT), in usecs, with 2 bits fractional
|
|
371
|
+
# (left-shift by 3 to get the msec value).
|
|
372
|
+
class RttvarUs < Attribute
|
|
373
|
+
TYPE: ::Integer
|
|
374
|
+
|
|
375
|
+
NAME: ::Symbol
|
|
376
|
+
|
|
377
|
+
# @private
|
|
378
|
+
ORDER: ::Integer
|
|
379
|
+
|
|
380
|
+
# @private
|
|
381
|
+
DATATYPE: untyped
|
|
382
|
+
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
|
+
end
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
module Messages
|
|
453
|
+
# Retrieve metrics.
|
|
454
|
+
class DoGetRequest < ::Nl::Genl::Message
|
|
455
|
+
TYPE: ::Integer
|
|
456
|
+
|
|
457
|
+
FIXED_HEADER: untyped
|
|
458
|
+
|
|
459
|
+
ATTRIBUTE_SET: untyped
|
|
460
|
+
|
|
461
|
+
ATTRIBUTES: untyped
|
|
462
|
+
|
|
463
|
+
# @rbs return: ::Integer
|
|
464
|
+
# @return [Integer]
|
|
465
|
+
# @see AttributeSets::TcpMetrics::AddrIpv4
|
|
466
|
+
def addr_ipv4: () -> ::Integer
|
|
467
|
+
|
|
468
|
+
# @rbs return: ::String
|
|
469
|
+
# @return [String]
|
|
470
|
+
# @see AttributeSets::TcpMetrics::AddrIpv6
|
|
471
|
+
def addr_ipv6: () -> ::String
|
|
472
|
+
|
|
473
|
+
# @rbs return: ::Integer
|
|
474
|
+
# @return [Integer]
|
|
475
|
+
# @see AttributeSets::TcpMetrics::SaddrIpv4
|
|
476
|
+
def saddr_ipv4: () -> ::Integer
|
|
477
|
+
|
|
478
|
+
# @rbs return: ::String
|
|
479
|
+
# @return [String]
|
|
480
|
+
# @see AttributeSets::TcpMetrics::SaddrIpv6
|
|
481
|
+
def saddr_ipv6: () -> ::String
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
# Retrieve metrics.
|
|
485
|
+
class DoGetReply < ::Nl::Genl::Message
|
|
486
|
+
TYPE: ::Integer
|
|
487
|
+
|
|
488
|
+
FIXED_HEADER: untyped
|
|
489
|
+
|
|
490
|
+
ATTRIBUTE_SET: untyped
|
|
491
|
+
|
|
492
|
+
ATTRIBUTES: untyped
|
|
493
|
+
|
|
494
|
+
# @rbs return: ::Integer
|
|
495
|
+
# @return [Integer]
|
|
496
|
+
# @see AttributeSets::TcpMetrics::AddrIpv4
|
|
497
|
+
def addr_ipv4: () -> ::Integer
|
|
498
|
+
|
|
499
|
+
# @rbs return: ::String
|
|
500
|
+
# @return [String]
|
|
501
|
+
# @see AttributeSets::TcpMetrics::AddrIpv6
|
|
502
|
+
def addr_ipv6: () -> ::String
|
|
503
|
+
|
|
504
|
+
# @rbs return: ::Integer
|
|
505
|
+
# @return [Integer]
|
|
506
|
+
# @see AttributeSets::TcpMetrics::Age
|
|
507
|
+
def age: () -> ::Integer
|
|
508
|
+
|
|
509
|
+
# @rbs return: AttributeSets::Metrics
|
|
510
|
+
# @return [AttributeSets::Metrics]
|
|
511
|
+
# @see AttributeSets::TcpMetrics::Vals
|
|
512
|
+
def vals: () -> AttributeSets::Metrics
|
|
513
|
+
|
|
514
|
+
# @rbs return: ::Integer
|
|
515
|
+
# @return [Integer]
|
|
516
|
+
# @see AttributeSets::TcpMetrics::FopenMss
|
|
517
|
+
def fopen_mss: () -> ::Integer
|
|
518
|
+
|
|
519
|
+
# @rbs return: ::Integer
|
|
520
|
+
# @return [Integer]
|
|
521
|
+
# @see AttributeSets::TcpMetrics::FopenSynDrops
|
|
522
|
+
def fopen_syn_drops: () -> ::Integer
|
|
523
|
+
|
|
524
|
+
# @rbs return: ::Integer
|
|
525
|
+
# @return [Integer]
|
|
526
|
+
# @see AttributeSets::TcpMetrics::FopenSynDropTs
|
|
527
|
+
def fopen_syn_drop_ts: () -> ::Integer
|
|
528
|
+
|
|
529
|
+
# @rbs return: ::String
|
|
530
|
+
# @return [String]
|
|
531
|
+
# @see AttributeSets::TcpMetrics::FopenCookie
|
|
532
|
+
def fopen_cookie: () -> ::String
|
|
533
|
+
|
|
534
|
+
# @rbs return: ::Integer
|
|
535
|
+
# @return [Integer]
|
|
536
|
+
# @see AttributeSets::TcpMetrics::SaddrIpv4
|
|
537
|
+
def saddr_ipv4: () -> ::Integer
|
|
538
|
+
|
|
539
|
+
# @rbs return: ::String
|
|
540
|
+
# @return [String]
|
|
541
|
+
# @see AttributeSets::TcpMetrics::SaddrIpv6
|
|
542
|
+
def saddr_ipv6: () -> ::String
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
# Retrieve metrics.
|
|
546
|
+
class DumpGetRequest < ::Nl::Genl::Message
|
|
547
|
+
TYPE: ::Integer
|
|
548
|
+
|
|
549
|
+
FIXED_HEADER: untyped
|
|
550
|
+
|
|
551
|
+
ATTRIBUTE_SET: untyped
|
|
552
|
+
|
|
553
|
+
ATTRIBUTES: untyped
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
# Retrieve metrics.
|
|
557
|
+
class DumpGetReply < ::Nl::Genl::Message
|
|
558
|
+
TYPE: ::Integer
|
|
559
|
+
|
|
560
|
+
FIXED_HEADER: untyped
|
|
561
|
+
|
|
562
|
+
ATTRIBUTE_SET: untyped
|
|
563
|
+
|
|
564
|
+
ATTRIBUTES: untyped
|
|
565
|
+
|
|
566
|
+
# @rbs return: ::Integer
|
|
567
|
+
# @return [Integer]
|
|
568
|
+
# @see AttributeSets::TcpMetrics::AddrIpv4
|
|
569
|
+
def addr_ipv4: () -> ::Integer
|
|
570
|
+
|
|
571
|
+
# @rbs return: ::String
|
|
572
|
+
# @return [String]
|
|
573
|
+
# @see AttributeSets::TcpMetrics::AddrIpv6
|
|
574
|
+
def addr_ipv6: () -> ::String
|
|
575
|
+
|
|
576
|
+
# @rbs return: ::Integer
|
|
577
|
+
# @return [Integer]
|
|
578
|
+
# @see AttributeSets::TcpMetrics::Age
|
|
579
|
+
def age: () -> ::Integer
|
|
580
|
+
|
|
581
|
+
# @rbs return: AttributeSets::Metrics
|
|
582
|
+
# @return [AttributeSets::Metrics]
|
|
583
|
+
# @see AttributeSets::TcpMetrics::Vals
|
|
584
|
+
def vals: () -> AttributeSets::Metrics
|
|
585
|
+
|
|
586
|
+
# @rbs return: ::Integer
|
|
587
|
+
# @return [Integer]
|
|
588
|
+
# @see AttributeSets::TcpMetrics::FopenMss
|
|
589
|
+
def fopen_mss: () -> ::Integer
|
|
590
|
+
|
|
591
|
+
# @rbs return: ::Integer
|
|
592
|
+
# @return [Integer]
|
|
593
|
+
# @see AttributeSets::TcpMetrics::FopenSynDrops
|
|
594
|
+
def fopen_syn_drops: () -> ::Integer
|
|
595
|
+
|
|
596
|
+
# @rbs return: ::Integer
|
|
597
|
+
# @return [Integer]
|
|
598
|
+
# @see AttributeSets::TcpMetrics::FopenSynDropTs
|
|
599
|
+
def fopen_syn_drop_ts: () -> ::Integer
|
|
600
|
+
|
|
601
|
+
# @rbs return: ::String
|
|
602
|
+
# @return [String]
|
|
603
|
+
# @see AttributeSets::TcpMetrics::FopenCookie
|
|
604
|
+
def fopen_cookie: () -> ::String
|
|
605
|
+
|
|
606
|
+
# @rbs return: ::Integer
|
|
607
|
+
# @return [Integer]
|
|
608
|
+
# @see AttributeSets::TcpMetrics::SaddrIpv4
|
|
609
|
+
def saddr_ipv4: () -> ::Integer
|
|
610
|
+
|
|
611
|
+
# @rbs return: ::String
|
|
612
|
+
# @return [String]
|
|
613
|
+
# @see AttributeSets::TcpMetrics::SaddrIpv6
|
|
614
|
+
def saddr_ipv6: () -> ::String
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
# Delete metrics.
|
|
618
|
+
#
|
|
619
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
620
|
+
class DoDelRequest < ::Nl::Genl::Message
|
|
621
|
+
TYPE: ::Integer
|
|
622
|
+
|
|
623
|
+
FIXED_HEADER: untyped
|
|
624
|
+
|
|
625
|
+
ATTRIBUTE_SET: untyped
|
|
626
|
+
|
|
627
|
+
ATTRIBUTES: untyped
|
|
628
|
+
|
|
629
|
+
# @rbs return: ::Integer
|
|
630
|
+
# @return [Integer]
|
|
631
|
+
# @see AttributeSets::TcpMetrics::AddrIpv4
|
|
632
|
+
def addr_ipv4: () -> ::Integer
|
|
633
|
+
|
|
634
|
+
# @rbs return: ::String
|
|
635
|
+
# @return [String]
|
|
636
|
+
# @see AttributeSets::TcpMetrics::AddrIpv6
|
|
637
|
+
def addr_ipv6: () -> ::String
|
|
638
|
+
|
|
639
|
+
# @rbs return: ::Integer
|
|
640
|
+
# @return [Integer]
|
|
641
|
+
# @see AttributeSets::TcpMetrics::SaddrIpv4
|
|
642
|
+
def saddr_ipv4: () -> ::Integer
|
|
643
|
+
|
|
644
|
+
# @rbs return: ::String
|
|
645
|
+
# @return [String]
|
|
646
|
+
# @see AttributeSets::TcpMetrics::SaddrIpv6
|
|
647
|
+
def saddr_ipv6: () -> ::String
|
|
648
|
+
end
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
module Notifications
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# @private
|
|
655
|
+
NOTIFICATIONS: Hash[::Integer, ::Class]
|
|
656
|
+
|
|
657
|
+
# Retrieve metrics.
|
|
658
|
+
# @rbs (?addr_ipv4: ::Integer, ?addr_ipv6: ::String, ?saddr_ipv4: ::Integer, ?saddr_ipv6: ::String) -> Messages::DoGetReply
|
|
659
|
+
# @param [Hash] args
|
|
660
|
+
# @option args [Integer] addr_ipv4
|
|
661
|
+
# @option args [String] addr_ipv6
|
|
662
|
+
# @option args [Integer] saddr_ipv4
|
|
663
|
+
# @option args [String] saddr_ipv6
|
|
664
|
+
# @return [Messages::DoGetReply]
|
|
665
|
+
# @see Messages::DoGetRequest
|
|
666
|
+
def do_get: (?addr_ipv4: ::Integer, ?addr_ipv6: ::String, ?saddr_ipv4: ::Integer, ?saddr_ipv6: ::String) -> Messages::DoGetReply
|
|
667
|
+
|
|
668
|
+
# Retrieve metrics.
|
|
669
|
+
# @rbs () -> Array[Messages::DumpGetReply]
|
|
670
|
+
# | () { (Messages::DumpGetReply) -> void } -> void
|
|
671
|
+
# @overload dump_get(**args)
|
|
672
|
+
# Returns an array when no block is given.
|
|
673
|
+
# @param [Hash] args
|
|
674
|
+
# @return [Array<Messages::DumpGetReply>]
|
|
675
|
+
# @overload dump_get(**args, &block)
|
|
676
|
+
# Yields each reply when a block is given.
|
|
677
|
+
# @param [Hash] args
|
|
678
|
+
# @yieldparam [Messages::DumpGetReply] reply
|
|
679
|
+
# @return [void]
|
|
680
|
+
# @see Messages::DumpGetRequest
|
|
681
|
+
def dump_get: () -> Array[Messages::DumpGetReply]
|
|
682
|
+
| () { (Messages::DumpGetReply) -> void } -> void
|
|
683
|
+
|
|
684
|
+
# Delete metrics.
|
|
685
|
+
#
|
|
686
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
687
|
+
# @rbs (?addr_ipv4: ::Integer, ?addr_ipv6: ::String, ?saddr_ipv4: ::Integer, ?saddr_ipv6: ::String) -> void
|
|
688
|
+
# @param [Hash] args
|
|
689
|
+
# @option args [Integer] addr_ipv4
|
|
690
|
+
# @option args [String] addr_ipv6
|
|
691
|
+
# @option args [Integer] saddr_ipv4
|
|
692
|
+
# @option args [String] saddr_ipv6
|
|
693
|
+
# @return [void]
|
|
694
|
+
# @see Messages::DoDelRequest
|
|
695
|
+
def do_del: (?addr_ipv4: ::Integer, ?addr_ipv6: ::String, ?saddr_ipv4: ::Integer, ?saddr_ipv6: ::String) -> void
|
|
696
|
+
|
|
697
|
+
class AsyncOperations
|
|
698
|
+
# @private
|
|
699
|
+
def initialize: () ?{ (?) -> untyped } -> untyped
|
|
700
|
+
|
|
701
|
+
# Retrieve metrics.
|
|
702
|
+
# @rbs (?addr_ipv4: ::Integer, ?addr_ipv6: ::String, ?saddr_ipv4: ::Integer, ?saddr_ipv6: ::String) -> ::Nl::Async::Future[Messages::DoGetReply]
|
|
703
|
+
# @param [Hash] args
|
|
704
|
+
# @option args [Integer] addr_ipv4
|
|
705
|
+
# @option args [String] addr_ipv6
|
|
706
|
+
# @option args [Integer] saddr_ipv4
|
|
707
|
+
# @option args [String] saddr_ipv6
|
|
708
|
+
# @return [Nl::Async::Future<Messages::DoGetReply>]
|
|
709
|
+
# @see Messages::DoGetRequest
|
|
710
|
+
def do_get: (?addr_ipv4: ::Integer, ?addr_ipv6: ::String, ?saddr_ipv4: ::Integer, ?saddr_ipv6: ::String) -> ::Nl::Async::Future[Messages::DoGetReply]
|
|
711
|
+
|
|
712
|
+
# Retrieve metrics.
|
|
713
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpGetReply]
|
|
714
|
+
# @param [Hash] args
|
|
715
|
+
# @return [Nl::Async::Stream<Messages::DumpGetReply>]
|
|
716
|
+
# @see Messages::DumpGetRequest
|
|
717
|
+
def dump_get: () -> ::Nl::Async::Stream[Messages::DumpGetReply]
|
|
718
|
+
|
|
719
|
+
# Delete metrics.
|
|
720
|
+
#
|
|
721
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
722
|
+
# @rbs (?addr_ipv4: ::Integer, ?addr_ipv6: ::String, ?saddr_ipv4: ::Integer, ?saddr_ipv6: ::String) -> ::Nl::Async::Future[void]
|
|
723
|
+
# @param [Hash] args
|
|
724
|
+
# @option args [Integer] addr_ipv4
|
|
725
|
+
# @option args [String] addr_ipv6
|
|
726
|
+
# @option args [Integer] saddr_ipv4
|
|
727
|
+
# @option args [String] saddr_ipv6
|
|
728
|
+
# @return [Nl::Async::Future<void>]
|
|
729
|
+
# @see Messages::DoDelRequest
|
|
730
|
+
def do_del: (?addr_ipv4: ::Integer, ?addr_ipv6: ::String, ?saddr_ipv4: ::Integer, ?saddr_ipv6: ::String) -> ::Nl::Async::Future[void]
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
# Returns the asynchronous operation facade for this family.
|
|
734
|
+
# @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
735
|
+
# @param [::Integer, nil] stream_capacity
|
|
736
|
+
# @return [AsyncOperations]
|
|
737
|
+
def async: (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
738
|
+
end
|
|
739
|
+
end
|
|
740
|
+
end
|