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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/NLSPEC_VERSION +1 -1
  4. data/generated/nl/linux/binder.rb +103 -187
  5. data/generated/nl/linux/conntrack.rb +1053 -1649
  6. data/generated/nl/linux/dev_energymodel.rb +303 -265
  7. data/generated/nl/linux/devlink.rb +4904 -5576
  8. data/generated/nl/linux/dpll.rb +1097 -1467
  9. data/generated/nl/linux/drm_ras.rb +235 -195
  10. data/generated/nl/linux/ethtool.rb +6652 -7415
  11. data/generated/nl/linux/fou.rb +234 -255
  12. data/generated/nl/linux/handshake.rb +208 -280
  13. data/generated/nl/linux/lockd.rb +99 -73
  14. data/generated/nl/linux/mptcp_pm.rb +589 -687
  15. data/generated/nl/linux/net_shaper.rb +520 -615
  16. data/generated/nl/linux/netdev.rb +1640 -1987
  17. data/generated/nl/linux/nfsd.rb +1341 -1215
  18. data/generated/nl/linux/nftables.rb +5143 -4870
  19. data/generated/nl/linux/nl80211.rb +2542 -6316
  20. data/generated/nl/linux/nlctrl.rb +338 -483
  21. data/generated/nl/linux/ovpn.rb +1006 -1522
  22. data/generated/nl/linux/ovs_datapath.rb +291 -186
  23. data/generated/nl/linux/ovs_flow.rb +1393 -2065
  24. data/generated/nl/linux/ovs_packet.rb +186 -223
  25. data/generated/nl/linux/ovs_vport.rb +328 -285
  26. data/generated/nl/linux/psp.rb +812 -717
  27. data/generated/nl/linux/rt_addr.rb +513 -243
  28. data/generated/nl/linux/rt_link.rb +4504 -7238
  29. data/generated/nl/linux/rt_neigh.rb +935 -847
  30. data/generated/nl/linux/rt_route.rb +1198 -871
  31. data/generated/nl/linux/rt_rule.rb +680 -659
  32. data/generated/nl/linux/sunrpc_cache.rb +323 -321
  33. data/generated/nl/linux/tc.rb +9058 -10454
  34. data/generated/nl/linux/tcp_metrics.rb +258 -367
  35. data/generated/nl/linux/team.rb +327 -345
  36. data/generated/nl/linux/wireguard.rb +270 -434
  37. data/lib/nl/linux/nlctrl_resolver.rb +1 -1
  38. data/lib/nl/linux/version.rb +1 -1
  39. data/linux/conntrack.yaml +18 -3
  40. data/linux/devlink.yaml +26 -4
  41. data/linux/dpll.yaml +19 -0
  42. data/linux/netdev.yaml +21 -0
  43. data/linux/nfsd.yaml +111 -0
  44. data/linux/nl80211.yaml +2 -2
  45. data/linux/rt-addr.yaml +4 -0
  46. data/linux/rt-link.yaml +7 -0
  47. data/linux/rt-neigh.yaml +3 -0
  48. data/linux/rt-route.yaml +83 -2
  49. data/sig/generated/nl/linux/binder.rbs +77 -220
  50. data/sig/generated/nl/linux/conntrack.rbs +770 -1954
  51. data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
  52. data/sig/generated/nl/linux/devlink.rbs +3318 -6068
  53. data/sig/generated/nl/linux/dpll.rbs +791 -1589
  54. data/sig/generated/nl/linux/drm_ras.rbs +160 -208
  55. data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
  56. data/sig/generated/nl/linux/fou.rbs +139 -254
  57. data/sig/generated/nl/linux/handshake.rbs +144 -319
  58. data/sig/generated/nl/linux/lockd.rbs +64 -74
  59. data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
  60. data/sig/generated/nl/linux/net_shaper.rbs +351 -644
  61. data/sig/generated/nl/linux/netdev.rbs +1151 -2146
  62. data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
  63. data/sig/generated/nl/linux/nftables.rbs +2907 -5030
  64. data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
  65. data/sig/generated/nl/linux/nlctrl.rbs +220 -544
  66. data/sig/generated/nl/linux/ovpn.rbs +835 -1859
  67. data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
  68. data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
  69. data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
  70. data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
  71. data/sig/generated/nl/linux/psp.rbs +550 -741
  72. data/sig/generated/nl/linux/rt_addr.rbs +188 -226
  73. data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
  74. data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
  75. data/sig/generated/nl/linux/rt_route.rbs +632 -862
  76. data/sig/generated/nl/linux/rt_rule.rbs +217 -639
  77. data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
  78. data/sig/generated/nl/linux/tc.rbs +6199 -13391
  79. data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
  80. data/sig/generated/nl/linux/team.rbs +232 -391
  81. data/sig/generated/nl/linux/wireguard.rbs +197 -502
  82. metadata +6 -6
@@ -55,704 +55,275 @@ module Nl
55
55
 
56
56
  module AttributeSets
57
57
  class AssocDevInfo < ::Nl::AttributeSet
58
- # Abstract class
59
- class Attribute < ::Nl::AttributeSet::Attribute
58
+ module Definitions
59
+ # ifindex of an associated network device.
60
+ # @rbs return: ::Integer
61
+ # @return [Integer]
62
+ def ifindex: () -> ::Integer
63
+
64
+ # Network namespace ID of the associated device.
65
+ # @rbs return: ::Integer
66
+ # @return [Integer]
67
+ def nsid: () -> ::Integer
60
68
  end
61
69
 
62
- # ifindex of an associated network device.
63
- class Ifindex < Attribute
64
- TYPE: ::Integer
70
+ include Definitions
65
71
 
66
- NAME: ::Symbol
67
-
68
- # @private
69
- ORDER: ::Integer
70
-
71
- # @private
72
- DATATYPE: untyped
73
- end
74
-
75
- # Network namespace ID of the associated device.
76
- class Nsid < Attribute
77
- TYPE: ::Integer
78
-
79
- NAME: ::Symbol
80
-
81
- # @private
82
- ORDER: ::Integer
83
-
84
- # @private
85
- DATATYPE: untyped
86
- end
87
-
88
- # @private
89
- BY_NAME: Hash[::Symbol, Attribute]
90
-
91
- # @private
92
- BY_TYPE: Hash[::Integer, Attribute]
93
-
94
- # ifindex of an associated network device.
95
- # @rbs return: ::Integer
96
- # @return [Integer]
97
- # @see Ifindex
98
- def ifindex: () -> ::Integer
99
-
100
- # Network namespace ID of the associated device.
101
- # @rbs return: ::Integer
102
- # @return [Integer]
103
- # @see Nsid
104
- def nsid: () -> ::Integer
105
-
106
- # Looks up Attribute class by name.
107
- # @rbs name: Symbol
108
- # @rbs return: Attribute
109
- # @param [Symbol] name
110
- # @return [Attribute]
111
- def self.by_name: (Symbol name) -> Attribute
112
-
113
- # Looks up Attribute class by type value.
114
- # @rbs type: Integer
115
- # @rbs return: Attribute
116
- # @param [Integer] type
117
- # @return [Attribute]
118
- def self.by_type: (Integer type) -> Attribute
72
+ # Decodes attributes from the decoder into a new attribute set.
73
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
74
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
119
75
  end
120
76
 
121
77
  class Dev < ::Nl::AttributeSet
122
- # Abstract class
123
- class Attribute < ::Nl::AttributeSet::Attribute
124
- end
125
-
126
- # PSP device ID.
127
- class Id < Attribute
128
- TYPE: ::Integer
129
-
130
- NAME: ::Symbol
131
-
132
- # @private
133
- ORDER: ::Integer
134
-
135
- # @private
136
- DATATYPE: untyped
137
- end
138
-
139
- # ifindex of the main netdevice linked to the PSP device,
140
- # or the ifindex to associate with the PSP device.
141
- class Ifindex < Attribute
142
- TYPE: ::Integer
143
-
144
- NAME: ::Symbol
145
-
146
- # @private
147
- ORDER: ::Integer
148
-
149
- # @private
150
- DATATYPE: untyped
151
- end
152
-
153
- # Bitmask of PSP versions supported by the device.
154
- #
155
- # Known flags are defined in {Flags::Version}.
156
- class PspVersionsCap < Attribute
157
- TYPE: ::Integer
158
-
159
- NAME: ::Symbol
160
-
161
- # @private
162
- ORDER: ::Integer
163
-
164
- # @private
165
- DATATYPE: untyped
166
- end
167
-
168
- # Bitmask of currently enabled (accepted on Rx) PSP versions.
169
- #
170
- # Known flags are defined in {Flags::Version}.
171
- class PspVersionsEna < Attribute
172
- TYPE: ::Integer
173
-
174
- NAME: ::Symbol
175
-
176
- # @private
177
- ORDER: ::Integer
178
-
179
- # @private
180
- DATATYPE: untyped
181
- end
182
-
183
- # List of associated virtual devices.
184
- class AssocList < Attribute
185
- TYPE: ::Integer
186
-
187
- NAME: ::Symbol
188
-
189
- # @private
190
- MULTI: bool
191
-
192
- # @private
193
- ORDER: ::Integer
194
- end
195
-
196
- # Network namespace ID for the device to associate/disassociate.
197
- # Optional for dev-assoc and dev-disassoc; if not present, the
198
- # device is looked up in the caller's network namespace.
199
- class Nsid < Attribute
200
- TYPE: ::Integer
201
-
202
- NAME: ::Symbol
203
-
204
- # @private
205
- ORDER: ::Integer
206
-
207
- # @private
208
- DATATYPE: untyped
209
- end
210
-
211
- # Flag indicating the PSP device is an associated device from a
212
- # different network namespace.
213
- # Present when in associated namespace, absent when in primary/host
214
- # namespace.
215
- class ByAssociation < Attribute
216
- TYPE: ::Integer
217
-
218
- NAME: ::Symbol
219
-
220
- # @private
221
- ORDER: ::Integer
222
-
223
- # @private
224
- DATATYPE: untyped
78
+ module Definitions
79
+ # PSP device ID.
80
+ # @rbs return: ::Integer
81
+ # @return [Integer]
82
+ def id: () -> ::Integer
83
+
84
+ # ifindex of the main netdevice linked to the PSP device,
85
+ # or the ifindex to associate with the PSP device.
86
+ # @rbs return: ::Integer
87
+ # @return [Integer]
88
+ def ifindex: () -> ::Integer
89
+
90
+ # Bitmask of PSP versions supported by the device.
91
+ #
92
+ # Known flags are defined in {Flags::Version}.
93
+ # @rbs return: ::Integer
94
+ # @return [Integer]
95
+ def psp_versions_cap: () -> ::Integer
96
+
97
+ # Bitmask of currently enabled (accepted on Rx) PSP versions.
98
+ #
99
+ # Known flags are defined in {Flags::Version}.
100
+ # @rbs return: ::Integer
101
+ # @return [Integer]
102
+ def psp_versions_ena: () -> ::Integer
103
+
104
+ # List of associated virtual devices.
105
+ # @rbs return: ::Array[AttributeSets::AssocDevInfo]
106
+ # @return [Array<AttributeSets::AssocDevInfo>]
107
+ def assoc_list: () -> ::Array[AttributeSets::AssocDevInfo]
108
+
109
+ # Network namespace ID for the device to associate/disassociate.
110
+ # Optional for dev-assoc and dev-disassoc; if not present, the
111
+ # device is looked up in the caller's network namespace.
112
+ # @rbs return: ::Integer
113
+ # @return [Integer]
114
+ def nsid: () -> ::Integer
115
+
116
+ # Flag indicating the PSP device is an associated device from a
117
+ # different network namespace.
118
+ # Present when in associated namespace, absent when in primary/host
119
+ # namespace.
120
+ # @rbs return: ::Integer
121
+ # @return [Integer]
122
+ def by_association: () -> ::Integer
225
123
  end
