nl-linux 0.4.2 → 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 +5 -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
|
@@ -50,6 +50,20 @@ module Nl
|
|
|
50
50
|
|
|
51
51
|
Xresolve: ::Integer
|
|
52
52
|
end
|
|
53
|
+
|
|
54
|
+
# Why the kernel deleted a route. New causes may be appended. The
|
|
55
|
+
# value space is family-agnostic, a value is never reinterpreted
|
|
56
|
+
# per address family.
|
|
57
|
+
module DelReason
|
|
58
|
+
# The deletion path does not record a cause.
|
|
59
|
+
Unspec: ::Integer
|
|
60
|
+
|
|
61
|
+
# The RTF_EXPIRES lifetime ran out and the route was garbage collected.
|
|
62
|
+
Expired: ::Integer
|
|
63
|
+
|
|
64
|
+
# A Router Advertisement withdrew the route with a zero lifetime.
|
|
65
|
+
RaWithdrawn: ::Integer
|
|
66
|
+
end
|
|
53
67
|
end
|
|
54
68
|
|
|
55
69
|
module Structs
|
|
@@ -98,6 +112,10 @@ module Nl
|
|
|
98
112
|
# @private
|
|
99
113
|
MEMBERS: Hash[::Symbol, ::Nl::_DataType]
|
|
100
114
|
|
|
115
|
+
# @private
|
|
116
|
+
# @rbs (Hash[Symbol, untyped] params, ?context: untyped) -> instance
|
|
117
|
+
def self.from_params: (Hash[Symbol, untyped] params, ?context: untyped) -> instance
|
|
118
|
+
|
|
101
119
|
# Decodes the struct.
|
|
102
120
|
# @rbs decoder: ::Nl::Decoder
|
|
103
121
|
# @rbs return: instance
|
|
@@ -142,6 +160,10 @@ module Nl
|
|
|
142
160
|
# @private
|
|
143
161
|
MEMBERS: Hash[::Symbol, ::Nl::_DataType]
|
|
144
162
|
|
|
163
|
+
# @private
|
|
164
|
+
# @rbs (Hash[Symbol, untyped] params, ?context: untyped) -> instance
|
|
165
|
+
def self.from_params: (Hash[Symbol, untyped] params, ?context: untyped) -> instance
|
|
166
|
+
|
|
145
167
|
# Decodes the struct.
|
|
146
168
|
# @rbs decoder: ::Nl::Decoder
|
|
147
169
|
# @rbs return: instance
|
|
@@ -160,874 +182,603 @@ module Nl
|
|
|
160
182
|
|
|
161
183
|
module AttributeSets
|
|
162
184
|
class RouteAttrs < ::Nl::AttributeSet
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
class Dst < Attribute
|
|
168
|
-
TYPE: ::Integer
|
|
169
|
-
|
|
170
|
-
NAME: ::Symbol
|
|
171
|
-
|
|
172
|
-
# @private
|
|
173
|
-
ORDER: ::Integer
|
|
174
|
-
|
|
175
|
-
# @private
|
|
176
|
-
DATATYPE: untyped
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
class Src < Attribute
|
|
180
|
-
TYPE: ::Integer
|
|
181
|
-
|
|
182
|
-
NAME: ::Symbol
|
|
183
|
-
|
|
184
|
-
# @private
|
|
185
|
-
ORDER: ::Integer
|
|
186
|
-
|
|
187
|
-
# @private
|
|
188
|
-
DATATYPE: untyped
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
class Iif < Attribute
|
|
192
|
-
TYPE: ::Integer
|
|
193
|
-
|
|
194
|
-
NAME: ::Symbol
|
|
195
|
-
|
|
196
|
-
# @private
|
|
197
|
-
ORDER: ::Integer
|
|
198
|
-
|
|
199
|
-
# @private
|
|
200
|
-
DATATYPE: untyped
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
class Oif < Attribute
|
|
204
|
-
TYPE: ::Integer
|
|
205
|
-
|
|
206
|
-
NAME: ::Symbol
|
|
207
|
-
|
|
208
|
-
# @private
|
|
209
|
-
ORDER: ::Integer
|
|
210
|
-
|
|
211
|
-
# @private
|
|
212
|
-
DATATYPE: untyped
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
class Gateway < Attribute
|
|
216
|
-
TYPE: ::Integer
|
|
217
|
-
|
|
218
|
-
NAME: ::Symbol
|
|
219
|
-
|
|
220
|
-
# @private
|
|
221
|
-
ORDER: ::Integer
|
|
222
|
-
|
|
223
|
-
# @private
|
|
224
|
-
DATATYPE: untyped
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
class Priority < Attribute
|
|
228
|
-
TYPE: ::Integer
|
|
229
|
-
|
|
230
|
-
NAME: ::Symbol
|
|
231
|
-
|
|
232
|
-
# @private
|
|
233
|
-
ORDER: ::Integer
|
|
234
|
-
|
|
235
|
-
# @private
|
|
236
|
-
DATATYPE: untyped
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
class Prefsrc < Attribute
|
|
240
|
-
TYPE: ::Integer
|
|
241
|
-
|
|
242
|
-
NAME: ::Symbol
|
|
243
|
-
|
|
244
|
-
# @private
|
|
245
|
-
ORDER: ::Integer
|
|
246
|
-
|
|
247
|
-
# @private
|
|
248
|
-
DATATYPE: untyped
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
class Metrics < Attribute
|
|
252
|
-
TYPE: ::Integer
|
|
253
|
-
|
|
254
|
-
NAME: ::Symbol
|
|
255
|
-
|
|
256
|
-
# @private
|
|
257
|
-
ORDER: ::Integer
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
class Multipath < Attribute
|
|
261
|
-
TYPE: ::Integer
|
|
262
|
-
|
|
263
|
-
NAME: ::Symbol
|
|
264
|
-
|
|
265
|
-
# @private
|
|
266
|
-
ORDER: ::Integer
|
|
267
|
-
|
|
268
|
-
# @private
|
|
269
|
-
DATATYPE: untyped
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
class Protoinfo < Attribute
|
|
273
|
-
TYPE: ::Integer
|
|
274
|
-
|
|
275
|
-
NAME: ::Symbol
|
|
276
|
-
|
|
277
|
-
# @private
|
|
278
|
-
ORDER: ::Integer
|
|
279
|
-
|
|
280
|
-
# @private
|
|
281
|
-
DATATYPE: untyped
|
|
282
|
-
end
|
|
283
|
-
|
|
284
|
-
class Flow < Attribute
|
|
285
|
-
TYPE: ::Integer
|
|
286
|
-
|
|
287
|
-
NAME: ::Symbol
|
|
288
|
-
|
|
289
|
-
# @private
|
|
290
|
-
ORDER: ::Integer
|
|
291
|
-
|
|
292
|
-
# @private
|
|
293
|
-
DATATYPE: untyped
|
|
294
|
-
end
|
|
295
|
-
|
|
296
|
-
class Cacheinfo < Attribute
|
|
297
|
-
TYPE: ::Integer
|
|
298
|
-
|
|
299
|
-
NAME: ::Symbol
|
|
300
|
-
|
|
301
|
-
# @private
|
|
302
|
-
ORDER: ::Integer
|
|
303
|
-
|
|
304
|
-
# @private
|
|
305
|
-
DATATYPE: untyped
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
class Session < Attribute
|
|
309
|
-
TYPE: ::Integer
|
|
310
|
-
|
|
311
|
-
NAME: ::Symbol
|
|
312
|
-
|
|
313
|
-
# @private
|
|
314
|
-
ORDER: ::Integer
|
|
315
|
-
|
|
316
|
-
# @private
|
|
317
|
-
DATATYPE: untyped
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
class MpAlgo < Attribute
|
|
321
|
-
TYPE: ::Integer
|
|
322
|
-
|
|
323
|
-
NAME: ::Symbol
|
|
324
|
-
|
|
325
|
-
# @private
|
|
326
|
-
ORDER: ::Integer
|
|
327
|
-
|
|
328
|
-
# @private
|
|
329
|
-
DATATYPE: untyped
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
class Table < Attribute
|
|
333
|
-
TYPE: ::Integer
|
|
334
|
-
|
|
335
|
-
NAME: ::Symbol
|
|
185
|
+
module Definitions
|
|
186
|
+
# @rbs return: ::String
|
|
187
|
+
# @return [String]
|
|
188
|
+
def dst: () -> ::String
|
|
336
189
|
|
|
337
|
-
# @
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
# @private
|
|
341
|
-
DATATYPE: untyped
|
|
342
|
-
end
|
|
343
|
-
|
|
344
|
-
class Mark < Attribute
|
|
345
|
-
TYPE: ::Integer
|
|
346
|
-
|
|
347
|
-
NAME: ::Symbol
|
|
348
|
-
|
|
349
|
-
# @private
|
|
350
|
-
ORDER: ::Integer
|
|
351
|
-
|
|
352
|
-
# @private
|
|
353
|
-
DATATYPE: untyped
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
class MfcStats < Attribute
|
|
357
|
-
TYPE: ::Integer
|
|
358
|
-
|
|
359
|
-
NAME: ::Symbol
|
|
360
|
-
|
|
361
|
-
# @private
|
|
362
|
-
ORDER: ::Integer
|
|
363
|
-
|
|
364
|
-
# @private
|
|
365
|
-
DATATYPE: untyped
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
class Via < Attribute
|
|
369
|
-
TYPE: ::Integer
|
|
370
|
-
|
|
371
|
-
NAME: ::Symbol
|
|
372
|
-
|
|
373
|
-
# @private
|
|
374
|
-
ORDER: ::Integer
|
|
375
|
-
|
|
376
|
-
# @private
|
|
377
|
-
DATATYPE: untyped
|
|
378
|
-
end
|
|
379
|
-
|
|
380
|
-
class Newdst < Attribute
|
|
381
|
-
TYPE: ::Integer
|
|
382
|
-
|
|
383
|
-
NAME: ::Symbol
|
|
384
|
-
|
|
385
|
-
# @private
|
|
386
|
-
ORDER: ::Integer
|
|
387
|
-
|
|
388
|
-
# @private
|
|
389
|
-
DATATYPE: untyped
|
|
390
|
-
end
|
|
391
|
-
|
|
392
|
-
class Pref < Attribute
|
|
393
|
-
TYPE: ::Integer
|
|
394
|
-
|
|
395
|
-
NAME: ::Symbol
|
|
396
|
-
|
|
397
|
-
# @private
|
|
398
|
-
ORDER: ::Integer
|
|
399
|
-
|
|
400
|
-
# @private
|
|
401
|
-
DATATYPE: untyped
|
|
402
|
-
end
|
|
403
|
-
|
|
404
|
-
class EncapType < Attribute
|
|
405
|
-
TYPE: ::Integer
|
|
406
|
-
|
|
407
|
-
NAME: ::Symbol
|
|
408
|
-
|
|
409
|
-
# @private
|
|
410
|
-
ORDER: ::Integer
|
|
411
|
-
|
|
412
|
-
# @private
|
|
413
|
-
DATATYPE: untyped
|
|
414
|
-
end
|
|
415
|
-
|
|
416
|
-
class Encap < Attribute
|
|
417
|
-
TYPE: ::Integer
|
|
418
|
-
|
|
419
|
-
NAME: ::Symbol
|
|
420
|
-
|
|
421
|
-
# @private
|
|
422
|
-
ORDER: ::Integer
|
|
423
|
-
|
|
424
|
-
# @private
|
|
425
|
-
DATATYPE: untyped
|
|
426
|
-
end
|
|
427
|
-
|
|
428
|
-
class Expires < Attribute
|
|
429
|
-
TYPE: ::Integer
|
|
190
|
+
# @rbs return: ::String
|
|
191
|
+
# @return [String]
|
|
192
|
+
def src: () -> ::String
|
|
430
193
|
|
|
431
|
-
|
|
194
|
+
# @rbs return: ::Integer
|
|
195
|
+
# @return [Integer]
|
|
196
|
+
def iif: () -> ::Integer
|
|
432
197
|
|
|
433
|
-
# @
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
# @private
|
|
437
|
-
DATATYPE: untyped
|
|
438
|
-
end
|
|
439
|
-
|
|
440
|
-
class Pad < Attribute
|
|
441
|
-
TYPE: ::Integer
|
|
442
|
-
|
|
443
|
-
NAME: ::Symbol
|
|
444
|
-
|
|
445
|
-
# @private
|
|
446
|
-
ORDER: ::Integer
|
|
447
|
-
|
|
448
|
-
# @private
|
|
449
|
-
DATATYPE: untyped
|
|
450
|
-
end
|
|
198
|
+
# @rbs return: ::Integer
|
|
199
|
+
# @return [Integer]
|
|
200
|
+
def oif: () -> ::Integer
|
|
451
201
|
|
|
452
|
-
|
|
453
|
-
|
|
202
|
+
# @rbs return: ::String
|
|
203
|
+
# @return [String]
|
|
204
|
+
def gateway: () -> ::String
|
|
454
205
|
|
|
455
|
-
|
|
206
|
+
# @rbs return: ::Integer
|
|
207
|
+
# @return [Integer]
|
|
208
|
+
def priority: () -> ::Integer
|
|
456
209
|
|
|
457
|
-
# @
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
210
|
+
# @rbs return: ::String
|
|
211
|
+
# @return [String]
|
|
212
|
+
def prefsrc: () -> ::String
|
|
213
|
+
|
|
214
|
+
# @rbs return: AttributeSets::Metrics
|
|
215
|
+
# @return [AttributeSets::Metrics]
|
|
216
|
+
def metrics: () -> AttributeSets::Metrics
|
|
217
|
+
|
|
218
|
+
# @rbs return: ::String
|
|
219
|
+
# @return [String]
|
|
220
|
+
def multipath: () -> ::String
|
|
221
|
+
|
|
222
|
+
# @rbs return: ::String
|
|
223
|
+
# @return [String]
|
|
224
|
+
def protoinfo: () -> ::String
|
|
225
|
+
|
|
226
|
+
# @rbs return: ::Integer
|
|
227
|
+
# @return [Integer]
|
|
228
|
+
def flow: () -> ::Integer
|
|
229
|
+
|
|
230
|
+
# @rbs return: Structs::RtaCacheinfo
|
|
231
|
+
# @return [Structs::RtaCacheinfo]
|
|
232
|
+
def cacheinfo: () -> Structs::RtaCacheinfo
|
|
233
|
+
|
|
234
|
+
# @rbs return: ::String
|
|
235
|
+
# @return [String]
|
|
236
|
+
def session: () -> ::String
|
|
237
|
+
|
|
238
|
+
# @rbs return: ::String
|
|
239
|
+
# @return [String]
|
|
240
|
+
def mp_algo: () -> ::String
|
|
241
|
+
|
|
242
|
+
# @rbs return: ::Integer
|
|
243
|
+
# @return [Integer]
|
|
244
|
+
def table: () -> ::Integer
|
|
245
|
+
|
|
246
|
+
# @rbs return: ::Integer
|
|
247
|
+
# @return [Integer]
|
|
248
|
+
def mark: () -> ::Integer
|
|
249
|
+
|
|
250
|
+
# @rbs return: ::String
|
|
251
|
+
# @return [String]
|
|
252
|
+
def mfc_stats: () -> ::String
|
|
253
|
+
|
|
254
|
+
# @rbs return: ::String
|
|
255
|
+
# @return [String]
|
|
256
|
+
def via: () -> ::String
|
|
257
|
+
|
|
258
|
+
# @rbs return: ::String
|
|
259
|
+
# @return [String]
|
|
260
|
+
def newdst: () -> ::String
|
|
261
|
+
|
|
262
|
+
# @rbs return: ::Integer
|
|
263
|
+
# @return [Integer]
|
|
264
|
+
def pref: () -> ::Integer
|
|
265
|
+
|
|
266
|
+
# @rbs return: ::Integer
|
|
267
|
+
# @return [Integer]
|
|
268
|
+
def encap_type: () -> ::Integer
|
|
269
|
+
|
|
270
|
+
# @rbs return: ::String
|
|
271
|
+
# @return [String]
|
|
272
|
+
def encap: () -> ::String
|
|
273
|
+
|
|
274
|
+
# @rbs return: ::Integer
|
|
275
|
+
# @return [Integer]
|
|
276
|
+
def expires: () -> ::Integer
|
|
277
|
+
|
|
278
|
+
# @rbs return: ::String
|
|
279
|
+
# @return [String]
|
|
280
|
+
def pad: () -> ::String
|
|
281
|
+
|
|
282
|
+
# @rbs return: ::Integer
|
|
283
|
+
# @return [Integer]
|
|
284
|
+
def uid: () -> ::Integer
|
|
285
|
+
|
|
286
|
+
# @rbs return: ::Integer
|
|
287
|
+
# @return [Integer]
|
|
288
|
+
def ttl_propagate: () -> ::Integer
|
|
289
|
+
|
|
290
|
+
# @rbs return: ::Integer
|
|
291
|
+
# @return [Integer]
|
|
292
|
+
def ip_proto: () -> ::Integer
|
|
293
|
+
|
|
294
|
+
# @rbs return: ::Integer
|
|
295
|
+
# @return [Integer]
|
|
296
|
+
def sport: () -> ::Integer
|
|
297
|
+
|
|
298
|
+
# @rbs return: ::Integer
|
|
299
|
+
# @return [Integer]
|
|
300
|
+
def dport: () -> ::Integer
|
|
301
|
+
|
|
302
|
+
# @rbs return: ::Integer
|
|
303
|
+
# @return [Integer]
|
|
304
|
+
def nh_id: () -> ::Integer
|
|
305
|
+
|
|
306
|
+
# @rbs return: ::Integer
|
|
307
|
+
# @return [Integer]
|
|
308
|
+
def flowlabel: () -> ::Integer
|
|
309
|
+
|
|
310
|
+
# Emitted only on RTM_DELROUTE notifications, and only when the
|
|
311
|
+
# deletion path records a cause. An absent attribute means
|
|
312
|
+
# either an older kernel or a deletion path that does not
|
|
313
|
+
# record its cause, consumers must treat absent and unspec
|
|
314
|
+
# identically. Currently only IPv6 deletion paths record a
|
|
315
|
+
# cause. The attribute is notification-only, the kernel rejects
|
|
316
|
+
# it in requests.
|
|
317
|
+
#
|
|
318
|
+
#
|
|
319
|
+
# Known enum values are defined in {Enums::DelReason}.
|
|
320
|
+
# @rbs return: ::Integer
|
|
321
|
+
# @return [Integer]
|
|
322
|
+
def del_reason: () -> ::Integer
|
|
462
323
|
end
|
|
463
324
|
|
|
464
|
-
|
|
465
|
-
TYPE: ::Integer
|
|
325
|
+
include Definitions
|
|
466
326
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
# @private
|
|
473
|
-
DATATYPE: untyped
|
|
474
|
-
end
|
|
475
|
-
|
|
476
|
-
class IpProto < Attribute
|
|
477
|
-
TYPE: ::Integer
|
|
478
|
-
|
|
479
|
-
NAME: ::Symbol
|
|
480
|
-
|
|
481
|
-
# @private
|
|
482
|
-
ORDER: ::Integer
|
|
327
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
328
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
329
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
330
|
+
end
|
|
483
331
|
|
|
484
|
-
|
|
485
|
-
|
|
332
|
+
class Metrics < ::Nl::AttributeSet
|
|
333
|
+
module Definitions
|
|
334
|
+
# @rbs return: ::Integer
|
|
335
|
+
# @return [Integer]
|
|
336
|
+
def lock: () -> ::Integer
|
|
337
|
+
|
|
338
|
+
# @rbs return: ::Integer
|
|
339
|
+
# @return [Integer]
|
|
340
|
+
def mtu: () -> ::Integer
|
|
341
|
+
|
|
342
|
+
# @rbs return: ::Integer
|
|
343
|
+
# @return [Integer]
|
|
344
|
+
def window: () -> ::Integer
|
|
345
|
+
|
|
346
|
+
# @rbs return: ::Integer
|
|
347
|
+
# @return [Integer]
|
|
348
|
+
def rtt: () -> ::Integer
|
|
349
|
+
|
|
350
|
+
# @rbs return: ::Integer
|
|
351
|
+
# @return [Integer]
|
|
352
|
+
def rttvar: () -> ::Integer
|
|
353
|
+
|
|
354
|
+
# @rbs return: ::Integer
|
|
355
|
+
# @return [Integer]
|
|
356
|
+
def ssthresh: () -> ::Integer
|
|
357
|
+
|
|
358
|
+
# @rbs return: ::Integer
|
|
359
|
+
# @return [Integer]
|
|
360
|
+
def cwnd: () -> ::Integer
|
|
361
|
+
|
|
362
|
+
# @rbs return: ::Integer
|
|
363
|
+
# @return [Integer]
|
|
364
|
+
def advmss: () -> ::Integer
|
|
365
|
+
|
|
366
|
+
# @rbs return: ::Integer
|
|
367
|
+
# @return [Integer]
|
|
368
|
+
def reordering: () -> ::Integer
|
|
369
|
+
|
|
370
|
+
# @rbs return: ::Integer
|
|
371
|
+
# @return [Integer]
|
|
372
|
+
def hoplimit: () -> ::Integer
|
|
373
|
+
|
|
374
|
+
# @rbs return: ::Integer
|
|
375
|
+
# @return [Integer]
|
|
376
|
+
def initcwnd: () -> ::Integer
|
|
377
|
+
|
|
378
|
+
# @rbs return: ::Integer
|
|
379
|
+
# @return [Integer]
|
|
380
|
+
def features: () -> ::Integer
|
|
381
|
+
|
|
382
|
+
# @rbs return: ::Integer
|
|
383
|
+
# @return [Integer]
|
|
384
|
+
def rto_min: () -> ::Integer
|
|
385
|
+
|
|
386
|
+
# @rbs return: ::Integer
|
|
387
|
+
# @return [Integer]
|
|
388
|
+
def initrwnd: () -> ::Integer
|
|
389
|
+
|
|
390
|
+
# @rbs return: ::Integer
|
|
391
|
+
# @return [Integer]
|
|
392
|
+
def quickack: () -> ::Integer
|
|
393
|
+
|
|
394
|
+
# @rbs return: ::String
|
|
395
|
+
# @return [String]
|
|
396
|
+
def cc_algo: () -> ::String
|
|
397
|
+
|
|
398
|
+
# @rbs return: ::Integer
|
|
399
|
+
# @return [Integer]
|
|
400
|
+
def fastopen_no_cookie: () -> ::Integer
|
|
486
401
|
end
|
|
487
402
|
|
|
488
|
-
|
|
489
|
-
TYPE: ::Integer
|
|
403
|
+
include Definitions
|
|
490
404
|
|
|
491
|
-
|
|
405
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
406
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
407
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
408
|
+
end
|
|
409
|
+
end
|
|
492
410
|
|
|
411
|
+
module AttributeSets
|
|
412
|
+
class RouteAttrs
|
|
413
|
+
module Definitions
|
|
493
414
|
# @private
|
|
494
|
-
|
|
415
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
495
416
|
|
|
496
417
|
# @private
|
|
497
|
-
|
|
418
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
498
419
|
end
|
|
420
|
+
end
|
|
499
421
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
NAME: ::Symbol
|
|
504
|
-
|
|
422
|
+
class Metrics
|
|
423
|
+
module Definitions
|
|
505
424
|
# @private
|
|
506
|
-
|
|
425
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
507
426
|
|
|
508
427
|
# @private
|
|
509
|
-
|
|
428
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
510
429
|
end
|
|
430
|
+
end
|
|
431
|
+
end
|
|
511
432
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
# @private
|
|
518
|
-
ORDER: ::Integer
|
|
433
|
+
module Messages
|
|
434
|
+
# Dump route information.
|
|
435
|
+
class DoGetrouteRequest < ::Nl::Message
|
|
436
|
+
TYPE: ::Integer
|
|
519
437
|
|
|
520
|
-
|
|
521
|
-
DATATYPE: untyped
|
|
522
|
-
end
|
|
438
|
+
FIXED_HEADER: untyped
|
|
523
439
|
|
|
524
|
-
|
|
525
|
-
TYPE: ::Integer
|
|
440
|
+
ATTRIBUTE_SET: untyped
|
|
526
441
|
|
|
527
|
-
|
|
442
|
+
ATTRIBUTES: untyped
|
|
528
443
|
|
|
529
|
-
|
|
530
|
-
ORDER: ::Integer
|
|
444
|
+
include ATTRIBUTE_SET::Definitions
|
|
531
445
|
|
|
532
|
-
|
|
533
|
-
DATATYPE: untyped
|
|
534
|
-
end
|
|
446
|
+
def initialize: (untyped rtm_family, untyped rtm_dst_len, untyped rtm_src_len, untyped rtm_tos, untyped rtm_table, untyped rtm_protocol, untyped rtm_scope, untyped rtm_type, untyped rtm_flags, ?untyped attributes) -> untyped
|
|
535
447
|
|
|
536
448
|
# @private
|
|
537
|
-
|
|
449
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
538
450
|
|
|
539
|
-
#
|
|
540
|
-
|
|
451
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
452
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
453
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
541
454
|
|
|
542
|
-
|
|
543
|
-
# @return [String]
|
|
544
|
-
# @see Dst
|
|
545
|
-
def dst: () -> ::String
|
|
546
|
-
|
|
547
|
-
# @rbs return: ::String
|
|
548
|
-
# @return [String]
|
|
549
|
-
# @see Src
|
|
550
|
-
def src: () -> ::String
|
|
455
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
551
456
|
|
|
552
457
|
# @rbs return: ::Integer
|
|
553
458
|
# @return [Integer]
|
|
554
|
-
|
|
555
|
-
def iif: () -> ::Integer
|
|
459
|
+
def rtm_family: () -> ::Integer
|
|
556
460
|
|
|
557
461
|
# @rbs return: ::Integer
|
|
558
462
|
# @return [Integer]
|
|
559
|
-
|
|
560
|
-
def oif: () -> ::Integer
|
|
561
|
-
|
|
562
|
-
# @rbs return: ::String
|
|
563
|
-
# @return [String]
|
|
564
|
-
# @see Gateway
|
|
565
|
-
def gateway: () -> ::String
|
|
463
|
+
def rtm_dst_len: () -> ::Integer
|
|
566
464
|
|
|
567
465
|
# @rbs return: ::Integer
|
|
568
466
|
# @return [Integer]
|
|
569
|
-
|
|
570
|
-
def priority: () -> ::Integer
|
|
571
|
-
|
|
572
|
-
# @rbs return: ::String
|
|
573
|
-
# @return [String]
|
|
574
|
-
# @see Prefsrc
|
|
575
|
-
def prefsrc: () -> ::String
|
|
576
|
-
|
|
577
|
-
# @rbs return: AttributeSets::Metrics
|
|
578
|
-
# @return [AttributeSets::Metrics]
|
|
579
|
-
# @see Metrics
|
|
580
|
-
def metrics: () -> AttributeSets::Metrics
|
|
581
|
-
|
|
582
|
-
# @rbs return: ::String
|
|
583
|
-
# @return [String]
|
|
584
|
-
# @see Multipath
|
|
585
|
-
def multipath: () -> ::String
|
|
586
|
-
|
|
587
|
-
# @rbs return: ::String
|
|
588
|
-
# @return [String]
|
|
589
|
-
# @see Protoinfo
|
|
590
|
-
def protoinfo: () -> ::String
|
|
467
|
+
def rtm_src_len: () -> ::Integer
|
|
591
468
|
|
|
592
469
|
# @rbs return: ::Integer
|
|
593
470
|
# @return [Integer]
|
|
594
|
-
|
|
595
|
-
def flow: () -> ::Integer
|
|
596
|
-
|
|
597
|
-
# @rbs return: Structs::RtaCacheinfo
|
|
598
|
-
# @return [Structs::RtaCacheinfo]
|
|
599
|
-
# @see Cacheinfo
|
|
600
|
-
def cacheinfo: () -> Structs::RtaCacheinfo
|
|
471
|
+
def rtm_tos: () -> ::Integer
|
|
601
472
|
|
|
602
|
-
# @rbs return: ::
|
|
603
|
-
# @return [
|
|
604
|
-
|
|
605
|
-
def session: () -> ::String
|
|
473
|
+
# @rbs return: ::Integer
|
|
474
|
+
# @return [Integer]
|
|
475
|
+
def rtm_table: () -> ::Integer
|
|
606
476
|
|
|
607
|
-
# @rbs return: ::
|
|
608
|
-
# @return [
|
|
609
|
-
|
|
610
|
-
def mp_algo: () -> ::String
|
|
477
|
+
# @rbs return: ::Integer
|
|
478
|
+
# @return [Integer]
|
|
479
|
+
def rtm_protocol: () -> ::Integer
|
|
611
480
|
|
|
612
481
|
# @rbs return: ::Integer
|
|
613
482
|
# @return [Integer]
|
|
614
|
-
|
|
615
|
-
def table: () -> ::Integer
|
|
483
|
+
def rtm_scope: () -> ::Integer
|
|
616
484
|
|
|
617
485
|
# @rbs return: ::Integer
|
|
618
486
|
# @return [Integer]
|
|
619
|
-
|
|
620
|
-
def mark: () -> ::Integer
|
|
487
|
+
def rtm_type: () -> ::Integer
|
|
621
488
|
|
|
622
|
-
# @rbs return: ::
|
|
623
|
-
# @return [
|
|
624
|
-
|
|
625
|
-
def mfc_stats: () -> ::String
|
|
489
|
+
# @rbs return: ::Integer
|
|
490
|
+
# @return [Integer]
|
|
491
|
+
def rtm_flags: () -> ::Integer
|
|
626
492
|
|
|
627
493
|
# @rbs return: ::String
|
|
628
494
|
# @return [String]
|
|
629
|
-
|
|
630
|
-
def via: () -> ::String
|
|
495
|
+
def dst: () -> ::String
|
|
631
496
|
|
|
632
497
|
# @rbs return: ::String
|
|
633
498
|
# @return [String]
|
|
634
|
-
|
|
635
|
-
def newdst: () -> ::String
|
|
499
|
+
def src: () -> ::String
|
|
636
500
|
|
|
637
501
|
# @rbs return: ::Integer
|
|
638
502
|
# @return [Integer]
|
|
639
|
-
|
|
640
|
-
def pref: () -> ::Integer
|
|
503
|
+
def iif: () -> ::Integer
|
|
641
504
|
|
|
642
505
|
# @rbs return: ::Integer
|
|
643
506
|
# @return [Integer]
|
|
644
|
-
|
|
645
|
-
def encap_type: () -> ::Integer
|
|
646
|
-
|
|
647
|
-
# @rbs return: ::String
|
|
648
|
-
# @return [String]
|
|
649
|
-
# @see Encap
|
|
650
|
-
def encap: () -> ::String
|
|
507
|
+
def oif: () -> ::Integer
|
|
651
508
|
|
|
652
509
|
# @rbs return: ::Integer
|
|
653
510
|
# @return [Integer]
|
|
654
|
-
|
|
655
|
-
def expires: () -> ::Integer
|
|
656
|
-
|
|
657
|
-
# @rbs return: ::String
|
|
658
|
-
# @return [String]
|
|
659
|
-
# @see Pad
|
|
660
|
-
def pad: () -> ::String
|
|
511
|
+
def mark: () -> ::Integer
|
|
661
512
|
|
|
662
513
|
# @rbs return: ::Integer
|
|
663
514
|
# @return [Integer]
|
|
664
|
-
# @see Uid
|
|
665
515
|
def uid: () -> ::Integer
|
|
666
516
|
|
|
667
517
|
# @rbs return: ::Integer
|
|
668
518
|
# @return [Integer]
|
|
669
|
-
# @see TtlPropagate
|
|
670
|
-
def ttl_propagate: () -> ::Integer
|
|
671
|
-
|
|
672
|
-
# @rbs return: ::Integer
|
|
673
|
-
# @return [Integer]
|
|
674
|
-
# @see IpProto
|
|
675
519
|
def ip_proto: () -> ::Integer
|
|
676
520
|
|
|
677
521
|
# @rbs return: ::Integer
|
|
678
522
|
# @return [Integer]
|
|
679
|
-
# @see Sport
|
|
680
523
|
def sport: () -> ::Integer
|
|
681
524
|
|
|
682
525
|
# @rbs return: ::Integer
|
|
683
526
|
# @return [Integer]
|
|
684
|
-
# @see Dport
|
|
685
527
|
def dport: () -> ::Integer
|
|
686
528
|
|
|
687
529
|
# @rbs return: ::Integer
|
|
688
530
|
# @return [Integer]
|
|
689
|
-
# @see NhId
|
|
690
|
-
def nh_id: () -> ::Integer
|
|
691
|
-
|
|
692
|
-
# @rbs return: ::Integer
|
|
693
|
-
# @return [Integer]
|
|
694
|
-
# @see Flowlabel
|
|
695
531
|
def flowlabel: () -> ::Integer
|
|
696
|
-
|
|
697
|
-
# Looks up Attribute class by name.
|
|
698
|
-
# @rbs name: Symbol
|
|
699
|
-
# @rbs return: Attribute
|
|
700
|
-
# @param [Symbol] name
|
|
701
|
-
# @return [Attribute]
|
|
702
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
703
|
-
|
|
704
|
-
# Looks up Attribute class by type value.
|
|
705
|
-
# @rbs type: Integer
|
|
706
|
-
# @rbs return: Attribute
|
|
707
|
-
# @param [Integer] type
|
|
708
|
-
# @return [Attribute]
|
|
709
|
-
def self.by_type: (Integer type) -> Attribute
|
|
710
532
|
end
|
|
711
533
|
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
end
|
|
716
|
-
|
|
717
|
-
class Lock < Attribute
|
|
718
|
-
TYPE: ::Integer
|
|
719
|
-
|
|
720
|
-
NAME: ::Symbol
|
|
721
|
-
|
|
722
|
-
# @private
|
|
723
|
-
ORDER: ::Integer
|
|
724
|
-
|
|
725
|
-
# @private
|
|
726
|
-
DATATYPE: untyped
|
|
727
|
-
end
|
|
728
|
-
|
|
729
|
-
class Mtu < Attribute
|
|
730
|
-
TYPE: ::Integer
|
|
731
|
-
|
|
732
|
-
NAME: ::Symbol
|
|
733
|
-
|
|
734
|
-
# @private
|
|
735
|
-
ORDER: ::Integer
|
|
736
|
-
|
|
737
|
-
# @private
|
|
738
|
-
DATATYPE: untyped
|
|
739
|
-
end
|
|
740
|
-
|
|
741
|
-
class Window < Attribute
|
|
742
|
-
TYPE: ::Integer
|
|
743
|
-
|
|
744
|
-
NAME: ::Symbol
|
|
745
|
-
|
|
746
|
-
# @private
|
|
747
|
-
ORDER: ::Integer
|
|
748
|
-
|
|
749
|
-
# @private
|
|
750
|
-
DATATYPE: untyped
|
|
751
|
-
end
|
|
752
|
-
|
|
753
|
-
class Rtt < Attribute
|
|
754
|
-
TYPE: ::Integer
|
|
755
|
-
|
|
756
|
-
NAME: ::Symbol
|
|
757
|
-
|
|
758
|
-
# @private
|
|
759
|
-
ORDER: ::Integer
|
|
760
|
-
|
|
761
|
-
# @private
|
|
762
|
-
DATATYPE: untyped
|
|
763
|
-
end
|
|
764
|
-
|
|
765
|
-
class Rttvar < Attribute
|
|
766
|
-
TYPE: ::Integer
|
|
767
|
-
|
|
768
|
-
NAME: ::Symbol
|
|
769
|
-
|
|
770
|
-
# @private
|
|
771
|
-
ORDER: ::Integer
|
|
772
|
-
|
|
773
|
-
# @private
|
|
774
|
-
DATATYPE: untyped
|
|
775
|
-
end
|
|
776
|
-
|
|
777
|
-
class Ssthresh < Attribute
|
|
778
|
-
TYPE: ::Integer
|
|
779
|
-
|
|
780
|
-
NAME: ::Symbol
|
|
781
|
-
|
|
782
|
-
# @private
|
|
783
|
-
ORDER: ::Integer
|
|
784
|
-
|
|
785
|
-
# @private
|
|
786
|
-
DATATYPE: untyped
|
|
787
|
-
end
|
|
788
|
-
|
|
789
|
-
class Cwnd < Attribute
|
|
790
|
-
TYPE: ::Integer
|
|
791
|
-
|
|
792
|
-
NAME: ::Symbol
|
|
793
|
-
|
|
794
|
-
# @private
|
|
795
|
-
ORDER: ::Integer
|
|
796
|
-
|
|
797
|
-
# @private
|
|
798
|
-
DATATYPE: untyped
|
|
799
|
-
end
|
|
800
|
-
|
|
801
|
-
class Advmss < Attribute
|
|
802
|
-
TYPE: ::Integer
|
|
803
|
-
|
|
804
|
-
NAME: ::Symbol
|
|
805
|
-
|
|
806
|
-
# @private
|
|
807
|
-
ORDER: ::Integer
|
|
808
|
-
|
|
809
|
-
# @private
|
|
810
|
-
DATATYPE: untyped
|
|
811
|
-
end
|
|
534
|
+
# Dump route information.
|
|
535
|
+
class DoGetrouteReply < ::Nl::Message
|
|
536
|
+
TYPE: ::Integer
|
|
812
537
|
|
|
813
|
-
|
|
814
|
-
TYPE: ::Integer
|
|
538
|
+
FIXED_HEADER: untyped
|
|
815
539
|
|
|
816
|
-
|
|
540
|
+
ATTRIBUTE_SET: untyped
|
|
817
541
|
|
|
818
|
-
|
|
819
|
-
ORDER: ::Integer
|
|
542
|
+
ATTRIBUTES: untyped
|
|
820
543
|
|
|
821
|
-
|
|
822
|
-
DATATYPE: untyped
|
|
823
|
-
end
|
|
544
|
+
include ATTRIBUTE_SET::Definitions
|
|
824
545
|
|
|
825
|
-
|
|
826
|
-
TYPE: ::Integer
|
|
546
|
+
def initialize: (untyped rtm_family, untyped rtm_dst_len, untyped rtm_src_len, untyped rtm_tos, untyped rtm_table, untyped rtm_protocol, untyped rtm_scope, untyped rtm_type, untyped rtm_flags, ?untyped attributes) -> untyped
|
|
827
547
|
|
|
828
|
-
|
|
548
|
+
# @private
|
|
549
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
829
550
|
|
|
830
|
-
|
|
831
|
-
|
|
551
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
552
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
553
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
832
554
|
|
|
833
|
-
|
|
834
|
-
DATATYPE: untyped
|
|
835
|
-
end
|
|
555
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
836
556
|
|
|
837
|
-
|
|
838
|
-
|
|
557
|
+
# @rbs return: ::Integer
|
|
558
|
+
# @return [Integer]
|
|
559
|
+
def rtm_family: () -> ::Integer
|
|
839
560
|
|
|
840
|
-
|
|
561
|
+
# @rbs return: ::Integer
|
|
562
|
+
# @return [Integer]
|
|
563
|
+
def rtm_dst_len: () -> ::Integer
|
|
841
564
|
|
|
842
|
-
|
|
843
|
-
|
|
565
|
+
# @rbs return: ::Integer
|
|
566
|
+
# @return [Integer]
|
|
567
|
+
def rtm_src_len: () -> ::Integer
|
|
844
568
|
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
569
|
+
# @rbs return: ::Integer
|
|
570
|
+
# @return [Integer]
|
|
571
|
+
def rtm_tos: () -> ::Integer
|
|
848
572
|
|
|
849
|
-
|
|
850
|
-
|
|
573
|
+
# @rbs return: ::Integer
|
|
574
|
+
# @return [Integer]
|
|
575
|
+
def rtm_table: () -> ::Integer
|
|
851
576
|
|
|
852
|
-
|
|
577
|
+
# @rbs return: ::Integer
|
|
578
|
+
# @return [Integer]
|
|
579
|
+
def rtm_protocol: () -> ::Integer
|
|
853
580
|
|
|
854
|
-
|
|
855
|
-
|
|
581
|
+
# @rbs return: ::Integer
|
|
582
|
+
# @return [Integer]
|
|
583
|
+
def rtm_scope: () -> ::Integer
|
|
856
584
|
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
585
|
+
# @rbs return: ::Integer
|
|
586
|
+
# @return [Integer]
|
|
587
|
+
def rtm_type: () -> ::Integer
|
|
860
588
|
|
|
861
|
-
|
|
862
|
-
|
|
589
|
+
# @rbs return: ::Integer
|
|
590
|
+
# @return [Integer]
|
|
591
|
+
def rtm_flags: () -> ::Integer
|
|
863
592
|
|
|
864
|
-
|
|
593
|
+
# @rbs return: ::String
|
|
594
|
+
# @return [String]
|
|
595
|
+
def dst: () -> ::String
|
|
865
596
|
|
|
866
|
-
|
|
867
|
-
|
|
597
|
+
# @rbs return: ::String
|
|
598
|
+
# @return [String]
|
|
599
|
+
def src: () -> ::String
|
|
868
600
|
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
601
|
+
# @rbs return: ::Integer
|
|
602
|
+
# @return [Integer]
|
|
603
|
+
def iif: () -> ::Integer
|
|
872
604
|
|
|
873
|
-
|
|
874
|
-
|
|
605
|
+
# @rbs return: ::Integer
|
|
606
|
+
# @return [Integer]
|
|
607
|
+
def oif: () -> ::Integer
|
|
875
608
|
|
|
876
|
-
|
|
609
|
+
# @rbs return: ::String
|
|
610
|
+
# @return [String]
|
|
611
|
+
def gateway: () -> ::String
|
|
877
612
|
|
|
878
|
-
|
|
879
|
-
|
|
613
|
+
# @rbs return: ::Integer
|
|
614
|
+
# @return [Integer]
|
|
615
|
+
def priority: () -> ::Integer
|
|
880
616
|
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
617
|
+
# @rbs return: ::String
|
|
618
|
+
# @return [String]
|
|
619
|
+
def prefsrc: () -> ::String
|
|
884
620
|
|
|
885
|
-
|
|
886
|
-
|
|
621
|
+
# @rbs return: AttributeSets::Metrics
|
|
622
|
+
# @return [AttributeSets::Metrics]
|
|
623
|
+
def metrics: () -> AttributeSets::Metrics
|
|
887
624
|
|
|
888
|
-
|
|
625
|
+
# @rbs return: ::String
|
|
626
|
+
# @return [String]
|
|
627
|
+
def multipath: () -> ::String
|
|
889
628
|
|
|
890
|
-
|
|
891
|
-
|
|
629
|
+
# @rbs return: ::Integer
|
|
630
|
+
# @return [Integer]
|
|
631
|
+
def flow: () -> ::Integer
|
|
892
632
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
633
|
+
# @rbs return: Structs::RtaCacheinfo
|
|
634
|
+
# @return [Structs::RtaCacheinfo]
|
|
635
|
+
def cacheinfo: () -> Structs::RtaCacheinfo
|
|
896
636
|
|
|
897
|
-
|
|
898
|
-
|
|
637
|
+
# @rbs return: ::Integer
|
|
638
|
+
# @return [Integer]
|
|
639
|
+
def table: () -> ::Integer
|
|
899
640
|
|
|
900
|
-
|
|
641
|
+
# @rbs return: ::Integer
|
|
642
|
+
# @return [Integer]
|
|
643
|
+
def mark: () -> ::Integer
|
|
901
644
|
|
|
902
|
-
|
|
903
|
-
|
|
645
|
+
# @rbs return: ::String
|
|
646
|
+
# @return [String]
|
|
647
|
+
def mfc_stats: () -> ::String
|
|
904
648
|
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
649
|
+
# @rbs return: ::String
|
|
650
|
+
# @return [String]
|
|
651
|
+
def via: () -> ::String
|
|
908
652
|
|
|
909
|
-
|
|
910
|
-
|
|
653
|
+
# @rbs return: ::String
|
|
654
|
+
# @return [String]
|
|
655
|
+
def newdst: () -> ::String
|
|
911
656
|
|
|
912
|
-
|
|
657
|
+
# @rbs return: ::Integer
|
|
658
|
+
# @return [Integer]
|
|
659
|
+
def pref: () -> ::Integer
|
|
913
660
|
|
|
914
|
-
|
|
915
|
-
|
|
661
|
+
# @rbs return: ::Integer
|
|
662
|
+
# @return [Integer]
|
|
663
|
+
def encap_type: () -> ::Integer
|
|
916
664
|
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
665
|
+
# @rbs return: ::String
|
|
666
|
+
# @return [String]
|
|
667
|
+
def encap: () -> ::String
|
|
920
668
|
|
|
921
|
-
# @
|
|
922
|
-
|
|
669
|
+
# @rbs return: ::Integer
|
|
670
|
+
# @return [Integer]
|
|
671
|
+
def expires: () -> ::Integer
|
|
923
672
|
|
|
924
|
-
# @
|
|
925
|
-
|
|
673
|
+
# @rbs return: ::String
|
|
674
|
+
# @return [String]
|
|
675
|
+
def pad: () -> ::String
|
|
926
676
|
|
|
927
677
|
# @rbs return: ::Integer
|
|
928
678
|
# @return [Integer]
|
|
929
|
-
|
|
930
|
-
def lock: () -> ::Integer
|
|
679
|
+
def uid: () -> ::Integer
|
|
931
680
|
|
|
932
681
|
# @rbs return: ::Integer
|
|
933
682
|
# @return [Integer]
|
|
934
|
-
|
|
935
|
-
def mtu: () -> ::Integer
|
|
683
|
+
def ttl_propagate: () -> ::Integer
|
|
936
684
|
|
|
937
685
|
# @rbs return: ::Integer
|
|
938
686
|
# @return [Integer]
|
|
939
|
-
|
|
940
|
-
def window: () -> ::Integer
|
|
687
|
+
def ip_proto: () -> ::Integer
|
|
941
688
|
|
|
942
689
|
# @rbs return: ::Integer
|
|
943
690
|
# @return [Integer]
|
|
944
|
-
|
|
945
|
-
def rtt: () -> ::Integer
|
|
691
|
+
def sport: () -> ::Integer
|
|
946
692
|
|
|
947
693
|
# @rbs return: ::Integer
|
|
948
694
|
# @return [Integer]
|
|
949
|
-
|
|
950
|
-
def rttvar: () -> ::Integer
|
|
695
|
+
def dport: () -> ::Integer
|
|
951
696
|
|
|
952
697
|
# @rbs return: ::Integer
|
|
953
698
|
# @return [Integer]
|
|
954
|
-
|
|
955
|
-
def ssthresh: () -> ::Integer
|
|
699
|
+
def nh_id: () -> ::Integer
|
|
956
700
|
|
|
957
701
|
# @rbs return: ::Integer
|
|
958
702
|
# @return [Integer]
|
|
959
|
-
|
|
960
|
-
def cwnd: () -> ::Integer
|
|
703
|
+
def flowlabel: () -> ::Integer
|
|
961
704
|
|
|
705
|
+
# Emitted only on RTM_DELROUTE notifications, and only when the
|
|
706
|
+
# deletion path records a cause. An absent attribute means
|
|
707
|
+
# either an older kernel or a deletion path that does not
|
|
708
|
+
# record its cause, consumers must treat absent and unspec
|
|
709
|
+
# identically. Currently only IPv6 deletion paths record a
|
|
710
|
+
# cause. The attribute is notification-only, the kernel rejects
|
|
711
|
+
# it in requests.
|
|
712
|
+
#
|
|
713
|
+
#
|
|
714
|
+
# Known enum values are defined in {Enums::DelReason}.
|
|
962
715
|
# @rbs return: ::Integer
|
|
963
716
|
# @return [Integer]
|
|
964
|
-
|
|
965
|
-
|
|
717
|
+
def del_reason: () -> ::Integer
|
|
718
|
+
end
|
|
719
|
+
|
|
720
|
+
# Dump route information.
|
|
721
|
+
class DumpGetrouteRequest < ::Nl::Message
|
|
722
|
+
TYPE: ::Integer
|
|
723
|
+
|
|
724
|
+
FIXED_HEADER: untyped
|
|
725
|
+
|
|
726
|
+
ATTRIBUTE_SET: untyped
|
|
727
|
+
|
|
728
|
+
ATTRIBUTES: untyped
|
|
729
|
+
|
|
730
|
+
include ATTRIBUTE_SET::Definitions
|
|
731
|
+
|
|
732
|
+
def initialize: (untyped rtm_family, untyped rtm_dst_len, untyped rtm_src_len, untyped rtm_tos, untyped rtm_table, untyped rtm_protocol, untyped rtm_scope, untyped rtm_type, untyped rtm_flags, ?untyped attributes) -> untyped
|
|
733
|
+
|
|
734
|
+
# @private
|
|
735
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
736
|
+
|
|
737
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
738
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
739
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
740
|
+
|
|
741
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
966
742
|
|
|
967
743
|
# @rbs return: ::Integer
|
|
968
744
|
# @return [Integer]
|
|
969
|
-
|
|
970
|
-
def reordering: () -> ::Integer
|
|
745
|
+
def rtm_family: () -> ::Integer
|
|
971
746
|
|
|
972
747
|
# @rbs return: ::Integer
|
|
973
748
|
# @return [Integer]
|
|
974
|
-
|
|
975
|
-
def hoplimit: () -> ::Integer
|
|
749
|
+
def rtm_dst_len: () -> ::Integer
|
|
976
750
|
|
|
977
751
|
# @rbs return: ::Integer
|
|
978
752
|
# @return [Integer]
|
|
979
|
-
|
|
980
|
-
def initcwnd: () -> ::Integer
|
|
753
|
+
def rtm_src_len: () -> ::Integer
|
|
981
754
|
|
|
982
755
|
# @rbs return: ::Integer
|
|
983
756
|
# @return [Integer]
|
|
984
|
-
|
|
985
|
-
def features: () -> ::Integer
|
|
757
|
+
def rtm_tos: () -> ::Integer
|
|
986
758
|
|
|
987
759
|
# @rbs return: ::Integer
|
|
988
760
|
# @return [Integer]
|
|
989
|
-
|
|
990
|
-
def rto_min: () -> ::Integer
|
|
761
|
+
def rtm_table: () -> ::Integer
|
|
991
762
|
|
|
992
763
|
# @rbs return: ::Integer
|
|
993
764
|
# @return [Integer]
|
|
994
|
-
|
|
995
|
-
def initrwnd: () -> ::Integer
|
|
765
|
+
def rtm_protocol: () -> ::Integer
|
|
996
766
|
|
|
997
767
|
# @rbs return: ::Integer
|
|
998
768
|
# @return [Integer]
|
|
999
|
-
|
|
1000
|
-
def quickack: () -> ::Integer
|
|
1001
|
-
|
|
1002
|
-
# @rbs return: ::String
|
|
1003
|
-
# @return [String]
|
|
1004
|
-
# @see CcAlgo
|
|
1005
|
-
def cc_algo: () -> ::String
|
|
769
|
+
def rtm_scope: () -> ::Integer
|
|
1006
770
|
|
|
1007
771
|
# @rbs return: ::Integer
|
|
1008
772
|
# @return [Integer]
|
|
1009
|
-
|
|
1010
|
-
def fastopen_no_cookie: () -> ::Integer
|
|
1011
|
-
|
|
1012
|
-
# Looks up Attribute class by name.
|
|
1013
|
-
# @rbs name: Symbol
|
|
1014
|
-
# @rbs return: Attribute
|
|
1015
|
-
# @param [Symbol] name
|
|
1016
|
-
# @return [Attribute]
|
|
1017
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
773
|
+
def rtm_type: () -> ::Integer
|
|
1018
774
|
|
|
1019
|
-
#
|
|
1020
|
-
# @
|
|
1021
|
-
|
|
1022
|
-
# @param [Integer] type
|
|
1023
|
-
# @return [Attribute]
|
|
1024
|
-
def self.by_type: (Integer type) -> Attribute
|
|
775
|
+
# @rbs return: ::Integer
|
|
776
|
+
# @return [Integer]
|
|
777
|
+
def rtm_flags: () -> ::Integer
|
|
1025
778
|
end
|
|
1026
|
-
end
|
|
1027
779
|
|
|
1028
|
-
module Messages
|
|
1029
780
|
# Dump route information.
|
|
1030
|
-
class
|
|
781
|
+
class DumpGetrouteReply < ::Nl::Message
|
|
1031
782
|
TYPE: ::Integer
|
|
1032
783
|
|
|
1033
784
|
FIXED_HEADER: untyped
|
|
@@ -1036,6 +787,19 @@ module Nl
|
|
|
1036
787
|
|
|
1037
788
|
ATTRIBUTES: untyped
|
|
1038
789
|
|
|
790
|
+
include ATTRIBUTE_SET::Definitions
|
|
791
|
+
|
|
792
|
+
def initialize: (untyped rtm_family, untyped rtm_dst_len, untyped rtm_src_len, untyped rtm_tos, untyped rtm_table, untyped rtm_protocol, untyped rtm_scope, untyped rtm_type, untyped rtm_flags, ?untyped attributes) -> untyped
|
|
793
|
+
|
|
794
|
+
# @private
|
|
795
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
796
|
+
|
|
797
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
798
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
799
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
800
|
+
|
|
801
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
802
|
+
|
|
1039
803
|
# @rbs return: ::Integer
|
|
1040
804
|
# @return [Integer]
|
|
1041
805
|
def rtm_family: () -> ::Integer
|
|
@@ -1074,57 +838,133 @@ module Nl
|
|
|
1074
838
|
|
|
1075
839
|
# @rbs return: ::String
|
|
1076
840
|
# @return [String]
|
|
1077
|
-
# @see AttributeSets::RouteAttrs::Dst
|
|
1078
841
|
def dst: () -> ::String
|
|
1079
842
|
|
|
1080
843
|
# @rbs return: ::String
|
|
1081
844
|
# @return [String]
|
|
1082
|
-
# @see AttributeSets::RouteAttrs::Src
|
|
1083
845
|
def src: () -> ::String
|
|
1084
846
|
|
|
1085
847
|
# @rbs return: ::Integer
|
|
1086
848
|
# @return [Integer]
|
|
1087
|
-
# @see AttributeSets::RouteAttrs::Iif
|
|
1088
849
|
def iif: () -> ::Integer
|
|
1089
850
|
|
|
1090
851
|
# @rbs return: ::Integer
|
|
1091
852
|
# @return [Integer]
|
|
1092
|
-
# @see AttributeSets::RouteAttrs::Oif
|
|
1093
853
|
def oif: () -> ::Integer
|
|
1094
854
|
|
|
855
|
+
# @rbs return: ::String
|
|
856
|
+
# @return [String]
|
|
857
|
+
def gateway: () -> ::String
|
|
858
|
+
|
|
859
|
+
# @rbs return: ::Integer
|
|
860
|
+
# @return [Integer]
|
|
861
|
+
def priority: () -> ::Integer
|
|
862
|
+
|
|
863
|
+
# @rbs return: ::String
|
|
864
|
+
# @return [String]
|
|
865
|
+
def prefsrc: () -> ::String
|
|
866
|
+
|
|
867
|
+
# @rbs return: AttributeSets::Metrics
|
|
868
|
+
# @return [AttributeSets::Metrics]
|
|
869
|
+
def metrics: () -> AttributeSets::Metrics
|
|
870
|
+
|
|
871
|
+
# @rbs return: ::String
|
|
872
|
+
# @return [String]
|
|
873
|
+
def multipath: () -> ::String
|
|
874
|
+
|
|
875
|
+
# @rbs return: ::Integer
|
|
876
|
+
# @return [Integer]
|
|
877
|
+
def flow: () -> ::Integer
|
|
878
|
+
|
|
879
|
+
# @rbs return: Structs::RtaCacheinfo
|
|
880
|
+
# @return [Structs::RtaCacheinfo]
|
|
881
|
+
def cacheinfo: () -> Structs::RtaCacheinfo
|
|
882
|
+
|
|
883
|
+
# @rbs return: ::Integer
|
|
884
|
+
# @return [Integer]
|
|
885
|
+
def table: () -> ::Integer
|
|
886
|
+
|
|
1095
887
|
# @rbs return: ::Integer
|
|
1096
888
|
# @return [Integer]
|
|
1097
|
-
# @see AttributeSets::RouteAttrs::Mark
|
|
1098
889
|
def mark: () -> ::Integer
|
|
1099
890
|
|
|
891
|
+
# @rbs return: ::String
|
|
892
|
+
# @return [String]
|
|
893
|
+
def mfc_stats: () -> ::String
|
|
894
|
+
|
|
895
|
+
# @rbs return: ::String
|
|
896
|
+
# @return [String]
|
|
897
|
+
def via: () -> ::String
|
|
898
|
+
|
|
899
|
+
# @rbs return: ::String
|
|
900
|
+
# @return [String]
|
|
901
|
+
def newdst: () -> ::String
|
|
902
|
+
|
|
903
|
+
# @rbs return: ::Integer
|
|
904
|
+
# @return [Integer]
|
|
905
|
+
def pref: () -> ::Integer
|
|
906
|
+
|
|
907
|
+
# @rbs return: ::Integer
|
|
908
|
+
# @return [Integer]
|
|
909
|
+
def encap_type: () -> ::Integer
|
|
910
|
+
|
|
911
|
+
# @rbs return: ::String
|
|
912
|
+
# @return [String]
|
|
913
|
+
def encap: () -> ::String
|
|
914
|
+
|
|
915
|
+
# @rbs return: ::Integer
|
|
916
|
+
# @return [Integer]
|
|
917
|
+
def expires: () -> ::Integer
|
|
918
|
+
|
|
919
|
+
# @rbs return: ::String
|
|
920
|
+
# @return [String]
|
|
921
|
+
def pad: () -> ::String
|
|
922
|
+
|
|
1100
923
|
# @rbs return: ::Integer
|
|
1101
924
|
# @return [Integer]
|
|
1102
|
-
# @see AttributeSets::RouteAttrs::Uid
|
|
1103
925
|
def uid: () -> ::Integer
|
|
1104
926
|
|
|
1105
927
|
# @rbs return: ::Integer
|
|
1106
928
|
# @return [Integer]
|
|
1107
|
-
|
|
929
|
+
def ttl_propagate: () -> ::Integer
|
|
930
|
+
|
|
931
|
+
# @rbs return: ::Integer
|
|
932
|
+
# @return [Integer]
|
|
1108
933
|
def ip_proto: () -> ::Integer
|
|
1109
934
|
|
|
1110
935
|
# @rbs return: ::Integer
|
|
1111
936
|
# @return [Integer]
|
|
1112
|
-
# @see AttributeSets::RouteAttrs::Sport
|
|
1113
937
|
def sport: () -> ::Integer
|
|
1114
938
|
|
|
1115
939
|
# @rbs return: ::Integer
|
|
1116
940
|
# @return [Integer]
|
|
1117
|
-
# @see AttributeSets::RouteAttrs::Dport
|
|
1118
941
|
def dport: () -> ::Integer
|
|
1119
942
|
|
|
1120
943
|
# @rbs return: ::Integer
|
|
1121
944
|
# @return [Integer]
|
|
1122
|
-
|
|
945
|
+
def nh_id: () -> ::Integer
|
|
946
|
+
|
|
947
|
+
# @rbs return: ::Integer
|
|
948
|
+
# @return [Integer]
|
|
1123
949
|
def flowlabel: () -> ::Integer
|
|
950
|
+
|
|
951
|
+
# Emitted only on RTM_DELROUTE notifications, and only when the
|
|
952
|
+
# deletion path records a cause. An absent attribute means
|
|
953
|
+
# either an older kernel or a deletion path that does not
|
|
954
|
+
# record its cause, consumers must treat absent and unspec
|
|
955
|
+
# identically. Currently only IPv6 deletion paths record a
|
|
956
|
+
# cause. The attribute is notification-only, the kernel rejects
|
|
957
|
+
# it in requests.
|
|
958
|
+
#
|
|
959
|
+
#
|
|
960
|
+
# Known enum values are defined in {Enums::DelReason}.
|
|
961
|
+
# @rbs return: ::Integer
|
|
962
|
+
# @return [Integer]
|
|
963
|
+
def del_reason: () -> ::Integer
|
|
1124
964
|
end
|
|
1125
965
|
|
|
1126
|
-
#
|
|
1127
|
-
class
|
|
966
|
+
# Create a new route
|
|
967
|
+
class DoNewrouteRequest < ::Nl::Message
|
|
1128
968
|
TYPE: ::Integer
|
|
1129
969
|
|
|
1130
970
|
FIXED_HEADER: untyped
|
|
@@ -1133,6 +973,19 @@ module Nl
|
|
|
1133
973
|
|
|
1134
974
|
ATTRIBUTES: untyped
|
|
1135
975
|
|
|
976
|
+
include ATTRIBUTE_SET::Definitions
|
|
977
|
+
|
|
978
|
+
def initialize: (untyped rtm_family, untyped rtm_dst_len, untyped rtm_src_len, untyped rtm_tos, untyped rtm_table, untyped rtm_protocol, untyped rtm_scope, untyped rtm_type, untyped rtm_flags, ?untyped attributes) -> untyped
|
|
979
|
+
|
|
980
|
+
# @private
|
|
981
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
982
|
+
|
|
983
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
984
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
985
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
986
|
+
|
|
987
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
988
|
+
|
|
1136
989
|
# @rbs return: ::Integer
|
|
1137
990
|
# @return [Integer]
|
|
1138
991
|
def rtm_family: () -> ::Integer
|
|
@@ -1171,147 +1024,119 @@ module Nl
|
|
|
1171
1024
|
|
|
1172
1025
|
# @rbs return: ::String
|
|
1173
1026
|
# @return [String]
|
|
1174
|
-
# @see AttributeSets::RouteAttrs::Dst
|
|
1175
1027
|
def dst: () -> ::String
|
|
1176
1028
|
|
|
1177
1029
|
# @rbs return: ::String
|
|
1178
1030
|
# @return [String]
|
|
1179
|
-
# @see AttributeSets::RouteAttrs::Src
|
|
1180
1031
|
def src: () -> ::String
|
|
1181
1032
|
|
|
1182
1033
|
# @rbs return: ::Integer
|
|
1183
1034
|
# @return [Integer]
|
|
1184
|
-
# @see AttributeSets::RouteAttrs::Iif
|
|
1185
1035
|
def iif: () -> ::Integer
|
|
1186
1036
|
|
|
1187
1037
|
# @rbs return: ::Integer
|
|
1188
1038
|
# @return [Integer]
|
|
1189
|
-
# @see AttributeSets::RouteAttrs::Oif
|
|
1190
1039
|
def oif: () -> ::Integer
|
|
1191
1040
|
|
|
1192
1041
|
# @rbs return: ::String
|
|
1193
1042
|
# @return [String]
|
|
1194
|
-
# @see AttributeSets::RouteAttrs::Gateway
|
|
1195
1043
|
def gateway: () -> ::String
|
|
1196
1044
|
|
|
1197
1045
|
# @rbs return: ::Integer
|
|
1198
1046
|
# @return [Integer]
|
|
1199
|
-
# @see AttributeSets::RouteAttrs::Priority
|
|
1200
1047
|
def priority: () -> ::Integer
|
|
1201
1048
|
|
|
1202
1049
|
# @rbs return: ::String
|
|
1203
1050
|
# @return [String]
|
|
1204
|
-
# @see AttributeSets::RouteAttrs::Prefsrc
|
|
1205
1051
|
def prefsrc: () -> ::String
|
|
1206
1052
|
|
|
1207
1053
|
# @rbs return: AttributeSets::Metrics
|
|
1208
1054
|
# @return [AttributeSets::Metrics]
|
|
1209
|
-
# @see AttributeSets::RouteAttrs::Metrics
|
|
1210
1055
|
def metrics: () -> AttributeSets::Metrics
|
|
1211
1056
|
|
|
1212
1057
|
# @rbs return: ::String
|
|
1213
1058
|
# @return [String]
|
|
1214
|
-
# @see AttributeSets::RouteAttrs::Multipath
|
|
1215
1059
|
def multipath: () -> ::String
|
|
1216
1060
|
|
|
1217
1061
|
# @rbs return: ::Integer
|
|
1218
1062
|
# @return [Integer]
|
|
1219
|
-
# @see AttributeSets::RouteAttrs::Flow
|
|
1220
1063
|
def flow: () -> ::Integer
|
|
1221
1064
|
|
|
1222
1065
|
# @rbs return: Structs::RtaCacheinfo
|
|
1223
1066
|
# @return [Structs::RtaCacheinfo]
|
|
1224
|
-
# @see AttributeSets::RouteAttrs::Cacheinfo
|
|
1225
1067
|
def cacheinfo: () -> Structs::RtaCacheinfo
|
|
1226
1068
|
|
|
1227
1069
|
# @rbs return: ::Integer
|
|
1228
1070
|
# @return [Integer]
|
|
1229
|
-
# @see AttributeSets::RouteAttrs::Table
|
|
1230
1071
|
def table: () -> ::Integer
|
|
1231
1072
|
|
|
1232
1073
|
# @rbs return: ::Integer
|
|
1233
1074
|
# @return [Integer]
|
|
1234
|
-
# @see AttributeSets::RouteAttrs::Mark
|
|
1235
1075
|
def mark: () -> ::Integer
|
|
1236
1076
|
|
|
1237
1077
|
# @rbs return: ::String
|
|
1238
1078
|
# @return [String]
|
|
1239
|
-
# @see AttributeSets::RouteAttrs::MfcStats
|
|
1240
1079
|
def mfc_stats: () -> ::String
|
|
1241
1080
|
|
|
1242
1081
|
# @rbs return: ::String
|
|
1243
1082
|
# @return [String]
|
|
1244
|
-
# @see AttributeSets::RouteAttrs::Via
|
|
1245
1083
|
def via: () -> ::String
|
|
1246
1084
|
|
|
1247
1085
|
# @rbs return: ::String
|
|
1248
1086
|
# @return [String]
|
|
1249
|
-
# @see AttributeSets::RouteAttrs::Newdst
|
|
1250
1087
|
def newdst: () -> ::String
|
|
1251
1088
|
|
|
1252
1089
|
# @rbs return: ::Integer
|
|
1253
1090
|
# @return [Integer]
|
|
1254
|
-
# @see AttributeSets::RouteAttrs::Pref
|
|
1255
1091
|
def pref: () -> ::Integer
|
|
1256
1092
|
|
|
1257
1093
|
# @rbs return: ::Integer
|
|
1258
1094
|
# @return [Integer]
|
|
1259
|
-
# @see AttributeSets::RouteAttrs::EncapType
|
|
1260
1095
|
def encap_type: () -> ::Integer
|
|
1261
1096
|
|
|
1262
1097
|
# @rbs return: ::String
|
|
1263
1098
|
# @return [String]
|
|
1264
|
-
# @see AttributeSets::RouteAttrs::Encap
|
|
1265
1099
|
def encap: () -> ::String
|
|
1266
1100
|
|
|
1267
1101
|
# @rbs return: ::Integer
|
|
1268
1102
|
# @return [Integer]
|
|
1269
|
-
# @see AttributeSets::RouteAttrs::Expires
|
|
1270
1103
|
def expires: () -> ::Integer
|
|
1271
1104
|
|
|
1272
1105
|
# @rbs return: ::String
|
|
1273
1106
|
# @return [String]
|
|
1274
|
-
# @see AttributeSets::RouteAttrs::Pad
|
|
1275
1107
|
def pad: () -> ::String
|
|
1276
1108
|
|
|
1277
1109
|
# @rbs return: ::Integer
|
|
1278
1110
|
# @return [Integer]
|
|
1279
|
-
# @see AttributeSets::RouteAttrs::Uid
|
|
1280
1111
|
def uid: () -> ::Integer
|
|
1281
1112
|
|
|
1282
1113
|
# @rbs return: ::Integer
|
|
1283
1114
|
# @return [Integer]
|
|
1284
|
-
# @see AttributeSets::RouteAttrs::TtlPropagate
|
|
1285
1115
|
def ttl_propagate: () -> ::Integer
|
|
1286
1116
|
|
|
1287
1117
|
# @rbs return: ::Integer
|
|
1288
1118
|
# @return [Integer]
|
|
1289
|
-
# @see AttributeSets::RouteAttrs::IpProto
|
|
1290
1119
|
def ip_proto: () -> ::Integer
|
|
1291
1120
|
|
|
1292
1121
|
# @rbs return: ::Integer
|
|
1293
1122
|
# @return [Integer]
|
|
1294
|
-
# @see AttributeSets::RouteAttrs::Sport
|
|
1295
1123
|
def sport: () -> ::Integer
|
|
1296
1124
|
|
|
1297
1125
|
# @rbs return: ::Integer
|
|
1298
1126
|
# @return [Integer]
|
|
1299
|
-
# @see AttributeSets::RouteAttrs::Dport
|
|
1300
1127
|
def dport: () -> ::Integer
|
|
1301
1128
|
|
|
1302
1129
|
# @rbs return: ::Integer
|
|
1303
1130
|
# @return [Integer]
|
|
1304
|
-
# @see AttributeSets::RouteAttrs::NhId
|
|
1305
1131
|
def nh_id: () -> ::Integer
|
|
1306
1132
|
|
|
1307
1133
|
# @rbs return: ::Integer
|
|
1308
1134
|
# @return [Integer]
|
|
1309
|
-
# @see AttributeSets::RouteAttrs::Flowlabel
|
|
1310
1135
|
def flowlabel: () -> ::Integer
|
|
1311
1136
|
end
|
|
1312
1137
|
|
|
1313
|
-
#
|
|
1314
|
-
class
|
|
1138
|
+
# Delete an existing route
|
|
1139
|
+
class DoDelrouteRequest < ::Nl::Message
|
|
1315
1140
|
TYPE: ::Integer
|
|
1316
1141
|
|
|
1317
1142
|
FIXED_HEADER: untyped
|
|
@@ -1320,52 +1145,18 @@ module Nl
|
|
|
1320
1145
|
|
|
1321
1146
|
ATTRIBUTES: untyped
|
|
1322
1147
|
|
|
1323
|
-
|
|
1324
|
-
# @return [Integer]
|
|
1325
|
-
def rtm_family: () -> ::Integer
|
|
1326
|
-
|
|
1327
|
-
# @rbs return: ::Integer
|
|
1328
|
-
# @return [Integer]
|
|
1329
|
-
def rtm_dst_len: () -> ::Integer
|
|
1330
|
-
|
|
1331
|
-
# @rbs return: ::Integer
|
|
1332
|
-
# @return [Integer]
|
|
1333
|
-
def rtm_src_len: () -> ::Integer
|
|
1334
|
-
|
|
1335
|
-
# @rbs return: ::Integer
|
|
1336
|
-
# @return [Integer]
|
|
1337
|
-
def rtm_tos: () -> ::Integer
|
|
1338
|
-
|
|
1339
|
-
# @rbs return: ::Integer
|
|
1340
|
-
# @return [Integer]
|
|
1341
|
-
def rtm_table: () -> ::Integer
|
|
1342
|
-
|
|
1343
|
-
# @rbs return: ::Integer
|
|
1344
|
-
# @return [Integer]
|
|
1345
|
-
def rtm_protocol: () -> ::Integer
|
|
1346
|
-
|
|
1347
|
-
# @rbs return: ::Integer
|
|
1348
|
-
# @return [Integer]
|
|
1349
|
-
def rtm_scope: () -> ::Integer
|
|
1350
|
-
|
|
1351
|
-
# @rbs return: ::Integer
|
|
1352
|
-
# @return [Integer]
|
|
1353
|
-
def rtm_type: () -> ::Integer
|
|
1354
|
-
|
|
1355
|
-
# @rbs return: ::Integer
|
|
1356
|
-
# @return [Integer]
|
|
1357
|
-
def rtm_flags: () -> ::Integer
|
|
1358
|
-
end
|
|
1148
|
+
include ATTRIBUTE_SET::Definitions
|
|
1359
1149
|
|
|
1360
|
-
|
|
1361
|
-
class DumpGetrouteReply < ::Nl::Raw::Message
|
|
1362
|
-
TYPE: ::Integer
|
|
1150
|
+
def initialize: (untyped rtm_family, untyped rtm_dst_len, untyped rtm_src_len, untyped rtm_tos, untyped rtm_table, untyped rtm_protocol, untyped rtm_scope, untyped rtm_type, untyped rtm_flags, ?untyped attributes) -> untyped
|
|
1363
1151
|
|
|
1364
|
-
|
|
1152
|
+
# @private
|
|
1153
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1365
1154
|
|
|
1366
|
-
|
|
1155
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1156
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1157
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1367
1158
|
|
|
1368
|
-
|
|
1159
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1369
1160
|
|
|
1370
1161
|
# @rbs return: ::Integer
|
|
1371
1162
|
# @return [Integer]
|
|
@@ -1405,147 +1196,121 @@ module Nl
|
|
|
1405
1196
|
|
|
1406
1197
|
# @rbs return: ::String
|
|
1407
1198
|
# @return [String]
|
|
1408
|
-
# @see AttributeSets::RouteAttrs::Dst
|
|
1409
1199
|
def dst: () -> ::String
|
|
1410
1200
|
|
|
1411
1201
|
# @rbs return: ::String
|
|
1412
1202
|
# @return [String]
|
|
1413
|
-
# @see AttributeSets::RouteAttrs::Src
|
|
1414
1203
|
def src: () -> ::String
|
|
1415
1204
|
|
|
1416
1205
|
# @rbs return: ::Integer
|
|
1417
1206
|
# @return [Integer]
|
|
1418
|
-
# @see AttributeSets::RouteAttrs::Iif
|
|
1419
1207
|
def iif: () -> ::Integer
|
|
1420
1208
|
|
|
1421
1209
|
# @rbs return: ::Integer
|
|
1422
1210
|
# @return [Integer]
|
|
1423
|
-
# @see AttributeSets::RouteAttrs::Oif
|
|
1424
1211
|
def oif: () -> ::Integer
|
|
1425
1212
|
|
|
1426
1213
|
# @rbs return: ::String
|
|
1427
1214
|
# @return [String]
|
|
1428
|
-
# @see AttributeSets::RouteAttrs::Gateway
|
|
1429
1215
|
def gateway: () -> ::String
|
|
1430
1216
|
|
|
1431
1217
|
# @rbs return: ::Integer
|
|
1432
1218
|
# @return [Integer]
|
|
1433
|
-
# @see AttributeSets::RouteAttrs::Priority
|
|
1434
1219
|
def priority: () -> ::Integer
|
|
1435
1220
|
|
|
1436
1221
|
# @rbs return: ::String
|
|
1437
1222
|
# @return [String]
|
|
1438
|
-
# @see AttributeSets::RouteAttrs::Prefsrc
|
|
1439
1223
|
def prefsrc: () -> ::String
|
|
1440
1224
|
|
|
1441
1225
|
# @rbs return: AttributeSets::Metrics
|
|
1442
1226
|
# @return [AttributeSets::Metrics]
|
|
1443
|
-
# @see AttributeSets::RouteAttrs::Metrics
|
|
1444
1227
|
def metrics: () -> AttributeSets::Metrics
|
|
1445
1228
|
|
|
1446
1229
|
# @rbs return: ::String
|
|
1447
1230
|
# @return [String]
|
|
1448
|
-
# @see AttributeSets::RouteAttrs::Multipath
|
|
1449
1231
|
def multipath: () -> ::String
|
|
1450
1232
|
|
|
1451
1233
|
# @rbs return: ::Integer
|
|
1452
1234
|
# @return [Integer]
|
|
1453
|
-
# @see AttributeSets::RouteAttrs::Flow
|
|
1454
1235
|
def flow: () -> ::Integer
|
|
1455
1236
|
|
|
1456
1237
|
# @rbs return: Structs::RtaCacheinfo
|
|
1457
1238
|
# @return [Structs::RtaCacheinfo]
|
|
1458
|
-
# @see AttributeSets::RouteAttrs::Cacheinfo
|
|
1459
1239
|
def cacheinfo: () -> Structs::RtaCacheinfo
|
|
1460
1240
|
|
|
1461
1241
|
# @rbs return: ::Integer
|
|
1462
1242
|
# @return [Integer]
|
|
1463
|
-
# @see AttributeSets::RouteAttrs::Table
|
|
1464
1243
|
def table: () -> ::Integer
|
|
1465
1244
|
|
|
1466
1245
|
# @rbs return: ::Integer
|
|
1467
1246
|
# @return [Integer]
|
|
1468
|
-
# @see AttributeSets::RouteAttrs::Mark
|
|
1469
1247
|
def mark: () -> ::Integer
|
|
1470
1248
|
|
|
1471
1249
|
# @rbs return: ::String
|
|
1472
1250
|
# @return [String]
|
|
1473
|
-
# @see AttributeSets::RouteAttrs::MfcStats
|
|
1474
1251
|
def mfc_stats: () -> ::String
|
|
1475
1252
|
|
|
1476
1253
|
# @rbs return: ::String
|
|
1477
1254
|
# @return [String]
|
|
1478
|
-
# @see AttributeSets::RouteAttrs::Via
|
|
1479
1255
|
def via: () -> ::String
|
|
1480
1256
|
|
|
1481
1257
|
# @rbs return: ::String
|
|
1482
1258
|
# @return [String]
|
|
1483
|
-
# @see AttributeSets::RouteAttrs::Newdst
|
|
1484
1259
|
def newdst: () -> ::String
|
|
1485
1260
|
|
|
1486
1261
|
# @rbs return: ::Integer
|
|
1487
1262
|
# @return [Integer]
|
|
1488
|
-
# @see AttributeSets::RouteAttrs::Pref
|
|
1489
1263
|
def pref: () -> ::Integer
|
|
1490
1264
|
|
|
1491
1265
|
# @rbs return: ::Integer
|
|
1492
1266
|
# @return [Integer]
|
|
1493
|
-
# @see AttributeSets::RouteAttrs::EncapType
|
|
1494
1267
|
def encap_type: () -> ::Integer
|
|
1495
1268
|
|
|
1496
1269
|
# @rbs return: ::String
|
|
1497
1270
|
# @return [String]
|
|
1498
|
-
# @see AttributeSets::RouteAttrs::Encap
|
|
1499
1271
|
def encap: () -> ::String
|
|
1500
1272
|
|
|
1501
1273
|
# @rbs return: ::Integer
|
|
1502
1274
|
# @return [Integer]
|
|
1503
|
-
# @see AttributeSets::RouteAttrs::Expires
|
|
1504
1275
|
def expires: () -> ::Integer
|
|
1505
1276
|
|
|
1506
1277
|
# @rbs return: ::String
|
|
1507
1278
|
# @return [String]
|
|
1508
|
-
# @see AttributeSets::RouteAttrs::Pad
|
|
1509
1279
|
def pad: () -> ::String
|
|
1510
1280
|
|
|
1511
1281
|
# @rbs return: ::Integer
|
|
1512
1282
|
# @return [Integer]
|
|
1513
|
-
# @see AttributeSets::RouteAttrs::Uid
|
|
1514
1283
|
def uid: () -> ::Integer
|
|
1515
1284
|
|
|
1516
1285
|
# @rbs return: ::Integer
|
|
1517
1286
|
# @return [Integer]
|
|
1518
|
-
# @see AttributeSets::RouteAttrs::TtlPropagate
|
|
1519
1287
|
def ttl_propagate: () -> ::Integer
|
|
1520
1288
|
|
|
1521
1289
|
# @rbs return: ::Integer
|
|
1522
1290
|
# @return [Integer]
|
|
1523
|
-
# @see AttributeSets::RouteAttrs::IpProto
|
|
1524
1291
|
def ip_proto: () -> ::Integer
|
|
1525
1292
|
|
|
1526
1293
|
# @rbs return: ::Integer
|
|
1527
1294
|
# @return [Integer]
|
|
1528
|
-
# @see AttributeSets::RouteAttrs::Sport
|
|
1529
1295
|
def sport: () -> ::Integer
|
|
1530
1296
|
|
|
1531
1297
|
# @rbs return: ::Integer
|
|
1532
1298
|
# @return [Integer]
|
|
1533
|
-
# @see AttributeSets::RouteAttrs::Dport
|
|
1534
1299
|
def dport: () -> ::Integer
|
|
1535
1300
|
|
|
1536
1301
|
# @rbs return: ::Integer
|
|
1537
1302
|
# @return [Integer]
|
|
1538
|
-
# @see AttributeSets::RouteAttrs::NhId
|
|
1539
1303
|
def nh_id: () -> ::Integer
|
|
1540
1304
|
|
|
1541
1305
|
# @rbs return: ::Integer
|
|
1542
1306
|
# @return [Integer]
|
|
1543
|
-
# @see AttributeSets::RouteAttrs::Flowlabel
|
|
1544
1307
|
def flowlabel: () -> ::Integer
|
|
1545
1308
|
end
|
|
1309
|
+
end
|
|
1546
1310
|
|
|
1547
|
-
|
|
1548
|
-
|
|
1311
|
+
module Notifications
|
|
1312
|
+
# Notification about a created route.
|
|
1313
|
+
class NewrouteNtf < ::Nl::Message
|
|
1549
1314
|
TYPE: ::Integer
|
|
1550
1315
|
|
|
1551
1316
|
FIXED_HEADER: untyped
|
|
@@ -1554,6 +1319,19 @@ module Nl
|
|
|
1554
1319
|
|
|
1555
1320
|
ATTRIBUTES: untyped
|
|
1556
1321
|
|
|
1322
|
+
include ATTRIBUTE_SET::Definitions
|
|
1323
|
+
|
|
1324
|
+
def initialize: (untyped rtm_family, untyped rtm_dst_len, untyped rtm_src_len, untyped rtm_tos, untyped rtm_table, untyped rtm_protocol, untyped rtm_scope, untyped rtm_type, untyped rtm_flags, ?untyped attributes) -> untyped
|
|
1325
|
+
|
|
1326
|
+
# @private
|
|
1327
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1328
|
+
|
|
1329
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1330
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1331
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1332
|
+
|
|
1333
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1334
|
+
|
|
1557
1335
|
# @rbs return: ::Integer
|
|
1558
1336
|
# @return [Integer]
|
|
1559
1337
|
def rtm_family: () -> ::Integer
|
|
@@ -1592,147 +1370,133 @@ module Nl
|
|
|
1592
1370
|
|
|
1593
1371
|
# @rbs return: ::String
|
|
1594
1372
|
# @return [String]
|
|
1595
|
-
# @see AttributeSets::RouteAttrs::Dst
|
|
1596
1373
|
def dst: () -> ::String
|
|
1597
1374
|
|
|
1598
1375
|
# @rbs return: ::String
|
|
1599
1376
|
# @return [String]
|
|
1600
|
-
# @see AttributeSets::RouteAttrs::Src
|
|
1601
1377
|
def src: () -> ::String
|
|
1602
1378
|
|
|
1603
1379
|
# @rbs return: ::Integer
|
|
1604
1380
|
# @return [Integer]
|
|
1605
|
-
# @see AttributeSets::RouteAttrs::Iif
|
|
1606
1381
|
def iif: () -> ::Integer
|
|
1607
1382
|
|
|
1608
1383
|
# @rbs return: ::Integer
|
|
1609
1384
|
# @return [Integer]
|
|
1610
|
-
# @see AttributeSets::RouteAttrs::Oif
|
|
1611
1385
|
def oif: () -> ::Integer
|
|
1612
1386
|
|
|
1613
1387
|
# @rbs return: ::String
|
|
1614
1388
|
# @return [String]
|
|
1615
|
-
# @see AttributeSets::RouteAttrs::Gateway
|
|
1616
1389
|
def gateway: () -> ::String
|
|
1617
1390
|
|
|
1618
1391
|
# @rbs return: ::Integer
|
|
1619
1392
|
# @return [Integer]
|
|
1620
|
-
# @see AttributeSets::RouteAttrs::Priority
|
|
1621
1393
|
def priority: () -> ::Integer
|
|
1622
1394
|
|
|
1623
1395
|
# @rbs return: ::String
|
|
1624
1396
|
# @return [String]
|
|
1625
|
-
# @see AttributeSets::RouteAttrs::Prefsrc
|
|
1626
1397
|
def prefsrc: () -> ::String
|
|
1627
1398
|
|
|
1628
1399
|
# @rbs return: AttributeSets::Metrics
|
|
1629
1400
|
# @return [AttributeSets::Metrics]
|
|
1630
|
-
# @see AttributeSets::RouteAttrs::Metrics
|
|
1631
1401
|
def metrics: () -> AttributeSets::Metrics
|
|
1632
1402
|
|
|
1633
1403
|
# @rbs return: ::String
|
|
1634
1404
|
# @return [String]
|
|
1635
|
-
# @see AttributeSets::RouteAttrs::Multipath
|
|
1636
1405
|
def multipath: () -> ::String
|
|
1637
1406
|
|
|
1638
1407
|
# @rbs return: ::Integer
|
|
1639
1408
|
# @return [Integer]
|
|
1640
|
-
# @see AttributeSets::RouteAttrs::Flow
|
|
1641
1409
|
def flow: () -> ::Integer
|
|
1642
1410
|
|
|
1643
1411
|
# @rbs return: Structs::RtaCacheinfo
|
|
1644
1412
|
# @return [Structs::RtaCacheinfo]
|
|
1645
|
-
# @see AttributeSets::RouteAttrs::Cacheinfo
|
|
1646
1413
|
def cacheinfo: () -> Structs::RtaCacheinfo
|
|
1647
1414
|
|
|
1648
1415
|
# @rbs return: ::Integer
|
|
1649
1416
|
# @return [Integer]
|
|
1650
|
-
# @see AttributeSets::RouteAttrs::Table
|
|
1651
1417
|
def table: () -> ::Integer
|
|
1652
1418
|
|
|
1653
1419
|
# @rbs return: ::Integer
|
|
1654
1420
|
# @return [Integer]
|
|
1655
|
-
# @see AttributeSets::RouteAttrs::Mark
|
|
1656
1421
|
def mark: () -> ::Integer
|
|
1657
1422
|
|
|
1658
1423
|
# @rbs return: ::String
|
|
1659
1424
|
# @return [String]
|
|
1660
|
-
# @see AttributeSets::RouteAttrs::MfcStats
|
|
1661
1425
|
def mfc_stats: () -> ::String
|
|
1662
1426
|
|
|
1663
1427
|
# @rbs return: ::String
|
|
1664
1428
|
# @return [String]
|
|
1665
|
-
# @see AttributeSets::RouteAttrs::Via
|
|
1666
1429
|
def via: () -> ::String
|
|
1667
1430
|
|
|
1668
1431
|
# @rbs return: ::String
|
|
1669
1432
|
# @return [String]
|
|
1670
|
-
# @see AttributeSets::RouteAttrs::Newdst
|
|
1671
1433
|
def newdst: () -> ::String
|
|
1672
1434
|
|
|
1673
1435
|
# @rbs return: ::Integer
|
|
1674
1436
|
# @return [Integer]
|
|
1675
|
-
# @see AttributeSets::RouteAttrs::Pref
|
|
1676
1437
|
def pref: () -> ::Integer
|
|
1677
1438
|
|
|
1678
1439
|
# @rbs return: ::Integer
|
|
1679
1440
|
# @return [Integer]
|
|
1680
|
-
# @see AttributeSets::RouteAttrs::EncapType
|
|
1681
1441
|
def encap_type: () -> ::Integer
|
|
1682
1442
|
|
|
1683
1443
|
# @rbs return: ::String
|
|
1684
1444
|
# @return [String]
|
|
1685
|
-
# @see AttributeSets::RouteAttrs::Encap
|
|
1686
1445
|
def encap: () -> ::String
|
|
1687
1446
|
|
|
1688
1447
|
# @rbs return: ::Integer
|
|
1689
1448
|
# @return [Integer]
|
|
1690
|
-
# @see AttributeSets::RouteAttrs::Expires
|
|
1691
1449
|
def expires: () -> ::Integer
|
|
1692
1450
|
|
|
1693
1451
|
# @rbs return: ::String
|
|
1694
1452
|
# @return [String]
|
|
1695
|
-
# @see AttributeSets::RouteAttrs::Pad
|
|
1696
1453
|
def pad: () -> ::String
|
|
1697
1454
|
|
|
1698
1455
|
# @rbs return: ::Integer
|
|
1699
1456
|
# @return [Integer]
|
|
1700
|
-
# @see AttributeSets::RouteAttrs::Uid
|
|
1701
1457
|
def uid: () -> ::Integer
|
|
1702
1458
|
|
|
1703
1459
|
# @rbs return: ::Integer
|
|
1704
1460
|
# @return [Integer]
|
|
1705
|
-
# @see AttributeSets::RouteAttrs::TtlPropagate
|
|
1706
1461
|
def ttl_propagate: () -> ::Integer
|
|
1707
1462
|
|
|
1708
1463
|
# @rbs return: ::Integer
|
|
1709
1464
|
# @return [Integer]
|
|
1710
|
-
# @see AttributeSets::RouteAttrs::IpProto
|
|
1711
1465
|
def ip_proto: () -> ::Integer
|
|
1712
1466
|
|
|
1713
1467
|
# @rbs return: ::Integer
|
|
1714
1468
|
# @return [Integer]
|
|
1715
|
-
# @see AttributeSets::RouteAttrs::Sport
|
|
1716
1469
|
def sport: () -> ::Integer
|
|
1717
1470
|
|
|
1718
1471
|
# @rbs return: ::Integer
|
|
1719
1472
|
# @return [Integer]
|
|
1720
|
-
# @see AttributeSets::RouteAttrs::Dport
|
|
1721
1473
|
def dport: () -> ::Integer
|
|
1722
1474
|
|
|
1723
1475
|
# @rbs return: ::Integer
|
|
1724
1476
|
# @return [Integer]
|
|
1725
|
-
# @see AttributeSets::RouteAttrs::NhId
|
|
1726
1477
|
def nh_id: () -> ::Integer
|
|
1727
1478
|
|
|
1728
1479
|
# @rbs return: ::Integer
|
|
1729
1480
|
# @return [Integer]
|
|
1730
|
-
# @see AttributeSets::RouteAttrs::Flowlabel
|
|
1731
1481
|
def flowlabel: () -> ::Integer
|
|
1482
|
+
|
|
1483
|
+
# Emitted only on RTM_DELROUTE notifications, and only when the
|
|
1484
|
+
# deletion path records a cause. An absent attribute means
|
|
1485
|
+
# either an older kernel or a deletion path that does not
|
|
1486
|
+
# record its cause, consumers must treat absent and unspec
|
|
1487
|
+
# identically. Currently only IPv6 deletion paths record a
|
|
1488
|
+
# cause. The attribute is notification-only, the kernel rejects
|
|
1489
|
+
# it in requests.
|
|
1490
|
+
#
|
|
1491
|
+
#
|
|
1492
|
+
# Known enum values are defined in {Enums::DelReason}.
|
|
1493
|
+
# @rbs return: ::Integer
|
|
1494
|
+
# @return [Integer]
|
|
1495
|
+
def del_reason: () -> ::Integer
|
|
1732
1496
|
end
|
|
1733
1497
|
|
|
1734
|
-
#
|
|
1735
|
-
class
|
|
1498
|
+
# Notification about a deleted route.
|
|
1499
|
+
class DelrouteNtf < ::Nl::Message
|
|
1736
1500
|
TYPE: ::Integer
|
|
1737
1501
|
|
|
1738
1502
|
FIXED_HEADER: untyped
|
|
@@ -1741,6 +1505,19 @@ module Nl
|
|
|
1741
1505
|
|
|
1742
1506
|
ATTRIBUTES: untyped
|
|
1743
1507
|
|
|
1508
|
+
include ATTRIBUTE_SET::Definitions
|
|
1509
|
+
|
|
1510
|
+
def initialize: (untyped rtm_family, untyped rtm_dst_len, untyped rtm_src_len, untyped rtm_tos, untyped rtm_table, untyped rtm_protocol, untyped rtm_scope, untyped rtm_type, untyped rtm_flags, ?untyped attributes) -> untyped
|
|
1511
|
+
|
|
1512
|
+
# @private
|
|
1513
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1514
|
+
|
|
1515
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1516
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1517
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1518
|
+
|
|
1519
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1520
|
+
|
|
1744
1521
|
# @rbs return: ::Integer
|
|
1745
1522
|
# @return [Integer]
|
|
1746
1523
|
def rtm_family: () -> ::Integer
|
|
@@ -1779,147 +1556,130 @@ module Nl
|
|
|
1779
1556
|
|
|
1780
1557
|
# @rbs return: ::String
|
|
1781
1558
|
# @return [String]
|
|
1782
|
-
# @see AttributeSets::RouteAttrs::Dst
|
|
1783
1559
|
def dst: () -> ::String
|
|
1784
1560
|
|
|
1785
1561
|
# @rbs return: ::String
|
|
1786
1562
|
# @return [String]
|
|
1787
|
-
# @see AttributeSets::RouteAttrs::Src
|
|
1788
1563
|
def src: () -> ::String
|
|
1789
1564
|
|
|
1790
1565
|
# @rbs return: ::Integer
|
|
1791
1566
|
# @return [Integer]
|
|
1792
|
-
# @see AttributeSets::RouteAttrs::Iif
|
|
1793
1567
|
def iif: () -> ::Integer
|
|
1794
1568
|
|
|
1795
1569
|
# @rbs return: ::Integer
|
|
1796
1570
|
# @return [Integer]
|
|
1797
|
-
# @see AttributeSets::RouteAttrs::Oif
|
|
1798
1571
|
def oif: () -> ::Integer
|
|
1799
1572
|
|
|
1800
1573
|
# @rbs return: ::String
|
|
1801
1574
|
# @return [String]
|
|
1802
|
-
# @see AttributeSets::RouteAttrs::Gateway
|
|
1803
1575
|
def gateway: () -> ::String
|
|
1804
1576
|
|
|
1805
1577
|
# @rbs return: ::Integer
|
|
1806
1578
|
# @return [Integer]
|
|
1807
|
-
# @see AttributeSets::RouteAttrs::Priority
|
|
1808
1579
|
def priority: () -> ::Integer
|
|
1809
1580
|
|
|
1810
1581
|
# @rbs return: ::String
|
|
1811
1582
|
# @return [String]
|
|
1812
|
-
# @see AttributeSets::RouteAttrs::Prefsrc
|
|
1813
1583
|
def prefsrc: () -> ::String
|
|
1814
1584
|
|
|
1815
1585
|
# @rbs return: AttributeSets::Metrics
|
|
1816
1586
|
# @return [AttributeSets::Metrics]
|
|
1817
|
-
# @see AttributeSets::RouteAttrs::Metrics
|
|
1818
1587
|
def metrics: () -> AttributeSets::Metrics
|
|
1819
1588
|
|
|
1820
1589
|
# @rbs return: ::String
|
|
1821
1590
|
# @return [String]
|
|
1822
|
-
# @see AttributeSets::RouteAttrs::Multipath
|
|
1823
1591
|
def multipath: () -> ::String
|
|
1824
1592
|
|
|
1825
1593
|
# @rbs return: ::Integer
|
|
1826
1594
|
# @return [Integer]
|
|
1827
|
-
# @see AttributeSets::RouteAttrs::Flow
|
|
1828
1595
|
def flow: () -> ::Integer
|
|
1829
1596
|
|
|
1830
1597
|
# @rbs return: Structs::RtaCacheinfo
|
|
1831
1598
|
# @return [Structs::RtaCacheinfo]
|
|
1832
|
-
# @see AttributeSets::RouteAttrs::Cacheinfo
|
|
1833
1599
|
def cacheinfo: () -> Structs::RtaCacheinfo
|
|
1834
1600
|
|
|
1835
1601
|
# @rbs return: ::Integer
|
|
1836
1602
|
# @return [Integer]
|
|
1837
|
-
# @see AttributeSets::RouteAttrs::Table
|
|
1838
1603
|
def table: () -> ::Integer
|
|
1839
1604
|
|
|
1840
1605
|
# @rbs return: ::Integer
|
|
1841
1606
|
# @return [Integer]
|
|
1842
|
-
# @see AttributeSets::RouteAttrs::Mark
|
|
1843
1607
|
def mark: () -> ::Integer
|
|
1844
1608
|
|
|
1845
1609
|
# @rbs return: ::String
|
|
1846
1610
|
# @return [String]
|
|
1847
|
-
# @see AttributeSets::RouteAttrs::MfcStats
|
|
1848
1611
|
def mfc_stats: () -> ::String
|
|
1849
1612
|
|
|
1850
1613
|
# @rbs return: ::String
|
|
1851
1614
|
# @return [String]
|
|
1852
|
-
# @see AttributeSets::RouteAttrs::Via
|
|
1853
1615
|
def via: () -> ::String
|
|
1854
1616
|
|
|
1855
1617
|
# @rbs return: ::String
|
|
1856
1618
|
# @return [String]
|
|
1857
|
-
# @see AttributeSets::RouteAttrs::Newdst
|
|
1858
1619
|
def newdst: () -> ::String
|
|
1859
1620
|
|
|
1860
1621
|
# @rbs return: ::Integer
|
|
1861
1622
|
# @return [Integer]
|
|
1862
|
-
# @see AttributeSets::RouteAttrs::Pref
|
|
1863
1623
|
def pref: () -> ::Integer
|
|
1864
1624
|
|
|
1865
1625
|
# @rbs return: ::Integer
|
|
1866
1626
|
# @return [Integer]
|
|
1867
|
-
# @see AttributeSets::RouteAttrs::EncapType
|
|
1868
1627
|
def encap_type: () -> ::Integer
|
|
1869
1628
|
|
|
1870
1629
|
# @rbs return: ::String
|
|
1871
1630
|
# @return [String]
|
|
1872
|
-
# @see AttributeSets::RouteAttrs::Encap
|
|
1873
1631
|
def encap: () -> ::String
|
|
1874
1632
|
|
|
1875
1633
|
# @rbs return: ::Integer
|
|
1876
1634
|
# @return [Integer]
|
|
1877
|
-
# @see AttributeSets::RouteAttrs::Expires
|
|
1878
1635
|
def expires: () -> ::Integer
|
|
1879
1636
|
|
|
1880
1637
|
# @rbs return: ::String
|
|
1881
1638
|
# @return [String]
|
|
1882
|
-
# @see AttributeSets::RouteAttrs::Pad
|
|
1883
1639
|
def pad: () -> ::String
|
|
1884
1640
|
|
|
1885
1641
|
# @rbs return: ::Integer
|
|
1886
1642
|
# @return [Integer]
|
|
1887
|
-
# @see AttributeSets::RouteAttrs::Uid
|
|
1888
1643
|
def uid: () -> ::Integer
|
|
1889
1644
|
|
|
1890
1645
|
# @rbs return: ::Integer
|
|
1891
1646
|
# @return [Integer]
|
|
1892
|
-
# @see AttributeSets::RouteAttrs::TtlPropagate
|
|
1893
1647
|
def ttl_propagate: () -> ::Integer
|
|
1894
1648
|
|
|
1895
1649
|
# @rbs return: ::Integer
|
|
1896
1650
|
# @return [Integer]
|
|
1897
|
-
# @see AttributeSets::RouteAttrs::IpProto
|
|
1898
1651
|
def ip_proto: () -> ::Integer
|
|
1899
1652
|
|
|
1900
1653
|
# @rbs return: ::Integer
|
|
1901
1654
|
# @return [Integer]
|
|
1902
|
-
# @see AttributeSets::RouteAttrs::Sport
|
|
1903
1655
|
def sport: () -> ::Integer
|
|
1904
1656
|
|
|
1905
1657
|
# @rbs return: ::Integer
|
|
1906
1658
|
# @return [Integer]
|
|
1907
|
-
# @see AttributeSets::RouteAttrs::Dport
|
|
1908
1659
|
def dport: () -> ::Integer
|
|
1909
1660
|
|
|
1910
1661
|
# @rbs return: ::Integer
|
|
1911
1662
|
# @return [Integer]
|
|
1912
|
-
# @see AttributeSets::RouteAttrs::NhId
|
|
1913
1663
|
def nh_id: () -> ::Integer
|
|
1914
1664
|
|
|
1915
1665
|
# @rbs return: ::Integer
|
|
1916
1666
|
# @return [Integer]
|
|
1917
|
-
# @see AttributeSets::RouteAttrs::Flowlabel
|
|
1918
1667
|
def flowlabel: () -> ::Integer
|
|
1919
|
-
end
|
|
1920
|
-
end
|
|
1921
1668
|
|
|
1922
|
-
|
|
1669
|
+
# Emitted only on RTM_DELROUTE notifications, and only when the
|
|
1670
|
+
# deletion path records a cause. An absent attribute means
|
|
1671
|
+
# either an older kernel or a deletion path that does not
|
|
1672
|
+
# record its cause, consumers must treat absent and unspec
|
|
1673
|
+
# identically. Currently only IPv6 deletion paths record a
|
|
1674
|
+
# cause. The attribute is notification-only, the kernel rejects
|
|
1675
|
+
# it in requests.
|
|
1676
|
+
#
|
|
1677
|
+
#
|
|
1678
|
+
# Known enum values are defined in {Enums::DelReason}.
|
|
1679
|
+
# @rbs return: ::Integer
|
|
1680
|
+
# @return [Integer]
|
|
1681
|
+
def del_reason: () -> ::Integer
|
|
1682
|
+
end
|
|
1923
1683
|
end
|
|
1924
1684
|
|
|
1925
1685
|
# @private
|
|
@@ -2213,6 +1973,16 @@ module Nl
|
|
|
2213
1973
|
# @param [::Integer, nil] stream_capacity
|
|
2214
1974
|
# @return [AsyncOperations]
|
|
2215
1975
|
def async: (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
1976
|
+
|
|
1977
|
+
# @rbs (*(:rtnlgrp_ipv4_route | :rtnlgrp_ipv6_route) groups) -> self
|
|
1978
|
+
# @param [Array<:rtnlgrp_ipv4_route, :rtnlgrp_ipv6_route>] groups
|
|
1979
|
+
# @return [self]
|
|
1980
|
+
def subscribe: (*:rtnlgrp_ipv4_route | :rtnlgrp_ipv6_route groups) -> self
|
|
1981
|
+
|
|
1982
|
+
# @rbs (*(:rtnlgrp_ipv4_route | :rtnlgrp_ipv6_route) groups) -> self
|
|
1983
|
+
# @param [Array<:rtnlgrp_ipv4_route, :rtnlgrp_ipv6_route>] groups
|
|
1984
|
+
# @return [self]
|
|
1985
|
+
def unsubscribe: (*:rtnlgrp_ipv4_route | :rtnlgrp_ipv6_route groups) -> self
|
|
2216
1986
|
end
|
|
2217
1987
|
end
|
|
2218
1988
|
end
|