226
124
 
227
- # @private
228
- BY_NAME: Hash[::Symbol, Attribute]
229
-
230
- # @private
231
- BY_TYPE: Hash[::Integer, Attribute]
232
-
233
- # PSP device ID.
234
- # @rbs return: ::Integer
235
- # @return [Integer]
236
- # @see Id
237
- def id: () -> ::Integer
238
-
239
- # ifindex of the main netdevice linked to the PSP device,
240
- # or the ifindex to associate with the PSP device.
241
- # @rbs return: ::Integer
242
- # @return [Integer]
243
- # @see Ifindex
244
- def ifindex: () -> ::Integer
245
-
246
- # Bitmask of PSP versions supported by the device.
247
- #
248
- # Known flags are defined in {Flags::Version}.
249
- # @rbs return: ::Integer
250
- # @return [Integer]
251
- # @see PspVersionsCap
252
- def psp_versions_cap: () -> ::Integer
253
-
254
- # Bitmask of currently enabled (accepted on Rx) PSP versions.
255
- #
256
- # Known flags are defined in {Flags::Version}.
257
- # @rbs return: ::Integer
258
- # @return [Integer]
259
- # @see PspVersionsEna
260
- def psp_versions_ena: () -> ::Integer
261
-
262
- # List of associated virtual devices.
263
- # @rbs return: ::Array[AttributeSets::AssocDevInfo]
264
- # @return [Array<AttributeSets::AssocDevInfo>]
265
- # @see AssocList
266
- def assoc_list: () -> ::Array[AttributeSets::AssocDevInfo]
267
-
268
- # Network namespace ID for the device to associate/disassociate.
269
- # Optional for dev-assoc and dev-disassoc; if not present, the
270
- # device is looked up in the caller's network namespace.
271
- # @rbs return: ::Integer
272
- # @return [Integer]
273
- # @see Nsid
274
- def nsid: () -> ::Integer
275
-
276
- # Flag indicating the PSP device is an associated device from a
277
- # different network namespace.
278
- # Present when in associated namespace, absent when in primary/host
279
- # namespace.
280
- # @rbs return: ::Integer
281
- # @return [Integer]
282
- # @see ByAssociation
283
- def by_association: () -> ::Integer
125
+ include Definitions
284
126
 
285
- # Looks up Attribute class by name.
286
- # @rbs name: Symbol
287
- # @rbs return: Attribute
288
- # @param [Symbol] name
289
- # @return [Attribute]
290
- def self.by_name: (Symbol name) -> Attribute
291
-
292
- # Looks up Attribute class by type value.
293
- # @rbs type: Integer
294
- # @rbs return: Attribute
295
- # @param [Integer] type
296
- # @return [Attribute]
297
- def self.by_type: (Integer type) -> Attribute
127
+ # Decodes attributes from the decoder into a new attribute set.
128
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
129
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
298
130
  end
299
131
 
300
132
  class Assoc < ::Nl::AttributeSet
301
- # Abstract class
302
- class Attribute < ::Nl::AttributeSet::Attribute
133
+ module Definitions
134
+ # PSP device ID.
135
+ # @rbs return: ::Integer
136
+ # @return [Integer]
137
+ def dev_id: () -> ::Integer
138
+
139
+ # PSP versions (AEAD and protocol version) used by this association,
140
+ # dictates the size of the key.
141
+ #
142
+ #
143
+ # Known enum values are defined in {Enums::Version}.
144
+ # @rbs return: ::Integer
145
+ # @return [Integer]
146
+ def version: () -> ::Integer
147
+
148
+ # @rbs return: AttributeSets::Keys
149
+ # @return [AttributeSets::Keys]
150
+ def rx_key: () -> AttributeSets::Keys
151
+
152
+ # @rbs return: AttributeSets::Keys
153
+ # @return [AttributeSets::Keys]
154
+ def tx_key: () -> AttributeSets::Keys
155
+
156
+ # Sockets which should be bound to the association immediately.
157
+ # @rbs return: ::Integer
158
+ # @return [Integer]
159
+ def sock_fd: () -> ::Integer
303
160
  end
304
161
 
305
- # PSP device ID.
306
- class DevId < Attribute
307
- TYPE: ::Integer
162
+ include Definitions
308
163
 
309
- NAME: ::Symbol
310
-
311
- # @private
312
- ORDER: ::Integer
313
-
314
- # @private
315
- DATATYPE: untyped
316
- end
317
-
318
- # PSP versions (AEAD and protocol version) used by this association,
319
- # dictates the size of the key.
320
- #
321
- #
322
- # Known enum values are defined in {Enums::Version}.
323
- class Version < Attribute
324
- TYPE: ::Integer
325
-
326
- NAME: ::Symbol
327
-
328
- # @private
329
- ORDER: ::Integer
330
-
331
- # @private
332
- DATATYPE: untyped
333
- end
334
-
335
- class RxKey < Attribute
336
- TYPE: ::Integer
337
-
338
- NAME: ::Symbol
339
-
340
- # @private
341
- ORDER: ::Integer
342
- end
343
-
344
- class TxKey < Attribute
345
- TYPE: ::Integer
346
-
347
- NAME: ::Symbol
348
-
349
- # @private
350
- ORDER: ::Integer
351
- end
352
-
353
- # Sockets which should be bound to the association immediately.
354
- class SockFd < Attribute
355
- TYPE: ::Integer
356
-
357
- NAME: ::Symbol
358
-
359
- # @private
360
- ORDER: ::Integer
361
-
362
- # @private
363
- DATATYPE: untyped
364
- end
365
-
366
- # @private
367
- BY_NAME: Hash[::Symbol, Attribute]
368
-
369
- # @private
370
- BY_TYPE: Hash[::Integer, Attribute]
371
-
372
- # PSP device ID.
373
- # @rbs return: ::Integer
374
- # @return [Integer]
375
- # @see DevId
376
- def dev_id: () -> ::Integer
377
-
378
- # PSP versions (AEAD and protocol version) used by this association,
379
- # dictates the size of the key.
380
- #
381
- #
382
- # Known enum values are defined in {Enums::Version}.
383
- # @rbs return: ::Integer
384
- # @return [Integer]
385
- # @see Version
386
- def version: () -> ::Integer
387
-
388
- # @rbs return: AttributeSets::Keys
389
- # @return [AttributeSets::Keys]
390
- # @see RxKey
391
- def rx_key: () -> AttributeSets::Keys
392
-
393
- # @rbs return: AttributeSets::Keys
394
- # @return [AttributeSets::Keys]
395
- # @see TxKey
396
- def tx_key: () -> AttributeSets::Keys
397
-
398
- # Sockets which should be bound to the association immediately.
399
- # @rbs return: ::Integer
400
- # @return [Integer]
401
- # @see SockFd
402
- def sock_fd: () -> ::Integer
403
-
404
- # Looks up Attribute class by name.
405
- # @rbs name: Symbol
406
- # @rbs return: Attribute
407
- # @param [Symbol] name
408
- # @return [Attribute]
409
- def self.by_name: (Symbol name) -> Attribute
410
-
411
- # Looks up Attribute class by type value.
412
- # @rbs type: Integer
413
- # @rbs return: Attribute
414
- # @param [Integer] type
415
- # @return [Attribute]
416
- def self.by_type: (Integer type) -> Attribute
164
+ # Decodes attributes from the decoder into a new attribute set.
165
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
166
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
417
167
  end
418
168
 
419
169
  class Keys < ::Nl::AttributeSet
420
- # Abstract class
421
- class Attribute < ::Nl::AttributeSet::Attribute
422
- end
423
-
424
- class Key < Attribute
425
- TYPE: ::Integer
426
-
427
- NAME: ::Symbol
428
-
429
- # @private
430
- ORDER: ::Integer
431
-
432
- # @private
433
- DATATYPE: untyped
434
- end
435
-
436
- # Security Parameters Index (SPI) of the association.
437
- class Spi < Attribute
438
- TYPE: ::Integer
439
-
440
- NAME: ::Symbol
441
-
442
- # @private
443
- ORDER: ::Integer
444
-
445
- # @private
446
- DATATYPE: untyped
447
- end
448
-
449
- # @private
450
- BY_NAME: Hash[::Symbol, Attribute]
451
-
452
- # @private
453
- BY_TYPE: Hash[::Integer, Attribute]
454
-
455
- # @rbs return: ::String
456
- # @return [String]
457
- # @see Key
458
- def key: () -> ::String
459
-
460
- # Security Parameters Index (SPI) of the association.
461
- # @rbs return: ::Integer
462
- # @return [Integer]
463
- # @see Spi
464
- def spi: () -> ::Integer
465
-
466
- # Looks up Attribute class by name.
467
- # @rbs name: Symbol
468
- # @rbs return: Attribute
469
- # @param [Symbol] name
470
- # @return [Attribute]
471
- def self.by_name: (Symbol name) -> Attribute
472
-
473
- # Looks up Attribute class by type value.
474
- # @rbs type: Integer
475
- # @rbs return: Attribute
476
- # @param [Integer] type
477
- # @return [Attribute]
478
- def self.by_type: (Integer type) -> Attribute
479
- end
480
-
481
- class Stats < ::Nl::AttributeSet
482
- # Abstract class
483
- class Attribute < ::Nl::AttributeSet::Attribute
484
- end
485
-
486
- # PSP device ID.
487
- class DevId < Attribute
488
- TYPE: ::Integer
489
-
490
- NAME: ::Symbol
491
-
492
- # @private
493
- ORDER: ::Integer
494
-
495
- # @private
496
- DATATYPE: untyped
497
- end
498
-
499
- # Number of key rotations during the lifetime of the device.
500
- # Kernel statistic.
501
- class KeyRotations < Attribute
502
- TYPE: ::Integer
503
-
504
- NAME: ::Symbol
505
-
506
- # @private
507
- ORDER: ::Integer
508
-
509
- # @private
510
- DATATYPE: untyped
511
- end
512
-
513
- # Number of times a socket's Rx got shut down due to using
514
- # a key which went stale (fully rotated out).
515
- # Kernel statistic.
516
- class StaleEvents < Attribute
517
- TYPE: ::Integer
518
-
519
- NAME: ::Symbol
520
-
521
- # @private
522
- ORDER: ::Integer
523
-
524
- # @private
525
- DATATYPE: untyped
526
- end
527
-
528
- # Number of successfully processed and authenticated PSP packets.
529
- # Device statistic (from the PSP spec).
530
- class RxPackets < Attribute
531
- TYPE: ::Integer
532
-
533
- NAME: ::Symbol
534
-
535
- # @private
536
- ORDER: ::Integer
537
-
538
- # @private
539
- DATATYPE: untyped
540
- end
541
-
542
- # Number of successfully authenticated PSP bytes received, counting from
543
- # the first byte after the IV through the last byte of payload.
544
- # The fixed initial portion of the PSP header (16 bytes)
545
- # and the PSP trailer/ICV (16 bytes) are not included in this count.
546
- # Device statistic (from the PSP spec).
547
- class RxBytes < Attribute
548
- TYPE: ::Integer
549
-
550
- NAME: ::Symbol
551
-
552
- # @private
553
- ORDER: ::Integer
554
-
555
- # @private
556
- DATATYPE: untyped
557
- end
558
-
559
- # Number of received PSP packets with unsuccessful authentication.
560
- # Device statistic (from the PSP spec).
561
- class RxAuthFail < Attribute
562
- TYPE: ::Integer
170
+ module Definitions
171
+ # @rbs return: ::String
172
+ # @return [String]
173
+ def key: () -> ::String
174
+
175
+ # Security Parameters Index (SPI) of the association.
176
+ # @rbs return: ::Integer
177
+ # @return [Integer]
178
+ def spi: () -> ::Integer
179
+ end
563
180
 
564
- NAME: ::Symbol
181
+ include Definitions
565
182
 
566
- # @private
567
- ORDER: ::Integer
183
+ # Decodes attributes from the decoder into a new attribute set.
184
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
185
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
186
+ end
568
187
 
569
- # @private
570
- DATATYPE: untyped
188
+ class Stats < ::Nl::AttributeSet
189
+ module Definitions
190
+ # PSP device ID.
191
+ # @rbs return: ::Integer
192
+ # @return [Integer]
193
+ def dev_id: () -> ::Integer
194
+
195
+ # Number of key rotations during the lifetime of the device.
196
+ # Kernel statistic.
197
+ # @rbs return: ::Integer
198
+ # @return [Integer]
199
+ def key_rotations: () -> ::Integer
200
+
201
+ # Number of times a socket's Rx got shut down due to using
202
+ # a key which went stale (fully rotated out).
203
+ # Kernel statistic.
204
+ # @rbs return: ::Integer
205
+ # @return [Integer]
206
+ def stale_events: () -> ::Integer
207
+
208
+ # Number of successfully processed and authenticated PSP packets.
209
+ # Device statistic (from the PSP spec).
210
+ # @rbs return: ::Integer
211
+ # @return [Integer]
212
+ def rx_packets: () -> ::Integer
213
+
214
+ # Number of successfully authenticated PSP bytes received, counting from
215
+ # the first byte after the IV through the last byte of payload.
216
+ # The fixed initial portion of the PSP header (16 bytes)
217
+ # and the PSP trailer/ICV (16 bytes) are not included in this count.
218
+ # Device statistic (from the PSP spec).
219
+ # @rbs return: ::Integer
220
+ # @return [Integer]
221
+ def rx_bytes: () -> ::Integer
222
+
223
+ # Number of received PSP packets with unsuccessful authentication.
224
+ # Device statistic (from the PSP spec).
225
+ # @rbs return: ::Integer
226
+ # @return [Integer]
227
+ def rx_auth_fail: () -> ::Integer
228
+
229
+ # Number of received PSP packets with length/framing errors.
230
+ # Device statistic (from the PSP spec).
231
+ # @rbs return: ::Integer
232
+ # @return [Integer]
233
+ def rx_error: () -> ::Integer
234
+
235
+ # Number of received PSP packets with miscellaneous errors
236
+ # (invalid master key indicated by SPI, unsupported version, etc.)
237
+ # Device statistic (from the PSP spec).
238
+ # @rbs return: ::Integer
239
+ # @return [Integer]
240
+ def rx_bad: () -> ::Integer
241
+
242
+ # Number of successfully processed PSP packets for transmission.
243
+ # Device statistic (from the PSP spec).
244
+ # @rbs return: ::Integer
245
+ # @return [Integer]
246
+ def tx_packets: () -> ::Integer
247
+
248
+ # Number of successfully processed PSP bytes for transmit, counting from
249
+ # the first byte after the IV through the last byte of payload.
250
+ # The fixed initial portion of the PSP header (16 bytes)
251
+ # and the PSP trailer/ICV (16 bytes) are not included in this count.
252
+ # Device statistic (from the PSP spec).
253
+ # @rbs return: ::Integer
254
+ # @return [Integer]
255
+ def tx_bytes: () -> ::Integer
256
+
257
+ # Number of PSP packets for transmission with errors.
258
+ # Device statistic (from the PSP spec).
259
+ # @rbs return: ::Integer
260
+ # @return [Integer]
261
+ def tx_error: () -> ::Integer
571
262
  end
572
263
 
573
- # Number of received PSP packets with length/framing errors.
574
- # Device statistic (from the PSP spec).
575
- class RxError < Attribute
576
- TYPE: ::Integer
264
+ include Definitions
577
265
 
578
- NAME: ::Symbol
266
+ # Decodes attributes from the decoder into a new attribute set.
267
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
268
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
269
+ end
270
+ end
579
271
 
272
+ module AttributeSets
273
+ class AssocDevInfo
274
+ module Definitions
580
275
  # @private
581
- ORDER: ::Integer
276
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
582
277
 
583
278
  # @private
584
- DATATYPE: untyped
279
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
585
280
  end
281
+ end
586
282
 
587
- # Number of received PSP packets with miscellaneous errors
588
- # (invalid master key indicated by SPI, unsupported version, etc.)
589
- # Device statistic (from the PSP spec).
590
- class RxBad < Attribute
591
- TYPE: ::Integer
592
-
593
- NAME: ::Symbol
594
-
283
+ class Dev
284
+ module Definitions
595
285
  # @private
596
- ORDER: ::Integer
286
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
597
287
 
598
288
  # @private
599
- DATATYPE: untyped
289
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
600
290
  end
291
+ end
601
292
 
602
- # Number of successfully processed PSP packets for transmission.
603
- # Device statistic (from the PSP spec).
604
- class TxPackets < Attribute
605
- TYPE: ::Integer
606
-
607
- NAME: ::Symbol
608
-
293
+ class Assoc
294
+ module Definitions
609
295
  # @private
610
- ORDER: ::Integer
296
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
611
297
 
612
298
  # @private
613
- DATATYPE: untyped
299
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
614
300
  end
301
+ end
615
302
 
616
- # Number of successfully processed PSP bytes for transmit, counting from
617
- # the first byte after the IV through the last byte of payload.
618
- # The fixed initial portion of the PSP header (16 bytes)
619
- # and the PSP trailer/ICV (16 bytes) are not included in this count.
620
- # Device statistic (from the PSP spec).
621
- class TxBytes < Attribute
622
- TYPE: ::Integer
623
-
624
- NAME: ::Symbol
625
-
303
+ class Keys
304
+ module Definitions
626
305
  # @private
627
- ORDER: ::Integer
306
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
628
307
 
629
308
  # @private
630
- DATATYPE: untyped
309
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
631
310
  end
311
+ end
632
312
 
633
- # Number of PSP packets for transmission with errors.
634
- # Device statistic (from the PSP spec).
635
- class TxError < Attribute
636
- TYPE: ::Integer
637
-
638
- NAME: ::Symbol
639
-
313
+ class Stats
314
+ module Definitions
640
315
  # @private
641
- ORDER: ::Integer
316
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
642
317
 
643
318
  # @private
644
- DATATYPE: untyped
319
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
645
320
  end
646
-
647
- # @private
648
- BY_NAME: Hash[::Symbol, Attribute]
649
-
650
- # @private
651
- BY_TYPE: Hash[::Integer, Attribute]
652
-
653
- # PSP device ID.
654
- # @rbs return: ::Integer
655
- # @return [Integer]
656
- # @see DevId
657
- def dev_id: () -> ::Integer
658
-
659
- # Number of key rotations during the lifetime of the device.
660
- # Kernel statistic.
661
- # @rbs return: ::Integer
662
- # @return [Integer]
663
- # @see KeyRotations
664
- def key_rotations: () -> ::Integer
665
-
666
- # Number of times a socket's Rx got shut down due to using
667
- # a key which went stale (fully rotated out).
668
- # Kernel statistic.
669
- # @rbs return: ::Integer
670
- # @return [Integer]
671
- # @see StaleEvents
672
- def stale_events: () -> ::Integer
673
-
674
- # Number of successfully processed and authenticated PSP packets.
675
- # Device statistic (from the PSP spec).
676
- # @rbs return: ::Integer
677
- # @return [Integer]
678
- # @see RxPackets
679
- def rx_packets: () -> ::Integer
680
-
681
- # Number of successfully authenticated PSP bytes received, counting from
682
- # the first byte after the IV through the last byte of payload.
683
- # The fixed initial portion of the PSP header (16 bytes)
684
- # and the PSP trailer/ICV (16 bytes) are not included in this count.
685
- # Device statistic (from the PSP spec).
686
- # @rbs return: ::Integer
687
- # @return [Integer]
688
- # @see RxBytes
689
- def rx_bytes: () -> ::Integer
690
-
691
- # Number of received PSP packets with unsuccessful authentication.
692
- # Device statistic (from the PSP spec).
693
- # @rbs return: ::Integer
694
- # @return [Integer]
695
- # @see RxAuthFail
696
- def rx_auth_fail: () -> ::Integer
697
-
698
- # Number of received PSP packets with length/framing errors.
699
- # Device statistic (from the PSP spec).
700
- # @rbs return: ::Integer
701
- # @return [Integer]
702
- # @see RxError
703
- def rx_error: () -> ::Integer
704
-
705
- # Number of received PSP packets with miscellaneous errors
706
- # (invalid master key indicated by SPI, unsupported version, etc.)
707
- # Device statistic (from the PSP spec).
708
- # @rbs return: ::Integer
709
- # @return [Integer]
710
- # @see RxBad
711
- def rx_bad: () -> ::Integer
712
-
713
- # Number of successfully processed PSP packets for transmission.
714
- # Device statistic (from the PSP spec).
715
- # @rbs return: ::Integer
716
- # @return [Integer]
717
- # @see TxPackets
718
- def tx_packets: () -> ::Integer
719
-
720
- # Number of successfully processed PSP bytes for transmit, counting from
721
- # the first byte after the IV through the last byte of payload.
722
- # The fixed initial portion of the PSP header (16 bytes)
723
- # and the PSP trailer/ICV (16 bytes) are not included in this count.
724
- # Device statistic (from the PSP spec).
725
- # @rbs return: ::Integer
726
- # @return [Integer]
727
- # @see TxBytes
728
- def tx_bytes: () -> ::Integer
729
-
730
- # Number of PSP packets for transmission with errors.
731
- # Device statistic (from the PSP spec).
732
- # @rbs return: ::Integer
733
- # @return [Integer]
734
- # @see TxError
735
- def tx_error: () -> ::Integer
736
-
737
- # Looks up Attribute class by name.
738
- # @rbs name: Symbol
739
- # @rbs return: Attribute
740
- # @param [Symbol] name
741
- # @return [Attribute]
742
- def self.by_name: (Symbol name) -> Attribute
743
-
744
- # Looks up Attribute class by type value.
745
- # @rbs type: Integer
746
- # @rbs return: Attribute
747
- # @param [Integer] type
748
- # @return [Attribute]
749
- def self.by_type: (Integer type) -> Attribute
750
321
  end
751
322
  end
752
323
 
753
324
  module Messages
754
325
  # Get / dump information about PSP capable devices on the system.
755
- class DoDevGetRequest < ::Nl::Genl::Message
326
+ class DoDevGetRequest < ::Nl::Message
756
327
  TYPE: ::Integer
757
328
 
758
329
  FIXED_HEADER: untyped
@@ -761,15 +332,27 @@ module Nl
761
332
 
762
333
  ATTRIBUTES: untyped
763
334
 
335
+ include ATTRIBUTE_SET::Definitions
336
+
337
+ def initialize: (?untyped attributes) -> untyped
338
+
339
+ # @private
340
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
341
+
342
+ # Decodes a message payload from the decoder into a new instance.
343
+ # @rbs (::Nl::Decoder decoder) -> instance
344
+ def self.decode: (::Nl::Decoder decoder) -> instance
345
+
346
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
347
+
764
348
  # PSP device ID.
765
349
  # @rbs return: ::Integer
766
350
  # @return [Integer]
767
- # @see AttributeSets::Dev::Id
768
351
  def id: () -> ::Integer
769
352
  end
770
353
 
771
354
  # Get / dump information about PSP capable devices on the system.
772
- class DoDevGetReply < ::Nl::Genl::Message
355
+ class DoDevGetReply < ::Nl::Message
773
356
  TYPE: ::Integer
774
357
 
775
358
  FIXED_HEADER: untyped
@@ -778,17 +361,28 @@ module Nl
778
361
 
779
362
  ATTRIBUTES: untyped
780
363
 
364
+ include ATTRIBUTE_SET::Definitions
365
+
366
+ def initialize: (?untyped attributes) -> untyped
367
+
368
+ # @private
369
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
370
+
371
+ # Decodes a message payload from the decoder into a new instance.
372
+ # @rbs (::Nl::Decoder decoder) -> instance
373
+ def self.decode: (::Nl::Decoder decoder) -> instance
374
+
375
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
376
+
781
377
  # PSP device ID.
782
378
  # @rbs return: ::Integer
783
379
  # @return [Integer]
784
- # @see AttributeSets::Dev::Id
785
380
  def id: () -> ::Integer
786
381
 
787
382
  # ifindex of the main netdevice linked to the PSP device,
788
383
  # or the ifindex to associate with the PSP device.
789
384
  # @rbs return: ::Integer
790
385
  # @return [Integer]
791
- # @see AttributeSets::Dev::Ifindex
792
386
  def ifindex: () -> ::Integer
793
387
 
794
388
  # Bitmask of PSP versions supported by the device.
@@ -796,7 +390,6 @@ module Nl
796
390
  # Known flags are defined in {Flags::Version}.
797
391
  # @rbs return: ::Integer
798
392
  # @return [Integer]
799
- # @see AttributeSets::Dev::PspVersionsCap
800
393
  def psp_versions_cap: () -> ::Integer
801
394
 
802
395
  # Bitmask of currently enabled (accepted on Rx) PSP versions.
@@ -804,13 +397,11 @@ module Nl
804
397
  # Known flags are defined in {Flags::Version}.
805
398
  # @rbs return: ::Integer
806
399
  # @return [Integer]
807
- # @see AttributeSets::Dev::PspVersionsEna
808
400
  def psp_versions_ena: () -> ::Integer
809
401
 
810
402
  # List of associated virtual devices.
811
403
  # @rbs return: ::Array[AttributeSets::AssocDevInfo]
812
404
  # @return [Array<AttributeSets::AssocDevInfo>]
813
- # @see AttributeSets::Dev::AssocList
814
405
  def assoc_list: () -> ::Array[AttributeSets::AssocDevInfo]
815
406
 
816
407
  # Flag indicating the PSP device is an associated device from a
@@ -819,12 +410,11 @@ module Nl
819
410
  # namespace.
820
411
  # @rbs return: ::Integer
821
412
  # @return [Integer]
822
- # @see AttributeSets::Dev::ByAssociation
823
413
  def by_association: () -> ::Integer
824
414
  end
825
415
 
826
416
  # Get / dump information about PSP capable devices on the system.
827
- class DumpDevGetRequest < ::Nl::Genl::Message
417
+ class DumpDevGetRequest < ::Nl::Message
828
418
  TYPE: ::Integer
829
419
 
830
420
  FIXED_HEADER: untyped
@@ -832,10 +422,23 @@ module Nl
832
422
  ATTRIBUTE_SET: untyped
833
423
 
834
424
  ATTRIBUTES: untyped
425
+
426
+ include ATTRIBUTE_SET::Definitions
427
+
428
+ def initialize: (?untyped attributes) -> untyped
429
+
430
+ # @private
431
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
432
+
433
+ # Decodes a message payload from the decoder into a new instance.
434
+ # @rbs (::Nl::Decoder decoder) -> instance
435
+ def self.decode: (::Nl::Decoder decoder) -> instance
436
+
437
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
835
438
  end
836
439
 
837
440
  # Get / dump information about PSP capable devices on the system.
838
- class DumpDevGetReply < ::Nl::Genl::Message
441
+ class DumpDevGetReply < ::Nl::Message
839
442
  TYPE: ::Integer
840
443
 
841
444
  FIXED_HEADER: untyped
@@ -844,17 +447,28 @@ module Nl
844
447
 
845
448
  ATTRIBUTES: untyped
846
449
 
450
+ include ATTRIBUTE_SET::Definitions
451
+
452
+ def initialize: (?untyped attributes) -> untyped
453
+
454
+ # @private
455
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
456
+
457
+ # Decodes a message payload from the decoder into a new instance.
458
+ # @rbs (::Nl::Decoder decoder) -> instance
459
+ def self.decode: (::Nl::Decoder decoder) -> instance
460
+
461
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
462
+
847
463
  # PSP device ID.
848
464
  # @rbs return: ::Integer
849
465
  # @return [Integer]
850
- # @see AttributeSets::Dev::Id
851
466
  def id: () -> ::Integer
852
467
 
853
468
  # ifindex of the main netdevice linked to the PSP device,
854
469
  # or the ifindex to associate with the PSP device.
855
470
  # @rbs return: ::Integer
856
471
  # @return [Integer]
857
- # @see AttributeSets::Dev::Ifindex
858
472
  def ifindex: () -> ::Integer
859
473
 
860
474
  # Bitmask of PSP versions supported by the device.
@@ -862,7 +476,6 @@ module Nl
862
476
  # Known flags are defined in {Flags::Version}.
863
477
  # @rbs return: ::Integer
864
478
  # @return [Integer]
865
- # @see AttributeSets::Dev::PspVersionsCap
866
479
  def psp_versions_cap: () -> ::Integer
867
480
 
868
481
  # Bitmask of currently enabled (accepted on Rx) PSP versions.
@@ -870,13 +483,11 @@ module Nl
870
483
  # Known flags are defined in {Flags::Version}.
871
484
  # @rbs return: ::Integer
872
485
  # @return [Integer]
873
- # @see AttributeSets::Dev::PspVersionsEna
874
486
  def psp_versions_ena: () -> ::Integer
875
487
 
876
488
  # List of associated virtual devices.
877
489
  # @rbs return: ::Array[AttributeSets::AssocDevInfo]
878
490
  # @return [Array<AttributeSets::AssocDevInfo>]
879
- # @see AttributeSets::Dev::AssocList
880
491
  def assoc_list: () -> ::Array[AttributeSets::AssocDevInfo]
881
492
 
882
493
  # Flag indicating the PSP device is an associated device from a
@@ -885,14 +496,13 @@ module Nl
885
496
  # namespace.
886
497
  # @rbs return: ::Integer
887
498
  # @return [Integer]
888
- # @see AttributeSets::Dev::ByAssociation
889
499
  def by_association: () -> ::Integer
890
500
  end
891
501
 
892
502
  # Set the configuration of a PSP device.
893
503
  #
894
504
  # Requires CAP_NET_ADMIN in the initial user namespace.
895
- class DoDevSetRequest < ::Nl::Genl::Message
505
+ class DoDevSetRequest < ::Nl::Message
896
506
  TYPE: ::Integer
897
507
 
898
508
  FIXED_HEADER: untyped
@@ -901,10 +511,22 @@ module Nl
901
511
 
902
512
  ATTRIBUTES: untyped
903
513
 
514
+ include ATTRIBUTE_SET::Definitions
515
+
516
+ def initialize: (?untyped attributes) -> untyped
517
+
518
+ # @private
519
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
520
+
521
+ # Decodes a message payload from the decoder into a new instance.
522
+ # @rbs (::Nl::Decoder decoder) -> instance
523
+ def self.decode: (::Nl::Decoder decoder) -> instance
524
+
525
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
526
+
904
527
  # PSP device ID.
905
528
  # @rbs return: ::Integer
906
529
  # @return [Integer]
907
- # @see AttributeSets::Dev::Id
908
530
  def id: () -> ::Integer
909
531
 
910
532
  # Bitmask of currently enabled (accepted on Rx) PSP versions.
@@ -912,14 +534,13 @@ module Nl
912
534
  # Known flags are defined in {Flags::Version}.
913
535
  # @rbs return: ::Integer
914
536
  # @return [Integer]
915
- # @see AttributeSets::Dev::PspVersionsEna
916
537
  def psp_versions_ena: () -> ::Integer
917
538
  end
918
539
 
919
540
  # Set the configuration of a PSP device.
920
541
  #
921
542
  # Requires CAP_NET_ADMIN in the initial user namespace.
922
- class DoDevSetReply < ::Nl::Genl::Message
543
+ class DoDevSetReply < ::Nl::Message
923
544
  TYPE: ::Integer
924
545
 
925
546
  FIXED_HEADER: untyped
@@ -927,12 +548,25 @@ module Nl
927
548
  ATTRIBUTE_SET: untyped
928
549
 
929
550
  ATTRIBUTES: untyped
551
+
552
+ include ATTRIBUTE_SET::Definitions
553
+
554
+ def initialize: (?untyped attributes) -> untyped
555
+
556
+ # @private
557
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
558
+
559
+ # Decodes a message payload from the decoder into a new instance.
560
+ # @rbs (::Nl::Decoder decoder) -> instance
561
+ def self.decode: (::Nl::Decoder decoder) -> instance
562
+
563
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
930
564
  end
931
565
 
932
566
  # Rotate the device key.
933
567
  #
934
568
  # Requires CAP_NET_ADMIN in the initial user namespace.
935
- class DoKeyRotateRequest < ::Nl::Genl::Message
569
+ class DoKeyRotateRequest < ::Nl::Message
936
570
  TYPE: ::Integer
937
571
 
938
572
  FIXED_HEADER: untyped
@@ -941,17 +575,29 @@ module Nl
941
575
 
942
576
  ATTRIBUTES: untyped
943
577
 
578
+ include ATTRIBUTE_SET::Definitions
579
+
580
+ def initialize: (?untyped attributes) -> untyped
581
+
582
+ # @private
583
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
584
+
585
+ # Decodes a message payload from the decoder into a new instance.
586
+ # @rbs (::Nl::Decoder decoder) -> instance
587
+ def self.decode: (::Nl::Decoder decoder) -> instance
588
+
589
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
590
+
944
591
  # PSP device ID.
945
592
  # @rbs return: ::Integer
946
593
  # @return [Integer]
947
- # @see AttributeSets::Dev::Id
948
594
  def id: () -> ::Integer
949
595
  end
950
596
 
951
597
  # Rotate the device key.
952
598
  #
953
599
  # Requires CAP_NET_ADMIN in the initial user namespace.
954
- class DoKeyRotateReply < ::Nl::Genl::Message
600
+ class DoKeyRotateReply < ::Nl::Message
955
601
  TYPE: ::Integer
956
602
 
957
603
  FIXED_HEADER: untyped
@@ -960,15 +606,27 @@ module Nl
960
606
 
961
607
  ATTRIBUTES: untyped
962
608
 
609
+ include ATTRIBUTE_SET::Definitions
610
+
611
+ def initialize: (?untyped attributes) -> untyped
612
+
613
+ # @private
614
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
615
+
616
+ # Decodes a message payload from the decoder into a new instance.
617
+ # @rbs (::Nl::Decoder decoder) -> instance
618
+ def self.decode: (::Nl::Decoder decoder) -> instance
619
+
620
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
621
+
963
622
  # PSP device ID.
964
623
  # @rbs return: ::Integer
965
624
  # @return [Integer]
966
- # @see AttributeSets::Dev::Id
967
625
  def id: () -> ::Integer
968
626
  end
969
627
 
970
628
  # Allocate a new Rx key + SPI pair, associate it with a socket.
971
- class DoRxAssocRequest < ::Nl::Genl::Message
629
+ class DoRxAssocRequest < ::Nl::Message
972
630
  TYPE: ::Integer
973
631
 
974
632
  FIXED_HEADER: untyped
@@ -977,10 +635,22 @@ module Nl
977
635
 
978
636
  ATTRIBUTES: untyped
979
637
 
638
+ include ATTRIBUTE_SET::Definitions
639
+
640
+ def initialize: (?untyped attributes) -> untyped
641
+
642
+ # @private
643
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
644
+
645
+ # Decodes a message payload from the decoder into a new instance.
646
+ # @rbs (::Nl::Decoder decoder) -> instance
647
+ def self.decode: (::Nl::Decoder decoder) -> instance
648
+
649
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
650
+
980
651
  # PSP device ID.
981
652
  # @rbs return: ::Integer
982
653
  # @return [Integer]
983
- # @see AttributeSets::Assoc::DevId
984
654
  def dev_id: () -> ::Integer
985
655
 
986
656
  # PSP versions (AEAD and protocol version) used by this association,
@@ -990,18 +660,16 @@ module Nl
990
660
  # Known enum values are defined in {Enums::Version}.
991
661
  # @rbs return: ::Integer
992
662
  # @return [Integer]
993
- # @see AttributeSets::Assoc::Version
994
663
  def version: () -> ::Integer
995
664
 
996
665
  # Sockets which should be bound to the association immediately.
997
666
  # @rbs return: ::Integer
998
667
  # @return [Integer]
999
- # @see AttributeSets::Assoc::SockFd
1000
668
  def sock_fd: () -> ::Integer
1001
669
  end
1002
670
 
1003
671
  # Allocate a new Rx key + SPI pair, associate it with a socket.
1004
- class DoRxAssocReply < ::Nl::Genl::Message
672
+ class DoRxAssocReply < ::Nl::Message
1005
673
  TYPE: ::Integer
1006
674
 
1007
675
  FIXED_HEADER: untyped
@@ -1010,20 +678,31 @@ module Nl
1010
678
 
1011
679
  ATTRIBUTES: untyped
1012
680
 
681
+ include ATTRIBUTE_SET::Definitions
682
+
683
+ def initialize: (?untyped attributes) -> untyped
684
+
685
+ # @private
686
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
687
+
688
+ # Decodes a message payload from the decoder into a new instance.
689
+ # @rbs (::Nl::Decoder decoder) -> instance
690
+ def self.decode: (::Nl::Decoder decoder) -> instance
691
+
692
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
693
+
1013
694
  # PSP device ID.
1014
695
  # @rbs return: ::Integer
1015
696
  # @return [Integer]
1016
- # @see AttributeSets::Assoc::DevId
1017
697
  def dev_id: () -> ::Integer
1018
698
 
1019
699
  # @rbs return: AttributeSets::Keys
1020
700
  # @return [AttributeSets::Keys]
1021
- # @see AttributeSets::Assoc::RxKey
1022
701
  def rx_key: () -> AttributeSets::Keys
1023
702
  end
1024
703
 
1025
704
  # Add a PSP Tx association.
1026
- class DoTxAssocRequest < ::Nl::Genl::Message
705
+ class DoTxAssocRequest < ::Nl::Message
1027
706
  TYPE: ::Integer
1028
707
 
1029
708
  FIXED_HEADER: untyped
@@ -1032,10 +711,22 @@ module Nl
1032
711
 
1033
712
  ATTRIBUTES: untyped
1034
713
 
714
+ include ATTRIBUTE_SET::Definitions
715
+
716
+ def initialize: (?untyped attributes) -> untyped
717
+
718
+ # @private
719
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
720
+
721
+ # Decodes a message payload from the decoder into a new instance.
722
+ # @rbs (::Nl::Decoder decoder) -> instance
723
+ def self.decode: (::Nl::Decoder decoder) -> instance
724
+
725
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
726
+
1035
727
  # PSP device ID.
1036
728
  # @rbs return: ::Integer
1037
729
  # @return [Integer]
1038
- # @see AttributeSets::Assoc::DevId
1039
730
  def dev_id: () -> ::Integer
1040
731
 
1041
732
  # PSP versions (AEAD and protocol version) used by this association,
@@ -1045,23 +736,20 @@ module Nl
1045
736
  # Known enum values are defined in {Enums::Version}.
1046
737
  # @rbs return: ::Integer
1047
738
  # @return [Integer]
1048
- # @see AttributeSets::Assoc::Version
1049
739
  def version: () -> ::Integer
1050
740
 
1051
741
  # @rbs return: AttributeSets::Keys
1052
742
  # @return [AttributeSets::Keys]
1053
- # @see AttributeSets::Assoc::TxKey
1054
743
  def tx_key: () -> AttributeSets::Keys
1055
744
 
1056
745
  # Sockets which should be bound to the association immediately.
1057
746
  # @rbs return: ::Integer
1058
747
  # @return [Integer]
1059
- # @see AttributeSets::Assoc::SockFd
1060
748
  def sock_fd: () -> ::Integer
1061
749
  end
1062
750
 
1063
751
  # Add a PSP Tx association.
1064
- class DoTxAssocReply < ::Nl::Genl::Message
752
+ class DoTxAssocReply < ::Nl::Message
1065
753
  TYPE: ::Integer
1066
754
 
1067
755
  FIXED_HEADER: untyped
@@ -1069,10 +757,23 @@ module Nl
1069
757
  ATTRIBUTE_SET: untyped
1070
758
 
1071
759
  ATTRIBUTES: untyped
760
+
761
+ include ATTRIBUTE_SET::Definitions
762
+
763
+ def initialize: (?untyped attributes) -> untyped
764
+
765
+ # @private
766
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
767
+
768
+ # Decodes a message payload from the decoder into a new instance.
769
+ # @rbs (::Nl::Decoder decoder) -> instance
770
+ def self.decode: (::Nl::Decoder decoder) -> instance
771
+
772
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1072
773
  end
1073
774
 
1074
775
  # Get device statistics.
1075
- class DoGetStatsRequest < ::Nl::Genl::Message
776
+ class DoGetStatsRequest < ::Nl::Message
1076
777
  TYPE: ::Integer
1077
778
 
1078
779
  FIXED_HEADER: untyped
@@ -1081,15 +782,27 @@ module Nl
1081
782
 
1082
783
  ATTRIBUTES: untyped
1083
784
 
785
+ include ATTRIBUTE_SET::Definitions
786
+
787
+ def initialize: (?untyped attributes) -> untyped
788
+
789
+ # @private
790
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
791
+
792
+ # Decodes a message payload from the decoder into a new instance.
793
+ # @rbs (::Nl::Decoder decoder) -> instance
794
+ def self.decode: (::Nl::Decoder decoder) -> instance
795
+
796
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
797
+
1084
798
  # PSP device ID.
1085
799
  # @rbs return: ::Integer
1086
800
  # @return [Integer]
1087
- # @see AttributeSets::Stats::DevId
1088
801
  def dev_id: () -> ::Integer
1089
802
  end
1090
803
 
1091
804
  # Get device statistics.
1092
- class DoGetStatsReply < ::Nl::Genl::Message
805
+ class DoGetStatsReply < ::Nl::Message
1093
806
  TYPE: ::Integer
1094
807
 
1095
808
  FIXED_HEADER: untyped
@@ -1098,17 +811,28 @@ module Nl
1098
811
 
1099
812
  ATTRIBUTES: untyped
1100
813
 
814
+ include ATTRIBUTE_SET::Definitions
815
+
816
+ def initialize: (?untyped attributes) -> untyped
817
+
818
+ # @private
819
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
820
+
821
+ # Decodes a message payload from the decoder into a new instance.
822
+ # @rbs (::Nl::Decoder decoder) -> instance
823
+ def self.decode: (::Nl::Decoder decoder) -> instance
824
+
825
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
826
+
1101
827
  # PSP device ID.
1102
828
  # @rbs return: ::Integer
1103
829
  # @return [Integer]
1104
- # @see AttributeSets::Stats::DevId
1105
830
  def dev_id: () -> ::Integer
1106
831
 
1107
832
  # Number of key rotations during the lifetime of the device.
1108
833
  # Kernel statistic.
1109
834
  # @rbs return: ::Integer
1110
835
  # @return [Integer]
1111
- # @see AttributeSets::Stats::KeyRotations
1112
836
  def key_rotations: () -> ::Integer
1113
837
 
1114
838
  # Number of times a socket's Rx got shut down due to using
@@ -1116,14 +840,12 @@ module Nl
1116
840
  # Kernel statistic.
1117
841
  # @rbs return: ::Integer
1118
842
  # @return [Integer]
1119
- # @see AttributeSets::Stats::StaleEvents
1120
843
  def stale_events: () -> ::Integer
1121
844
 
1122
845
  # Number of successfully processed and authenticated PSP packets.
1123
846
  # Device statistic (from the PSP spec).
1124
847
  # @rbs return: ::Integer
1125
848
  # @return [Integer]
1126
- # @see AttributeSets::Stats::RxPackets
1127
849
  def rx_packets: () -> ::Integer
1128
850
 
1129
851
  # Number of successfully authenticated PSP bytes received, counting from
@@ -1133,21 +855,18 @@ module Nl
1133
855
  # Device statistic (from the PSP spec).
1134
856
  # @rbs return: ::Integer
1135
857
  # @return [Integer]
1136
- # @see AttributeSets::Stats::RxBytes
1137
858
  def rx_bytes: () -> ::Integer
1138
859
 
1139
860
  # Number of received PSP packets with unsuccessful authentication.
1140
861
  # Device statistic (from the PSP spec).
1141
862
  # @rbs return: ::Integer
1142
863
  # @return [Integer]
1143
- # @see AttributeSets::Stats::RxAuthFail
1144
864
  def rx_auth_fail: () -> ::Integer
1145
865
 
1146
866
  # Number of received PSP packets with length/framing errors.
1147
867
  # Device statistic (from the PSP spec).
1148
868
  # @rbs return: ::Integer
1149
869
  # @return [Integer]
1150
- # @see AttributeSets::Stats::RxError
1151
870
  def rx_error: () -> ::Integer
1152
871
 
1153
872
  # Number of received PSP packets with miscellaneous errors
@@ -1155,14 +874,12 @@ module Nl
1155
874
  # Device statistic (from the PSP spec).
1156
875
  # @rbs return: ::Integer
1157
876
  # @return [Integer]
1158
- # @see AttributeSets::Stats::RxBad
1159
877
  def rx_bad: () -> ::Integer
1160
878
 
1161
879
  # Number of successfully processed PSP packets for transmission.
1162
880
  # Device statistic (from the PSP spec).
1163
881
  # @rbs return: ::Integer
1164
882
  # @return [Integer]
1165
- # @see AttributeSets::Stats::TxPackets
1166
883
  def tx_packets: () -> ::Integer
1167
884
 
1168
885
  # Number of successfully processed PSP bytes for transmit, counting from
@@ -1172,19 +889,17 @@ module Nl
1172
889
  # Device statistic (from the PSP spec).
1173
890
  # @rbs return: ::Integer
1174
891
  # @return [Integer]
1175
- # @see AttributeSets::Stats::TxBytes
1176
892
  def tx_bytes: () -> ::Integer
1177
893
 
1178
894
  # Number of PSP packets for transmission with errors.
1179
895
  # Device statistic (from the PSP spec).
1180
896
  # @rbs return: ::Integer
1181
897
  # @return [Integer]
1182
- # @see AttributeSets::Stats::TxError
1183
898
  def tx_error: () -> ::Integer
1184
899
  end
1185
900
 
1186
901
  # Get device statistics.
1187
- class DumpGetStatsRequest < ::Nl::Genl::Message
902
+ class DumpGetStatsRequest < ::Nl::Message
1188
903
  TYPE: ::Integer
1189
904
 
1190
905
  FIXED_HEADER: untyped
@@ -1192,10 +907,23 @@ module Nl
1192
907
  ATTRIBUTE_SET: untyped
1193
908
 
1194
909
  ATTRIBUTES: untyped
910
+
911
+ include ATTRIBUTE_SET::Definitions
912
+
913
+ def initialize: (?untyped attributes) -> untyped
914
+
915
+ # @private
916
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
917
+
918
+ # Decodes a message payload from the decoder into a new instance.
919
+ # @rbs (::Nl::Decoder decoder) -> instance
920
+ def self.decode: (::Nl::Decoder decoder) -> instance
921
+
922
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1195
923
  end
1196
924
 
1197
925
  # Get device statistics.
1198
- class DumpGetStatsReply < ::Nl::Genl::Message
926
+ class DumpGetStatsReply < ::Nl::Message
1199
927
  TYPE: ::Integer
1200
928
 
1201
929
  FIXED_HEADER: untyped
@@ -1204,17 +932,28 @@ module Nl
1204
932
 
1205
933
  ATTRIBUTES: untyped
1206
934
 
935
+ include ATTRIBUTE_SET::Definitions
936
+
937
+ def initialize: (?untyped attributes) -> untyped
938
+
939
+ # @private
940
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
941
+
942
+ # Decodes a message payload from the decoder into a new instance.
943
+ # @rbs (::Nl::Decoder decoder) -> instance
944
+ def self.decode: (::Nl::Decoder decoder) -> instance
945
+
946
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
947
+
1207
948
  # PSP device ID.
1208
949
  # @rbs return: ::Integer
1209
950
  # @return [Integer]
1210
- # @see AttributeSets::Stats::DevId
1211
951
  def dev_id: () -> ::Integer
1212
952
 
1213
953
  # Number of key rotations during the lifetime of the device.
1214
954
  # Kernel statistic.
1215
955
  # @rbs return: ::Integer
1216
956
  # @return [Integer]
1217
- # @see AttributeSets::Stats::KeyRotations
1218
957
  def key_rotations: () -> ::Integer
1219
958
 
1220
959
  # Number of times a socket's Rx got shut down due to using
@@ -1222,14 +961,12 @@ module Nl
1222
961
  # Kernel statistic.
1223
962
  # @rbs return: ::Integer
1224
963
  # @return [Integer]
1225
- # @see AttributeSets::Stats::StaleEvents
1226
964
  def stale_events: () -> ::Integer
1227
965
 
1228
966
  # Number of successfully processed and authenticated PSP packets.
1229
967
  # Device statistic (from the PSP spec).
1230
968
  # @rbs return: ::Integer
1231
969
  # @return [Integer]
1232
- # @see AttributeSets::Stats::RxPackets
1233
970
  def rx_packets: () -> ::Integer
1234
971
 
1235
972
  # Number of successfully authenticated PSP bytes received, counting from
@@ -1239,21 +976,18 @@ module Nl
1239
976
  # Device statistic (from the PSP spec).
1240
977
  # @rbs return: ::Integer
1241
978
  # @return [Integer]
1242
- # @see AttributeSets::Stats::RxBytes
1243
979
  def rx_bytes: () -> ::Integer
1244
980
 
1245
981
  # Number of received PSP packets with unsuccessful authentication.
1246
982
  # Device statistic (from the PSP spec).
1247
983
  # @rbs return: ::Integer
1248
984
  # @return [Integer]
1249
- # @see AttributeSets::Stats::RxAuthFail
1250
985
  def rx_auth_fail: () -> ::Integer
1251
986
 
1252
987
  # Number of received PSP packets with length/framing errors.
1253
988
  # Device statistic (from the PSP spec).
1254
989
  # @rbs return: ::Integer
1255
990
  # @return [Integer]
1256
- # @see AttributeSets::Stats::RxError
1257
991
  def rx_error: () -> ::Integer
1258
992
 
1259
993
  # Number of received PSP packets with miscellaneous errors
@@ -1261,14 +995,12 @@ module Nl
1261
995
  # Device statistic (from the PSP spec).
1262
996
  # @rbs return: ::Integer
1263
997
  # @return [Integer]
1264
- # @see AttributeSets::Stats::RxBad
1265
998
  def rx_bad: () -> ::Integer
1266
999
 
1267
1000
  # Number of successfully processed PSP packets for transmission.
1268
1001
  # Device statistic (from the PSP spec).
1269
1002
  # @rbs return: ::Integer
1270
1003
  # @return [Integer]
1271
- # @see AttributeSets::Stats::TxPackets
1272
1004
  def tx_packets: () -> ::Integer
1273
1005
 
1274
1006
  # Number of successfully processed PSP bytes for transmit, counting from
@@ -1278,21 +1010,19 @@ module Nl
1278
1010
  # Device statistic (from the PSP spec).
1279
1011
  # @rbs return: ::Integer
1280
1012
  # @return [Integer]
1281
- # @see AttributeSets::Stats::TxBytes
1282
1013
  def tx_bytes: () -> ::Integer
1283
1014
 
1284
1015
  # Number of PSP packets for transmission with errors.
1285
1016
  # Device statistic (from the PSP spec).
1286
1017
  # @rbs return: ::Integer
1287
1018
  # @return [Integer]
1288
- # @see AttributeSets::Stats::TxError
1289
1019
  def tx_error: () -> ::Integer
1290
1020
  end
1291
1021
 
1292
1022
  # Associate a network device with a PSP device.
1293
1023
  #
1294
1024
  # Requires CAP_NET_ADMIN in the initial user namespace.
1295
- class DoDevAssocRequest < ::Nl::Genl::Message
1025
+ class DoDevAssocRequest < ::Nl::Message
1296
1026
  TYPE: ::Integer
1297
1027
 
1298
1028
  FIXED_HEADER: untyped
@@ -1301,17 +1031,28 @@ module Nl
1301
1031
 
1302
1032
  ATTRIBUTES: untyped
1303
1033
 
1034
+ include ATTRIBUTE_SET::Definitions
1035
+
1036
+ def initialize: (?untyped attributes) -> untyped
1037
+
1038
+ # @private
1039
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1040
+
1041
+ # Decodes a message payload from the decoder into a new instance.
1042
+ # @rbs (::Nl::Decoder decoder) -> instance
1043
+ def self.decode: (::Nl::Decoder decoder) -> instance
1044
+
1045
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1046
+
1304
1047
  # PSP device ID.
1305
1048
  # @rbs return: ::Integer
1306
1049
  # @return [Integer]
1307
- # @see AttributeSets::Dev::Id
1308
1050
  def id: () -> ::Integer
1309
1051
 
1310
1052
  # ifindex of the main netdevice linked to the PSP device,
1311
1053
  # or the ifindex to associate with the PSP device.
1312
1054
  # @rbs return: ::Integer
1313
1055
  # @return [Integer]
1314
- # @see AttributeSets::Dev::Ifindex
1315
1056
  def ifindex: () -> ::Integer
1316
1057
 
1317
1058
  # Network namespace ID for the device to associate/disassociate.
@@ -1319,14 +1060,13 @@ module Nl
1319
1060
  # device is looked up in the caller's network namespace.
1320
1061
  # @rbs return: ::Integer
1321
1062
  # @return [Integer]
1322
- # @see AttributeSets::Dev::Nsid
1323
1063
  def nsid: () -> ::Integer
1324
1064
  end
1325
1065
 
1326
1066
  # Associate a network device with a PSP device.
1327
1067
  #
1328
1068
  # Requires CAP_NET_ADMIN in the initial user namespace.
1329
- class DoDevAssocReply < ::Nl::Genl::Message
1069
+ class DoDevAssocReply < ::Nl::Message
1330
1070
  TYPE: ::Integer
1331
1071
 
1332
1072
  FIXED_HEADER: untyped
@@ -1334,12 +1074,25 @@ module Nl
1334
1074
  ATTRIBUTE_SET: untyped
1335
1075
 
1336
1076
  ATTRIBUTES: untyped
1077
+
1078
+ include ATTRIBUTE_SET::Definitions
1079
+
1080
+ def initialize: (?untyped attributes) -> untyped
1081
+
1082
+ # @private
1083
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1084
+
1085
+ # Decodes a message payload from the decoder into a new instance.
1086
+ # @rbs (::Nl::Decoder decoder) -> instance
1087
+ def self.decode: (::Nl::Decoder decoder) -> instance
1088
+
1089
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1337
1090
  end
1338
1091
 
1339
1092
  # Disassociate a network device from a PSP device.
1340
1093
  #
1341
1094
  # Requires CAP_NET_ADMIN in the initial user namespace.
1342
- class DoDevDisassocRequest < ::Nl::Genl::Message
1095
+ class DoDevDisassocRequest < ::Nl::Message
1343
1096
  TYPE: ::Integer
1344
1097
 
1345
1098
  FIXED_HEADER: untyped
@@ -1348,17 +1101,28 @@ module Nl
1348
1101
 
1349
1102
  ATTRIBUTES: untyped
1350
1103
 
1104
+ include ATTRIBUTE_SET::Definitions
1105
+
1106
+ def initialize: (?untyped attributes) -> untyped
1107
+
1108
+ # @private
1109
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1110
+
1111
+ # Decodes a message payload from the decoder into a new instance.
1112
+ # @rbs (::Nl::Decoder decoder) -> instance
1113
+ def self.decode: (::Nl::Decoder decoder) -> instance
1114
+
1115
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1116
+
1351
1117
  # PSP device ID.
1352
1118
  # @rbs return: ::Integer
1353
1119
  # @return [Integer]
1354
- # @see AttributeSets::Dev::Id
1355
1120
  def id: () -> ::Integer
1356
1121
 
1357
1122
  # ifindex of the main netdevice linked to the PSP device,
1358
1123
  # or the ifindex to associate with the PSP device.
1359
1124
  # @rbs return: ::Integer
1360
1125
  # @return [Integer]
1361
- # @see AttributeSets::Dev::Ifindex
1362
1126
  def ifindex: () -> ::Integer
1363
1127
 
1364
1128
  # Network namespace ID for the device to associate/disassociate.
@@ -1366,14 +1130,13 @@ module Nl
1366
1130
  # device is looked up in the caller's network namespace.
1367
1131
  # @rbs return: ::Integer
1368
1132
  # @return [Integer]
1369
- # @see AttributeSets::Dev::Nsid
1370
1133
  def nsid: () -> ::Integer
1371
1134
  end
1372
1135
 
1373
1136
  # Disassociate a network device from a PSP device.
1374
1137
  #
1375
1138
  # Requires CAP_NET_ADMIN in the initial user namespace.
1376
- class DoDevDisassocReply < ::Nl::Genl::Message
1139
+ class DoDevDisassocReply < ::Nl::Message
1377
1140
  TYPE: ::Integer
1378
1141
 
1379
1142
  FIXED_HEADER: untyped
@@ -1381,6 +1144,19 @@ module Nl
1381
1144
  ATTRIBUTE_SET: untyped
1382
1145
 
1383
1146
  ATTRIBUTES: untyped
1147
+
1148
+ include ATTRIBUTE_SET::Definitions
1149
+
1150
+ def initialize: (?untyped attributes) -> untyped
1151
+
1152
+ # @private
1153
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1154
+
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
1158
+
1159
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1384
1160
  end
1385
1161
  end
1386
1162
 
@@ -1388,7 +1164,7 @@ module Nl
1388
1164
  # Notification about device appearing.
1389
1165
  #
1390
1166
  # Multicast group: `mgmt`.
1391
- class DevAddNtf < ::Nl::Genl::Message
1167
+ class DevAddNtf < ::Nl::Message
1392
1168
  TYPE: ::Integer
1393
1169
 
1394
1170
  FIXED_HEADER: untyped
@@ -1397,17 +1173,28 @@ module Nl
1397
1173
 
1398
1174
  ATTRIBUTES: untyped
1399
1175
 
1176
+ include ATTRIBUTE_SET::Definitions
1177
+
1178
+ def initialize: (?untyped attributes) -> untyped
1179
+
1180
+ # @private
1181
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1182
+
1183
+ # Decodes a message payload from the decoder into a new instance.
1184
+ # @rbs (::Nl::Decoder decoder) -> instance
1185
+ def self.decode: (::Nl::Decoder decoder) -> instance
1186
+
1187
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1188
+
1400
1189
  # PSP device ID.
1401
1190
  # @rbs return: ::Integer
1402
1191
  # @return [Integer]
1403
- # @see AttributeSets::Dev::Id
1404
1192
  def id: () -> ::Integer
1405
1193
 
1406
1194
  # ifindex of the main netdevice linked to the PSP device,
1407
1195
  # or the ifindex to associate with the PSP device.
1408
1196
  # @rbs return: ::Integer
1409
1197
  # @return [Integer]
1410
- # @see AttributeSets::Dev::Ifindex
1411
1198
  def ifindex: () -> ::Integer
1412
1199
 
1413
1200
  # Bitmask of PSP versions supported by the device.
@@ -1415,7 +1202,6 @@ module Nl
1415
1202
  # Known flags are defined in {Flags::Version}.
1416
1203
  # @rbs return: ::Integer
1417
1204
  # @return [Integer]
1418
- # @see AttributeSets::Dev::PspVersionsCap
1419
1205
  def psp_versions_cap: () -> ::Integer
1420
1206
 
1421
1207
  # Bitmask of currently enabled (accepted on Rx) PSP versions.
@@ -1423,13 +1209,11 @@ module Nl
1423
1209
  # Known flags are defined in {Flags::Version}.
1424
1210
  # @rbs return: ::Integer
1425
1211
  # @return [Integer]
1426
- # @see AttributeSets::Dev::PspVersionsEna
1427
1212
  def psp_versions_ena: () -> ::Integer
1428
1213
 
1429
1214
  # List of associated virtual devices.
1430
1215
  # @rbs return: ::Array[AttributeSets::AssocDevInfo]
1431
1216
  # @return [Array<AttributeSets::AssocDevInfo>]
1432
- # @see AttributeSets::Dev::AssocList
1433
1217
  def assoc_list: () -> ::Array[AttributeSets::AssocDevInfo]
1434
1218
 
1435
1219
  # Flag indicating the PSP device is an associated device from a
@@ -1438,14 +1222,13 @@ module Nl
1438
1222
  # namespace.
1439
1223
  # @rbs return: ::Integer
1440
1224
  # @return [Integer]
1441
- # @see AttributeSets::Dev::ByAssociation
1442
1225
  def by_association: () -> ::Integer
1443
1226
  end
1444
1227
 
1445
1228
  # Notification about device disappearing.
1446
1229
  #
1447
1230
  # Multicast group: `mgmt`.
1448
- class DevDelNtf < ::Nl::Genl::Message
1231
+ class DevDelNtf < ::Nl::Message
1449
1232
  TYPE: ::Integer
1450
1233
 
1451
1234
  FIXED_HEADER: untyped
@@ -1454,17 +1237,28 @@ module Nl
1454
1237
 
1455
1238
  ATTRIBUTES: untyped
1456
1239
 
1240
+ include ATTRIBUTE_SET::Definitions
1241
+
1242
+ def initialize: (?untyped attributes) -> untyped
1243
+
1244
+ # @private
1245
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1246
+
1247
+ # Decodes a message payload from the decoder into a new instance.
1248
+ # @rbs (::Nl::Decoder decoder) -> instance
1249
+ def self.decode: (::Nl::Decoder decoder) -> instance
1250
+
1251
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1252
+
1457
1253
  # PSP device ID.
1458
1254
  # @rbs return: ::Integer
1459
1255
  # @return [Integer]
1460
- # @see AttributeSets::Dev::Id
1461
1256
  def id: () -> ::Integer
1462
1257
 
1463
1258
  # ifindex of the main netdevice linked to the PSP device,
1464
1259
  # or the ifindex to associate with the PSP device.
1465
1260
  # @rbs return: ::Integer
1466
1261
  # @return [Integer]
1467
- # @see AttributeSets::Dev::Ifindex
1468
1262
  def ifindex: () -> ::Integer
1469
1263
 
1470
1264
  # Bitmask of PSP versions supported by the device.
@@ -1472,7 +1266,6 @@ module Nl
1472
1266
  # Known flags are defined in {Flags::Version}.
1473
1267
  # @rbs return: ::Integer
1474
1268
  # @return [Integer]
1475
- # @see AttributeSets::Dev::PspVersionsCap
1476
1269
  def psp_versions_cap: () -> ::Integer
1477
1270
 
1478
1271
  # Bitmask of currently enabled (accepted on Rx) PSP versions.
@@ -1480,13 +1273,11 @@ module Nl
1480
1273
  # Known flags are defined in {Flags::Version}.
1481
1274
  # @rbs return: ::Integer
1482
1275
  # @return [Integer]
1483
- # @see AttributeSets::Dev::PspVersionsEna
1484
1276
  def psp_versions_ena: () -> ::Integer
1485
1277
 
1486
1278
  # List of associated virtual devices.
1487
1279
  # @rbs return: ::Array[AttributeSets::AssocDevInfo]
1488
1280
  # @return [Array<AttributeSets::AssocDevInfo>]
1489
- # @see AttributeSets::Dev::AssocList
1490
1281
  def assoc_list: () -> ::Array[AttributeSets::AssocDevInfo]
1491
1282
 
1492
1283
  # Flag indicating the PSP device is an associated device from a
@@ -1495,14 +1286,13 @@ module Nl
1495
1286
  # namespace.
1496
1287
  # @rbs return: ::Integer
1497
1288
  # @return [Integer]
1498
- # @see AttributeSets::Dev::ByAssociation
1499
1289
  def by_association: () -> ::Integer
1500
1290
  end
1501
1291
 
1502
1292
  # Notification about device configuration being changed.
1503
1293
  #
1504
1294
  # Multicast group: `mgmt`.
1505
- class DevChangeNtf < ::Nl::Genl::Message
1295
+ class DevChangeNtf < ::Nl::Message
1506
1296
  TYPE: ::Integer
1507
1297
 
1508
1298
  FIXED_HEADER: untyped
@@ -1511,17 +1301,28 @@ module Nl
1511
1301
 
1512
1302
  ATTRIBUTES: untyped
1513
1303
 
1304
+ include ATTRIBUTE_SET::Definitions
1305
+
1306
+ def initialize: (?untyped attributes) -> untyped
1307
+
1308
+ # @private
1309
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1310
+
1311
+ # Decodes a message payload from the decoder into a new instance.
1312
+ # @rbs (::Nl::Decoder decoder) -> instance
1313
+ def self.decode: (::Nl::Decoder decoder) -> instance
1314
+
1315
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1316
+
1514
1317
  # PSP device ID.
1515
1318
  # @rbs return: ::Integer
1516
1319
  # @return [Integer]
1517
- # @see AttributeSets::Dev::Id
1518
1320
  def id: () -> ::Integer
1519
1321
 
1520
1322
  # ifindex of the main netdevice linked to the PSP device,
1521
1323
  # or the ifindex to associate with the PSP device.
1522
1324
  # @rbs return: ::Integer
1523
1325
  # @return [Integer]
1524
- # @see AttributeSets::Dev::Ifindex
1525
1326
  def ifindex: () -> ::Integer
1526
1327
 
1527
1328
  # Bitmask of PSP versions supported by the device.
@@ -1529,7 +1330,6 @@ module Nl
1529
1330
  # Known flags are defined in {Flags::Version}.
1530
1331
  # @rbs return: ::Integer
1531
1332
  # @return [Integer]
1532
- # @see AttributeSets::Dev::PspVersionsCap
1533
1333
  def psp_versions_cap: () -> ::Integer
1534
1334
 
1535
1335
  # Bitmask of currently enabled (accepted on Rx) PSP versions.
@@ -1537,13 +1337,11 @@ module Nl
1537
1337
  # Known flags are defined in {Flags::Version}.
1538
1338
  # @rbs return: ::Integer
1539
1339
  # @return [Integer]
1540
- # @see AttributeSets::Dev::PspVersionsEna
1541
1340
  def psp_versions_ena: () -> ::Integer
1542
1341
 
1543
1342
  # List of associated virtual devices.
1544
1343
  # @rbs return: ::Array[AttributeSets::AssocDevInfo]
1545
1344
  # @return [Array<AttributeSets::AssocDevInfo>]
1546
- # @see AttributeSets::Dev::AssocList
1547
1345
  def assoc_list: () -> ::Array[AttributeSets::AssocDevInfo]
1548
1346
 
1549
1347
  # Flag indicating the PSP device is an associated device from a
@@ -1552,14 +1350,13 @@ module Nl
1552
1350
  # namespace.
1553
1351
  # @rbs return: ::Integer
1554
1352
  # @return [Integer]
1555
- # @see AttributeSets::Dev::ByAssociation
1556
1353
  def by_association: () -> ::Integer
1557
1354
  end
1558
1355
 
1559
1356
  # Notification about device key getting rotated.
1560
1357
  #
1561
1358
  # Multicast group: `use`.
1562
- class KeyRotateNtf < ::Nl::Genl::Message
1359
+ class KeyRotateNtf < ::Nl::Message
1563
1360
  TYPE: ::Integer
1564
1361
 
1565
1362
  FIXED_HEADER: untyped
@@ -1568,10 +1365,22 @@ module Nl
1568
1365
 
1569
1366
  ATTRIBUTES: untyped
1570
1367
 
1368
+ include ATTRIBUTE_SET::Definitions
1369
+
1370
+ def initialize: (?untyped attributes) -> untyped
1371
+
1372
+ # @private
1373
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
1374
+
1375
+ # Decodes a message payload from the decoder into a new instance.
1376
+ # @rbs (::Nl::Decoder decoder) -> instance
1377
+ def self.decode: (::Nl::Decoder decoder) -> instance
1378
+
1379
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
1380
+
1571
1381
  # PSP device ID.
1572
1382
  # @rbs return: ::Integer
1573
1383
  # @return [Integer]
1574
- # @see AttributeSets::Dev::Id
1575
1384
  def id: () -> ::Integer
1576
1385
  end
1577
1386
  end