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
@@ -93,619 +93,236 @@ module Nl
93
93
 
94
94
  module AttributeSets
95
95
  class NetShaper < ::Nl::AttributeSet
96
- # Abstract class
97
- class Attribute < ::Nl::AttributeSet::Attribute
96
+ module Definitions
97
+ # Unique identifier for the given shaper inside the owning device.
98
+ # @rbs return: AttributeSets::Handle
99
+ # @return [AttributeSets::Handle]
100
+ def handle: () -> AttributeSets::Handle
101
+
102
+ # Metric used by the given shaper for bw-min, bw-max and burst.
103
+ #
104
+ # Known enum values are defined in {Enums::Metric}.
105
+ # @rbs return: ::Integer
106
+ # @return [Integer]
107
+ def metric: () -> ::Integer
108
+
109
+ # Guaranteed bandwidth for the given shaper.
110
+ # @rbs return: ::Integer
111
+ # @return [Integer]
112
+ def bw_min: () -> ::Integer
113
+
114
+ # Maximum bandwidth for the given shaper or 0 when unlimited.
115
+ # @rbs return: ::Integer
116
+ # @return [Integer]
117
+ def bw_max: () -> ::Integer
118
+
119
+ # Maximum burst-size for shaping. Should not be interpreted
120
+ # as a quantum.
121
+ # @rbs return: ::Integer
122
+ # @return [Integer]
123
+ def burst: () -> ::Integer
124
+
125
+ # Scheduling priority for the given shaper. The priority
126
+ # scheduling is applied to sibling shapers.
127
+ # @rbs return: ::Integer
128
+ # @return [Integer]
129
+ def priority: () -> ::Integer
130
+
131
+ # Relative weight for round robin scheduling of the
132
+ # given shaper.
133
+ # The scheduling is applied to all sibling shapers
134
+ # with the same priority.
135
+ # @rbs return: ::Integer
136
+ # @return [Integer]
137
+ def weight: () -> ::Integer
138
+
139
+ # Interface index owning the specified shaper.
140
+ # @rbs return: ::Integer
141
+ # @return [Integer]
142
+ def ifindex: () -> ::Integer
143
+
144
+ # Identifier for the parent of the affected shaper.
145
+ # Only needed for `group` operation.
146
+ # @rbs return: AttributeSets::Handle
147
+ # @return [AttributeSets::Handle]
148
+ def parent: () -> AttributeSets::Handle
149
+
150
+ # Describes a set of leaves shapers for a `group` operation.
151
+ # @rbs return: ::Array[AttributeSets::LeafInfo]
152
+ # @return [Array<AttributeSets::LeafInfo>]
153
+ def leaves: () -> ::Array[AttributeSets::LeafInfo]
98
154
  end
99
155
 
100
- # Unique identifier for the given shaper inside the owning device.
101
- class Handle < Attribute
102
- TYPE: ::Integer
103
-
104
- NAME: ::Symbol
105
-
106
- # @private
107
- ORDER: ::Integer
108
- end
109
-
110
- # Metric used by the given shaper for bw-min, bw-max and burst.
111
- #
112
- # Known enum values are defined in {Enums::Metric}.
113
- class Metric < Attribute
114
- TYPE: ::Integer
115
-
116
- NAME: ::Symbol
117
-
118
- # @private
119
- ORDER: ::Integer
120
-
121
- # @private
122
- DATATYPE: untyped
123
- end
124
-
125
- # Guaranteed bandwidth for the given shaper.
126
- class BwMin < Attribute
127
- TYPE: ::Integer
128
-
129
- NAME: ::Symbol
130
-
131
- # @private
132
- ORDER: ::Integer
133
-
134
- # @private
135
- DATATYPE: untyped
136
- end
137
-
138
- # Maximum bandwidth for the given shaper or 0 when unlimited.
139
- class BwMax < Attribute
140
- TYPE: ::Integer
141
-
142
- NAME: ::Symbol
143
-
144
- # @private
145
- ORDER: ::Integer
146
-
147
- # @private
148
- DATATYPE: untyped
149
- end
150
-
151
- # Maximum burst-size for shaping. Should not be interpreted
152
- # as a quantum.
153
- class Burst < Attribute
154
- TYPE: ::Integer
155
-
156
- NAME: ::Symbol
157
-
158
- # @private
159
- ORDER: ::Integer
160
-
161
- # @private
162
- DATATYPE: untyped
163
- end
164
-
165
- # Scheduling priority for the given shaper. The priority
166
- # scheduling is applied to sibling shapers.
167
- class Priority < Attribute
168
- TYPE: ::Integer
169
-
170
- NAME: ::Symbol
171
-
172
- # @private
173
- ORDER: ::Integer
174
-
175
- # @private
176
- DATATYPE: untyped
177
- end
178
-
179
- # Relative weight for round robin scheduling of the
180
- # given shaper.
181
- # The scheduling is applied to all sibling shapers
182
- # with the same priority.
183
- class Weight < Attribute
184
- TYPE: ::Integer
185
-
186
- NAME: ::Symbol
187
-
188
- # @private
189
- ORDER: ::Integer
190
-
191
- # @private
192
- DATATYPE: untyped
193
- end
194
-
195
- # Interface index owning the specified shaper.
196
- class Ifindex < Attribute
197
- TYPE: ::Integer
198
-
199
- NAME: ::Symbol
200
-
201
- # @private
202
- ORDER: ::Integer
203
-
204
- # @private
205
- DATATYPE: untyped
206
- end
207
-
208
- # Identifier for the parent of the affected shaper.
209
- # Only needed for `group` operation.
210
- class Parent < Attribute
211
- TYPE: ::Integer
212
-
213
- NAME: ::Symbol
214
-
215
- # @private
216
- ORDER: ::Integer
217
- end
218
-
219
- # Describes a set of leaves shapers for a `group` operation.
220
- class Leaves < Attribute
221
- TYPE: ::Integer
222
-
223
- NAME: ::Symbol
224
-
225
- # @private
226
- MULTI: bool
227
-
228
- # @private
229
- ORDER: ::Integer
230
- end
231
-
232
- # @private
233
- BY_NAME: Hash[::Symbol, Attribute]
234
-
235
- # @private
236
- BY_TYPE: Hash[::Integer, Attribute]
237
-
238
- # Unique identifier for the given shaper inside the owning device.
239
- # @rbs return: AttributeSets::Handle
240
- # @return [AttributeSets::Handle]
241
- # @see Handle
242
- def handle: () -> AttributeSets::Handle
243
-
244
- # Metric used by the given shaper for bw-min, bw-max and burst.
245
- #
246
- # Known enum values are defined in {Enums::Metric}.
247
- # @rbs return: ::Integer
248
- # @return [Integer]
249
- # @see Metric
250
- def metric: () -> ::Integer
251
-
252
- # Guaranteed bandwidth for the given shaper.
253
- # @rbs return: ::Integer
254
- # @return [Integer]
255
- # @see BwMin
256
- def bw_min: () -> ::Integer
257
-
258
- # Maximum bandwidth for the given shaper or 0 when unlimited.
259
- # @rbs return: ::Integer
260
- # @return [Integer]
261
- # @see BwMax
262
- def bw_max: () -> ::Integer
263
-
264
- # Maximum burst-size for shaping. Should not be interpreted
265
- # as a quantum.
266
- # @rbs return: ::Integer
267
- # @return [Integer]
268
- # @see Burst
269
- def burst: () -> ::Integer
156
+ include Definitions
270
157
 
271
- # Scheduling priority for the given shaper. The priority
272
- # scheduling is applied to sibling shapers.
273
- # @rbs return: ::Integer
274
- # @return [Integer]
275
- # @see Priority
276
- def priority: () -> ::Integer
277
-
278
- # Relative weight for round robin scheduling of the
279
- # given shaper.
280
- # The scheduling is applied to all sibling shapers
281
- # with the same priority.
282
- # @rbs return: ::Integer
283
- # @return [Integer]
284
- # @see Weight
285
- def weight: () -> ::Integer
286
-
287
- # Interface index owning the specified shaper.
288
- # @rbs return: ::Integer
289
- # @return [Integer]
290
- # @see Ifindex
291
- def ifindex: () -> ::Integer
292
-
293
- # Identifier for the parent of the affected shaper.
294
- # Only needed for `group` operation.
295
- # @rbs return: AttributeSets::Handle
296
- # @return [AttributeSets::Handle]
297
- # @see Parent
298
- def parent: () -> AttributeSets::Handle
299
-
300
- # Describes a set of leaves shapers for a `group` operation.
301
- # @rbs return: ::Array[AttributeSets::LeafInfo]
302
- # @return [Array<AttributeSets::LeafInfo>]
303
- # @see Leaves
304
- def leaves: () -> ::Array[AttributeSets::LeafInfo]
305
-
306
- # Looks up Attribute class by name.
307
- # @rbs name: Symbol
308
- # @rbs return: Attribute
309
- # @param [Symbol] name
310
- # @return [Attribute]
311
- def self.by_name: (Symbol name) -> Attribute
312
-
313
- # Looks up Attribute class by type value.
314
- # @rbs type: Integer
315
- # @rbs return: Attribute
316
- # @param [Integer] type
317
- # @return [Attribute]
318
- def self.by_type: (Integer type) -> Attribute
158
+ # Decodes attributes from the decoder into a new attribute set.
159
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
160
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
319
161
  end
320
162
 
321
163
  class Handle < ::Nl::AttributeSet
322
- # Abstract class
323
- class Attribute < ::Nl::AttributeSet::Attribute
164
+ module Definitions
165
+ # Defines the shaper `id` interpretation.
166
+ #
167
+ # Known enum values are defined in {Enums::Scope}.
168
+ # @rbs return: ::Integer
169
+ # @return [Integer]
170
+ def scope: () -> ::Integer
171
+
172
+ # Numeric identifier of a shaper. The id semantic depends on
173
+ # the scope. For `queue` scope it's the queue id and for `node`
174
+ # scope it's the node identifier.
175
+ # @rbs return: ::Integer
176
+ # @return [Integer]
177
+ def id: () -> ::Integer
324
178
  end
325
179
 
326
- # Defines the shaper `id` interpretation.
327
- #
328
- # Known enum values are defined in {Enums::Scope}.
329
- class Scope < Attribute
330
- TYPE: ::Integer
180
+ include Definitions
331
181
 
332
- NAME: ::Symbol
333
-
334
- # @private
335
- ORDER: ::Integer
336
-
337
- # @private
338
- DATATYPE: untyped
339
- end
340
-
341
- # Numeric identifier of a shaper. The id semantic depends on
342
- # the scope. For `queue` scope it's the queue id and for `node`
343
- # scope it's the node identifier.
344
- class Id < Attribute
345
- TYPE: ::Integer
346
-
347
- NAME: ::Symbol
348
-
349
- # @private
350
- ORDER: ::Integer
351
-
352
- # @private
353
- DATATYPE: untyped
354
- end
355
-
356
- # @private
357
- BY_NAME: Hash[::Symbol, Attribute]
358
-
359
- # @private
360
- BY_TYPE: Hash[::Integer, Attribute]
361
-
362
- # Defines the shaper `id` interpretation.
363
- #
364
- # Known enum values are defined in {Enums::Scope}.
365
- # @rbs return: ::Integer
366
- # @return [Integer]
367
- # @see Scope
368
- def scope: () -> ::Integer
369
-
370
- # Numeric identifier of a shaper. The id semantic depends on
371
- # the scope. For `queue` scope it's the queue id and for `node`
372
- # scope it's the node identifier.
373
- # @rbs return: ::Integer
374
- # @return [Integer]
375
- # @see Id
376
- def id: () -> ::Integer
377
-
378
- # Looks up Attribute class by name.
379
- # @rbs name: Symbol
380
- # @rbs return: Attribute
381
- # @param [Symbol] name
382
- # @return [Attribute]
383
- def self.by_name: (Symbol name) -> Attribute
384
-
385
- # Looks up Attribute class by type value.
386
- # @rbs type: Integer
387
- # @rbs return: Attribute
388
- # @param [Integer] type
389
- # @return [Attribute]
390
- def self.by_type: (Integer type) -> Attribute
182
+ # Decodes attributes from the decoder into a new attribute set.
183
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
184
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
391
185
  end
392
186
 
393
187
  class LeafInfo < ::Nl::AttributeSet
394
- # Abstract class
395
- class Attribute < ::Nl::AttributeSet::Attribute
396
- end
397
-
398
- # Unique identifier for the given shaper inside the owning device.
399
- class Handle < Attribute
400
- TYPE: ::Integer
401
-
402
- NAME: ::Symbol
403
-
404
- # @private
405
- ORDER: ::Integer
406
- end
407
-
408
- # Scheduling priority for the given shaper. The priority
409
- # scheduling is applied to sibling shapers.
410
- class Priority < Attribute
411
- TYPE: ::Integer
412
-
413
- NAME: ::Symbol
414
-
415
- # @private
416
- ORDER: ::Integer
417
-
418
- # @private
419
- DATATYPE: untyped
420
- end
421
-
422
- # Relative weight for round robin scheduling of the
423
- # given shaper.
424
- # The scheduling is applied to all sibling shapers
425
- # with the same priority.
426
- class Weight < Attribute
427
- TYPE: ::Integer
428
-
429
- NAME: ::Symbol
430
-
431
- # @private
432
- ORDER: ::Integer
433
-
434
- # @private
435
- DATATYPE: untyped
188
+ module Definitions
189
+ # Unique identifier for the given shaper inside the owning device.
190
+ # @rbs return: AttributeSets::Handle
191
+ # @return [AttributeSets::Handle]
192
+ def handle: () -> AttributeSets::Handle
193
+
194
+ # Scheduling priority for the given shaper. The priority
195
+ # scheduling is applied to sibling shapers.
196
+ # @rbs return: ::Integer
197
+ # @return [Integer]
198
+ def priority: () -> ::Integer
199
+
200
+ # Relative weight for round robin scheduling of the
201
+ # given shaper.
202
+ # The scheduling is applied to all sibling shapers
203
+ # with the same priority.
204
+ # @rbs return: ::Integer
205
+ # @return [Integer]
206
+ def weight: () -> ::Integer
436
207
  end
437
208
 
438
- # @private
439
- BY_NAME: Hash[::Symbol, Attribute]
440
-
441
- # @private
442
- BY_TYPE: Hash[::Integer, Attribute]
209
+ include Definitions
443
210
 
444
- # Unique identifier for the given shaper inside the owning device.
445
- # @rbs return: AttributeSets::Handle
446
- # @return [AttributeSets::Handle]
447
- # @see Handle
448
- def handle: () -> AttributeSets::Handle
449
-
450
- # Scheduling priority for the given shaper. The priority
451
- # scheduling is applied to sibling shapers.
452
- # @rbs return: ::Integer
453
- # @return [Integer]
454
- # @see Priority
455
- def priority: () -> ::Integer
456
-
457
- # Relative weight for round robin scheduling of the
458
- # given shaper.
459
- # The scheduling is applied to all sibling shapers
460
- # with the same priority.
461
- # @rbs return: ::Integer
462
- # @return [Integer]
463
- # @see Weight
464
- def weight: () -> ::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
211
+ # Decodes attributes from the decoder into a new attribute set.
212
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
213
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
479
214
  end
480
215
 
481
216
  class Caps < ::Nl::AttributeSet
482
- # Abstract class
483
- class Attribute < ::Nl::AttributeSet::Attribute
217
+ module Definitions
218
+ # Interface index queried for shapers capabilities.
219
+ # @rbs return: ::Integer
220
+ # @return [Integer]
221
+ def ifindex: () -> ::Integer
222
+
223
+ # The scope to which the queried capabilities apply.
224
+ #
225
+ # Known enum values are defined in {Enums::Scope}.
226
+ # @rbs return: ::Integer
227
+ # @return [Integer]
228
+ def scope: () -> ::Integer
229
+
230
+ # The device accepts 'bps' metric for bw-min, bw-max and burst.
231
+ # @rbs return: ::Integer
232
+ # @return [Integer]
233
+ def support_metric_bps: () -> ::Integer
234
+
235
+ # The device accepts 'pps' metric for bw-min, bw-max and burst.
236
+ # @rbs return: ::Integer
237
+ # @return [Integer]
238
+ def support_metric_pps: () -> ::Integer
239
+
240
+ # The device supports nesting shaper belonging to this scope
241
+ # below 'node' scoped shapers. Only 'queue' and 'node'
242
+ # scope can have flag 'support-nesting'.
243
+ # @rbs return: ::Integer
244
+ # @return [Integer]
245
+ def support_nesting: () -> ::Integer
246
+
247
+ # The device supports a minimum guaranteed B/W.
248
+ # @rbs return: ::Integer
249
+ # @return [Integer]
250
+ def support_bw_min: () -> ::Integer
251
+
252
+ # The device supports maximum B/W shaping.
253
+ # @rbs return: ::Integer
254
+ # @return [Integer]
255
+ def support_bw_max: () -> ::Integer
256
+
257
+ # The device supports a maximum burst size.
258
+ # @rbs return: ::Integer
259
+ # @return [Integer]
260
+ def support_burst: () -> ::Integer
261
+
262
+ # The device supports priority scheduling.
263
+ # @rbs return: ::Integer
264
+ # @return [Integer]
265
+ def support_priority: () -> ::Integer
266
+
267
+ # The device supports weighted round robin scheduling.
268
+ # @rbs return: ::Integer
269
+ # @return [Integer]
270
+ def support_weight: () -> ::Integer
484
271
  end
485
272
 
486
- # Interface index queried for shapers capabilities.
487
- class Ifindex < Attribute
488
- TYPE: ::Integer
489
-
490
- NAME: ::Symbol
491
-
492
- # @private
493
- ORDER: ::Integer
494
-
495
- # @private
496
- DATATYPE: untyped
497
- end
498
-
499
- # The scope to which the queried capabilities apply.
500
- #
501
- # Known enum values are defined in {Enums::Scope}.
502
- class Scope < Attribute
503
- TYPE: ::Integer
504
-
505
- NAME: ::Symbol
506
-
507
- # @private
508
- ORDER: ::Integer
509
-
510
- # @private
511
- DATATYPE: untyped
512
- end
513
-
514
- # The device accepts 'bps' metric for bw-min, bw-max and burst.
515
- class SupportMetricBps < Attribute
516
- TYPE: ::Integer
517
-
518
- NAME: ::Symbol
519
-
520
- # @private
521
- ORDER: ::Integer
522
-
523
- # @private
524
- DATATYPE: untyped
525
- end
526
-
527
- # The device accepts 'pps' metric for bw-min, bw-max and burst.
528
- class SupportMetricPps < Attribute
529
- TYPE: ::Integer
530
-
531
- NAME: ::Symbol
532
-
533
- # @private
534
- ORDER: ::Integer
535
-
536
- # @private
537
- DATATYPE: untyped
538
- end
539
-
540
- # The device supports nesting shaper belonging to this scope
541
- # below 'node' scoped shapers. Only 'queue' and 'node'
542
- # scope can have flag 'support-nesting'.
543
- class SupportNesting < Attribute
544
- TYPE: ::Integer
545
-
546
- NAME: ::Symbol
547
-
548
- # @private
549
- ORDER: ::Integer
550
-
551
- # @private
552
- DATATYPE: untyped
553
- end
273
+ include Definitions
554
274
 
555
- # The device supports a minimum guaranteed B/W.
556
- class SupportBwMin < Attribute
557
- TYPE: ::Integer
558
-
559
- NAME: ::Symbol
560
-
561
- # @private
562
- ORDER: ::Integer
563
-
564
- # @private
565
- DATATYPE: untyped
566
- end
567
-
568
- # The device supports maximum B/W shaping.
569
- class SupportBwMax < Attribute
570
- TYPE: ::Integer
571
-
572
- NAME: ::Symbol
275
+ # Decodes attributes from the decoder into a new attribute set.
276
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
277
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
278
+ end
279
+ end
573
280
 
281
+ module AttributeSets
282
+ class NetShaper
283
+ module Definitions
574
284
  # @private
575
- ORDER: ::Integer
285
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
576
286
 
577
287
  # @private
578
- DATATYPE: untyped
288
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
579
289
  end
290
+ end
580
291
 
581
- # The device supports a maximum burst size.
582
- class SupportBurst < Attribute
583
- TYPE: ::Integer
584
-
585
- NAME: ::Symbol
586
-
292
+ class Handle
293
+ module Definitions
587
294
  # @private
588
- ORDER: ::Integer
295
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
589
296
 
590
297
  # @private
591
- DATATYPE: untyped
298
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
592
299
  end
300
+ end
593
301
 
594
- # The device supports priority scheduling.
595
- class SupportPriority < Attribute
596
- TYPE: ::Integer
597
-
598
- NAME: ::Symbol
599
-
302
+ class LeafInfo
303
+ module Definitions
600
304
  # @private
601
- ORDER: ::Integer
305
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
602
306
 
603
307
  # @private
604
- DATATYPE: untyped
308
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
605
309
  end
310
+ end
606
311
 
607
- # The device supports weighted round robin scheduling.
608
- class SupportWeight < Attribute
609
- TYPE: ::Integer
610
-
611
- NAME: ::Symbol
612
-
312
+ class Caps
313
+ module Definitions
613
314
  # @private
614
- ORDER: ::Integer
315
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
615
316
 
616
317
  # @private
617
- DATATYPE: untyped
318
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
618
319
  end
619
-
620
- # @private
621
- BY_NAME: Hash[::Symbol, Attribute]
622
-
623
- # @private
624
- BY_TYPE: Hash[::Integer, Attribute]
625
-
626
- # Interface index queried for shapers capabilities.
627
- # @rbs return: ::Integer
628
- # @return [Integer]
629
- # @see Ifindex
630
- def ifindex: () -> ::Integer
631
-
632
- # The scope to which the queried capabilities apply.
633
- #
634
- # Known enum values are defined in {Enums::Scope}.
635
- # @rbs return: ::Integer
636
- # @return [Integer]
637
- # @see Scope
638
- def scope: () -> ::Integer
639
-
640
- # The device accepts 'bps' metric for bw-min, bw-max and burst.
641
- # @rbs return: ::Integer
642
- # @return [Integer]
643
- # @see SupportMetricBps
644
- def support_metric_bps: () -> ::Integer
645
-
646
- # The device accepts 'pps' metric for bw-min, bw-max and burst.
647
- # @rbs return: ::Integer
648
- # @return [Integer]
649
- # @see SupportMetricPps
650
- def support_metric_pps: () -> ::Integer
651
-
652
- # The device supports nesting shaper belonging to this scope
653
- # below 'node' scoped shapers. Only 'queue' and 'node'
654
- # scope can have flag 'support-nesting'.
655
- # @rbs return: ::Integer
656
- # @return [Integer]
657
- # @see SupportNesting
658
- def support_nesting: () -> ::Integer
659
-
660
- # The device supports a minimum guaranteed B/W.
661
- # @rbs return: ::Integer
662
- # @return [Integer]
663
- # @see SupportBwMin
664
- def support_bw_min: () -> ::Integer
665
-
666
- # The device supports maximum B/W shaping.
667
- # @rbs return: ::Integer
668
- # @return [Integer]
669
- # @see SupportBwMax
670
- def support_bw_max: () -> ::Integer
671
-
672
- # The device supports a maximum burst size.
673
- # @rbs return: ::Integer
674
- # @return [Integer]
675
- # @see SupportBurst
676
- def support_burst: () -> ::Integer
677
-
678
- # The device supports priority scheduling.
679
- # @rbs return: ::Integer
680
- # @return [Integer]
681
- # @see SupportPriority
682
- def support_priority: () -> ::Integer
683
-
684
- # The device supports weighted round robin scheduling.
685
- # @rbs return: ::Integer
686
- # @return [Integer]
687
- # @see SupportWeight
688
- def support_weight: () -> ::Integer
689
-
690
- # Looks up Attribute class by name.
691
- # @rbs name: Symbol
692
- # @rbs return: Attribute
693
- # @param [Symbol] name
694
- # @return [Attribute]
695
- def self.by_name: (Symbol name) -> Attribute
696
-
697
- # Looks up Attribute class by type value.
698
- # @rbs type: Integer
699
- # @rbs return: Attribute
700
- # @param [Integer] type
701
- # @return [Attribute]
702
- def self.by_type: (Integer type) -> Attribute
703
320
  end
704
321
  end
705
322
 
706
323
  module Messages
707
324
  # Get information about a shaper for a given device.
708
- class DoGetRequest < ::Nl::Genl::Message
325
+ class DoGetRequest < ::Nl::Message
709
326
  TYPE: ::Integer
710
327
 
711
328
  FIXED_HEADER: untyped
@@ -714,21 +331,32 @@ module Nl
714
331
 
715
332
  ATTRIBUTES: untyped
716
333
 
334
+ include ATTRIBUTE_SET::Definitions
335
+
336
+ def initialize: (?untyped attributes) -> untyped
337
+
338
+ # @private
339
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
340
+
341
+ # Decodes a message payload from the decoder into a new instance.
342
+ # @rbs (::Nl::Decoder decoder) -> instance
343
+ def self.decode: (::Nl::Decoder decoder) -> instance
344
+
345
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
346
+
717
347
  # Unique identifier for the given shaper inside the owning device.
718
348
  # @rbs return: AttributeSets::Handle
719
349
  # @return [AttributeSets::Handle]
720
- # @see AttributeSets::NetShaper::Handle
721
350
  def handle: () -> AttributeSets::Handle
722
351
 
723
352
  # Interface index owning the specified shaper.
724
353
  # @rbs return: ::Integer
725
354
  # @return [Integer]
726
- # @see AttributeSets::NetShaper::Ifindex
727
355
  def ifindex: () -> ::Integer
728
356
  end
729
357
 
730
358
  # Get information about a shaper for a given device.
731
- class DoGetReply < ::Nl::Genl::Message
359
+ class DoGetReply < ::Nl::Message
732
360
  TYPE: ::Integer
733
361
 
734
362
  FIXED_HEADER: untyped
@@ -737,10 +365,22 @@ module Nl
737
365
 
738
366
  ATTRIBUTES: untyped
739
367
 
368
+ include ATTRIBUTE_SET::Definitions
369
+
370
+ def initialize: (?untyped attributes) -> untyped
371
+
372
+ # @private
373
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
374
+
375
+ # Decodes a message payload from the decoder into a new instance.
376
+ # @rbs (::Nl::Decoder decoder) -> instance
377
+ def self.decode: (::Nl::Decoder decoder) -> instance
378
+
379
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
380
+
740
381
  # Unique identifier for the given shaper inside the owning device.
741
382
  # @rbs return: AttributeSets::Handle
742
383
  # @return [AttributeSets::Handle]
743
- # @see AttributeSets::NetShaper::Handle
744
384
  def handle: () -> AttributeSets::Handle
745
385
 
746
386
  # Metric used by the given shaper for bw-min, bw-max and burst.
@@ -748,33 +388,28 @@ module Nl
748
388
  # Known enum values are defined in {Enums::Metric}.
749
389
  # @rbs return: ::Integer
750
390
  # @return [Integer]
751
- # @see AttributeSets::NetShaper::Metric
752
391
  def metric: () -> ::Integer
753
392
 
754
393
  # Guaranteed bandwidth for the given shaper.
755
394
  # @rbs return: ::Integer
756
395
  # @return [Integer]
757
- # @see AttributeSets::NetShaper::BwMin
758
396
  def bw_min: () -> ::Integer
759
397
 
760
398
  # Maximum bandwidth for the given shaper or 0 when unlimited.
761
399
  # @rbs return: ::Integer
762
400
  # @return [Integer]
763
- # @see AttributeSets::NetShaper::BwMax
764
401
  def bw_max: () -> ::Integer
765
402
 
766
403
  # Maximum burst-size for shaping. Should not be interpreted
767
404
  # as a quantum.
768
405
  # @rbs return: ::Integer
769
406
  # @return [Integer]
770
- # @see AttributeSets::NetShaper::Burst
771
407
  def burst: () -> ::Integer
772
408
 
773
409
  # Scheduling priority for the given shaper. The priority
774
410
  # scheduling is applied to sibling shapers.
775
411
  # @rbs return: ::Integer
776
412
  # @return [Integer]
777
- # @see AttributeSets::NetShaper::Priority
778
413
  def priority: () -> ::Integer
779
414
 
780
415
  # Relative weight for round robin scheduling of the
@@ -783,25 +418,22 @@ module Nl
783
418
  # with the same priority.
784
419
  # @rbs return: ::Integer
785
420
  # @return [Integer]
786
- # @see AttributeSets::NetShaper::Weight
787
421
  def weight: () -> ::Integer
788
422
 
789
423
  # Interface index owning the specified shaper.
790
424
  # @rbs return: ::Integer
791
425
  # @return [Integer]
792
- # @see AttributeSets::NetShaper::Ifindex
793
426
  def ifindex: () -> ::Integer
794
427
 
795
428
  # Identifier for the parent of the affected shaper.
796
429
  # Only needed for `group` operation.
797
430
  # @rbs return: AttributeSets::Handle
798
431
  # @return [AttributeSets::Handle]
799
- # @see AttributeSets::NetShaper::Parent
800
432
  def parent: () -> AttributeSets::Handle
801
433
  end
802
434
 
803
435
  # Get information about a shaper for a given device.
804
- class DumpGetRequest < ::Nl::Genl::Message
436
+ class DumpGetRequest < ::Nl::Message
805
437
  TYPE: ::Integer
806
438
 
807
439
  FIXED_HEADER: untyped
@@ -810,15 +442,27 @@ module Nl
810
442
 
811
443
  ATTRIBUTES: untyped
812
444
 
445
+ include ATTRIBUTE_SET::Definitions
446
+
447
+ def initialize: (?untyped attributes) -> untyped
448
+
449
+ # @private
450
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
451
+
452
+ # Decodes a message payload from the decoder into a new instance.
453
+ # @rbs (::Nl::Decoder decoder) -> instance
454
+ def self.decode: (::Nl::Decoder decoder) -> instance
455
+
456
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
457
+
813
458
  # Interface index owning the specified shaper.
814
459
  # @rbs return: ::Integer
815
460
  # @return [Integer]
816
- # @see AttributeSets::NetShaper::Ifindex
817
461
  def ifindex: () -> ::Integer
818
462
  end
819
463
 
820
464
  # Get information about a shaper for a given device.
821
- class DumpGetReply < ::Nl::Genl::Message
465
+ class DumpGetReply < ::Nl::Message
822
466
  TYPE: ::Integer
823
467
 
824
468
  FIXED_HEADER: untyped
@@ -827,10 +471,22 @@ module Nl
827
471
 
828
472
  ATTRIBUTES: untyped
829
473
 
474
+ include ATTRIBUTE_SET::Definitions
475
+
476
+ def initialize: (?untyped attributes) -> untyped
477
+
478
+ # @private
479
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
480
+
481
+ # Decodes a message payload from the decoder into a new instance.
482
+ # @rbs (::Nl::Decoder decoder) -> instance
483
+ def self.decode: (::Nl::Decoder decoder) -> instance
484
+
485
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
486
+
830
487
  # Unique identifier for the given shaper inside the owning device.
831
488
  # @rbs return: AttributeSets::Handle
832
489
  # @return [AttributeSets::Handle]
833
- # @see AttributeSets::NetShaper::Handle
834
490
  def handle: () -> AttributeSets::Handle
835
491
 
836
492
  # Metric used by the given shaper for bw-min, bw-max and burst.
@@ -838,33 +494,28 @@ module Nl
838
494
  # Known enum values are defined in {Enums::Metric}.
839
495
  # @rbs return: ::Integer
840
496
  # @return [Integer]
841
- # @see AttributeSets::NetShaper::Metric
842
497
  def metric: () -> ::Integer
843
498
 
844
499
  # Guaranteed bandwidth for the given shaper.
845
500
  # @rbs return: ::Integer
846
501
  # @return [Integer]
847
- # @see AttributeSets::NetShaper::BwMin
848
502
  def bw_min: () -> ::Integer
849
503
 
850
504
  # Maximum bandwidth for the given shaper or 0 when unlimited.
851
505
  # @rbs return: ::Integer
852
506
  # @return [Integer]
853
- # @see AttributeSets::NetShaper::BwMax
854
507
  def bw_max: () -> ::Integer
855
508
 
856
509
  # Maximum burst-size for shaping. Should not be interpreted
857
510
  # as a quantum.
858
511
  # @rbs return: ::Integer
859
512
  # @return [Integer]
860
- # @see AttributeSets::NetShaper::Burst
861
513
  def burst: () -> ::Integer
862
514
 
863
515
  # Scheduling priority for the given shaper. The priority
864
516
  # scheduling is applied to sibling shapers.
865
517
  # @rbs return: ::Integer
866
518
  # @return [Integer]
867
- # @see AttributeSets::NetShaper::Priority
868
519
  def priority: () -> ::Integer
869
520
 
870
521
  # Relative weight for round robin scheduling of the
@@ -873,20 +524,17 @@ module Nl
873
524
  # with the same priority.
874
525
  # @rbs return: ::Integer
875
526
  # @return [Integer]
876
- # @see AttributeSets::NetShaper::Weight
877
527
  def weight: () -> ::Integer
878
528
 
879
529
  # Interface index owning the specified shaper.
880
530
  # @rbs return: ::Integer
881
531
  # @return [Integer]
882
- # @see AttributeSets::NetShaper::Ifindex
883
532
  def ifindex: () -> ::Integer
884
533
 
885
534
  # Identifier for the parent of the affected shaper.
886
535
  # Only needed for `group` operation.
887
536
  # @rbs return: AttributeSets::Handle
888
537
  # @return [AttributeSets::Handle]
889
- # @see AttributeSets::NetShaper::Parent
890
538
  def parent: () -> AttributeSets::Handle
891
539
  end
892
540
 
@@ -896,7 +544,7 @@ module Nl
896
544
  #
897
545
  #
898
546
  # Requires CAP_NET_ADMIN in the initial user namespace.
899
- class DoSetRequest < ::Nl::Genl::Message
547
+ class DoSetRequest < ::Nl::Message
900
548
  TYPE: ::Integer
901
549
 
902
550
  FIXED_HEADER: untyped
@@ -905,10 +553,22 @@ module Nl
905
553
 
906
554
  ATTRIBUTES: untyped
907
555
 
556
+ include ATTRIBUTE_SET::Definitions
557
+
558
+ def initialize: (?untyped attributes) -> untyped
559
+
560
+ # @private
561
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
562
+
563
+ # Decodes a message payload from the decoder into a new instance.
564
+ # @rbs (::Nl::Decoder decoder) -> instance
565
+ def self.decode: (::Nl::Decoder decoder) -> instance
566
+
567
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
568
+
908
569
  # Unique identifier for the given shaper inside the owning device.
909
570
  # @rbs return: AttributeSets::Handle
910
571
  # @return [AttributeSets::Handle]
911
- # @see AttributeSets::NetShaper::Handle
912
572
  def handle: () -> AttributeSets::Handle
913
573
 
914
574
  # Metric used by the given shaper for bw-min, bw-max and burst.
@@ -916,33 +576,28 @@ module Nl
916
576
  # Known enum values are defined in {Enums::Metric}.
917
577
  # @rbs return: ::Integer
918
578
  # @return [Integer]
919
- # @see AttributeSets::NetShaper::Metric
920
579
  def metric: () -> ::Integer
921
580
 
922
581
  # Guaranteed bandwidth for the given shaper.
923
582
  # @rbs return: ::Integer
924
583
  # @return [Integer]
925
- # @see AttributeSets::NetShaper::BwMin
926
584
  def bw_min: () -> ::Integer
927
585
 
928
586
  # Maximum bandwidth for the given shaper or 0 when unlimited.
929
587
  # @rbs return: ::Integer
930
588
  # @return [Integer]
931
- # @see AttributeSets::NetShaper::BwMax
932
589
  def bw_max: () -> ::Integer
933
590
 
934
591
  # Maximum burst-size for shaping. Should not be interpreted
935
592
  # as a quantum.
936
593
  # @rbs return: ::Integer
937
594
  # @return [Integer]
938
- # @see AttributeSets::NetShaper::Burst
939
595
  def burst: () -> ::Integer
940
596
 
941
597
  # Scheduling priority for the given shaper. The priority
942
598
  # scheduling is applied to sibling shapers.
943
599
  # @rbs return: ::Integer
944
600
  # @return [Integer]
945
- # @see AttributeSets::NetShaper::Priority
946
601
  def priority: () -> ::Integer
947
602
 
948
603
  # Relative weight for round robin scheduling of the
@@ -951,13 +606,11 @@ module Nl
951
606
  # with the same priority.
952
607
  # @rbs return: ::Integer
953
608
  # @return [Integer]
954
- # @see AttributeSets::NetShaper::Weight
955
609
  def weight: () -> ::Integer
956
610
 
957
611
  # Interface index owning the specified shaper.
958
612
  # @rbs return: ::Integer
959
613
  # @return [Integer]
960
- # @see AttributeSets::NetShaper::Ifindex
961
614
  def ifindex: () -> ::Integer
962
615
  end
963
616
 
@@ -975,7 +628,7 @@ module Nl
975
628
  #
976
629
  #
977
630
  # Requires CAP_NET_ADMIN in the initial user namespace.
978
- class DoDeleteRequest < ::Nl::Genl::Message
631
+ class DoDeleteRequest < ::Nl::Message
979
632
  TYPE: ::Integer
980
633
 
981
634
  FIXED_HEADER: untyped
@@ -984,16 +637,27 @@ module Nl
984
637
 
985
638
  ATTRIBUTES: untyped
986
639
 
640
+ include ATTRIBUTE_SET::Definitions
641
+
642
+ def initialize: (?untyped attributes) -> untyped
643
+
644
+ # @private
645
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
646
+
647
+ # Decodes a message payload from the decoder into a new instance.
648
+ # @rbs (::Nl::Decoder decoder) -> instance
649
+ def self.decode: (::Nl::Decoder decoder) -> instance
650
+
651
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
652
+
987
653
  # Unique identifier for the given shaper inside the owning device.
988
654
  # @rbs return: AttributeSets::Handle
989
655
  # @return [AttributeSets::Handle]
990
- # @see AttributeSets::NetShaper::Handle
991
656
  def handle: () -> AttributeSets::Handle
992
657
 
993
658
  # Interface index owning the specified shaper.
994
659
  # @rbs return: ::Integer
995
660
  # @return [Integer]
996
- # @see AttributeSets::NetShaper::Ifindex
997
661
  def ifindex: () -> ::Integer
998
662
  end
999
663
 
@@ -1019,7 +683,7 @@ module Nl
1019
683
  #
1020
684
  #
1021
685
  # Requires CAP_NET_ADMIN in the initial user namespace.
1022
- class DoGroupRequest < ::Nl::Genl::Message
686
+ class DoGroupRequest < ::Nl::Message
1023
687
  TYPE: ::Integer
1024
688
 
1025
689
  FIXED_HEADER: untyped
@@ -1028,10 +692,22 @@ module Nl
1028
692
 
1029
693
  ATTRIBUTES: untyped
1030
694
 
695
+ include ATTRIBUTE_SET::Definitions
696
+
697
+ def initialize: (?untyped attributes) -> untyped
698
+
699
+ # @private
700
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
701
+
702
+ # Decodes a message payload from the decoder into a new instance.
703
+ # @rbs (::Nl::Decoder decoder) -> instance
704
+ def self.decode: (::Nl::Decoder decoder) -> instance
705
+
706
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
707
+
1031
708
  # Unique identifier for the given shaper inside the owning device.
1032
709
  # @rbs return: AttributeSets::Handle
1033
710
  # @return [AttributeSets::Handle]
1034
- # @see AttributeSets::NetShaper::Handle
1035
711
  def handle: () -> AttributeSets::Handle
1036
712
 
1037
713
  # Metric used by the given shaper for bw-min, bw-max and burst.
@@ -1039,33 +715,28 @@ module Nl
1039
715
  # Known enum values are defined in {Enums::Metric}.
1040
716
  # @rbs return: ::Integer
1041
717
  # @return [Integer]
1042
- # @see AttributeSets::NetShaper::Metric
1043
718
  def metric: () -> ::Integer
1044
719
 
1045
720
  # Guaranteed bandwidth for the given shaper.
1046
721
  # @rbs return: ::Integer
1047
722
  # @return [Integer]
1048
- # @see AttributeSets::NetShaper::BwMin
1049
723
  def bw_min: () -> ::Integer
1050
724
 
1051
725
  # Maximum bandwidth for the given shaper or 0 when unlimited.
1052
726
  # @rbs return: ::Integer
1053
727
  # @return [Integer]
1054
- # @see AttributeSets::NetShaper::BwMax
1055
728
  def bw_max: () -> ::Integer
1056
729
 
1057
730
  # Maximum burst-size for shaping. Should not be interpreted
1058
731
  # as a quantum.
1059
732
  # @rbs return: ::Integer
1060
733
  # @return [Integer]
1061
- # @see AttributeSets::NetShaper::Burst
1062
734
  def burst: () -> ::Integer
1063
735
 
1064
736
  # Scheduling priority for the given shaper. The priority
1065
737
  # scheduling is applied to sibling shapers.
1066
738
  # @rbs return: ::Integer
1067
739
  # @return [Integer]
1068
- # @see AttributeSets::NetShaper::Priority
1069
740
  def priority: () -> ::Integer
1070
741
 
1071
742
  # Relative weight for round robin scheduling of the
@@ -1074,26 +745,22 @@ module Nl
1074
745
  # with the same priority.
1075
746
  # @rbs return: ::Integer
1076
747
  # @return [Integer]
1077
- # @see AttributeSets::NetShaper::Weight
1078
748
  def weight: () -> ::Integer
1079
749
 
1080
750
  # Interface index owning the specified shaper.
1081
751
  # @rbs return: ::Integer
1082
752
  # @return [Integer]
1083
- # @see AttributeSets::NetShaper::Ifindex
1084
753
  def ifindex: () -> ::Integer
1085
754
 
1086
755
  # Identifier for the parent of the affected shaper.
1087
756
  # Only needed for `group` operation.
1088
757
  # @rbs return: AttributeSets::Handle
1089
758
  # @return [AttributeSets::Handle]
1090
- # @see AttributeSets::NetShaper::Parent
1091
759
  def parent: () -> AttributeSets::Handle
1092
760
 
1093
761
  # Describes a set of leaves shapers for a `group` operation.
1094
762
  # @rbs return: ::Array[AttributeSets::LeafInfo]
1095
763
  # @return [Array<AttributeSets::LeafInfo>]
1096
- # @see AttributeSets::NetShaper::Leaves
1097
764
  def leaves: () -> ::Array[AttributeSets::LeafInfo]
1098
765
  end
1099
766
 
@@ -1119,7 +786,7 @@ module Nl
1119
786
  #
1120
787
  #
1121
788
  # Requires CAP_NET_ADMIN in the initial user namespace.
1122
- class DoGroupReply < ::Nl::Genl::Message
789
+ class DoGroupReply < ::Nl::Message
1123
790
  TYPE: ::Integer
1124
791
 
1125
792
  FIXED_HEADER: untyped
@@ -1128,22 +795,33 @@ module Nl
1128
795
 
1129
796
  ATTRIBUTES: untyped
1130
797
 
798
+ include ATTRIBUTE_SET::Definitions
799
+
800
+ def initialize: (?untyped attributes) -> untyped
801
+
802
+ # @private
803
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
804
+
805
+ # Decodes a message payload from the decoder into a new instance.
806
+ # @rbs (::Nl::Decoder decoder) -> instance
807
+ def self.decode: (::Nl::Decoder decoder) -> instance
808
+
809
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
810
+
1131
811
  # Unique identifier for the given shaper inside the owning device.
1132
812
  # @rbs return: AttributeSets::Handle
1133
813
  # @return [AttributeSets::Handle]
1134
- # @see AttributeSets::NetShaper::Handle
1135
814
  def handle: () -> AttributeSets::Handle
1136
815
 
1137
816
  # Interface index owning the specified shaper.
1138
817
  # @rbs return: ::Integer
1139
818
  # @return [Integer]
1140
- # @see AttributeSets::NetShaper::Ifindex
1141
819
  def ifindex: () -> ::Integer
1142
820
  end
1143
821
 
1144
822
  # Get the shaper capabilities supported by the given device
1145
823
  # for the specified scope.
1146
- class DoCapGetRequest < ::Nl::Genl::Message
824
+ class DoCapGetRequest < ::Nl::Message
1147
825
  TYPE: ::Integer
1148
826
 
1149
827
  FIXED_HEADER: untyped
@@ -1152,10 +830,22 @@ module Nl
1152
830
 
1153
831
  ATTRIBUTES: untyped
1154
832
 
833
+ include ATTRIBUTE_SET::Definitions
834
+
835
+ def initialize: (?untyped attributes) -> untyped
836
+
837
+ # @private
838
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
839
+
840
+ # Decodes a message payload from the decoder into a new instance.
841
+ # @rbs (::Nl::Decoder decoder) -> instance
842
+ def self.decode: (::Nl::Decoder decoder) -> instance
843
+
844
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
845
+
1155
846
  # Interface index queried for shapers capabilities.
1156
847
  # @rbs return: ::Integer
1157
848
  # @return [Integer]
1158
- # @see AttributeSets::Caps::Ifindex
1159
849
  def ifindex: () -> ::Integer
1160
850
 
1161
851
  # The scope to which the queried capabilities apply.
@@ -1163,13 +853,12 @@ module Nl
1163
853
  # Known enum values are defined in {Enums::Scope}.
1164
854
  # @rbs return: ::Integer
1165
855
  # @return [Integer]
1166
- # @see AttributeSets::Caps::Scope
1167
856
  def scope: () -> ::Integer
1168
857
  end
1169
858
 
1170
859
  # Get the shaper capabilities supported by the given device
1171
860
  # for the specified scope.
1172
- class DoCapGetReply < ::Nl::Genl::Message
861
+ class DoCapGetReply < ::Nl::Message
1173
862
  TYPE: ::Integer
1174
863
 
1175
864
  FIXED_HEADER: untyped
@@ -1178,10 +867,22 @@ module Nl
1178
867
 
1179
868
  ATTRIBUTES: untyped
1180
869
 
870
+ include ATTRIBUTE_SET::Definitions
871
+
872
+ def initialize: (?untyped attributes) -> untyped
873
+
874
+ # @private
875
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
876
+
877
+ # Decodes a message payload from the decoder into a new instance.
878
+ # @rbs (::Nl::Decoder decoder) -> instance
879
+ def self.decode: (::Nl::Decoder decoder) -> instance
880
+
881
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
882
+
1181
883
  # Interface index queried for shapers capabilities.
1182
884
  # @rbs return: ::Integer
1183
885
  # @return [Integer]
1184
- # @see AttributeSets::Caps::Ifindex
1185
886
  def ifindex: () -> ::Integer
1186
887
 
1187
888
  # The scope to which the queried capabilities apply.
@@ -1189,19 +890,16 @@ module Nl
1189
890
  # Known enum values are defined in {Enums::Scope}.
1190
891
  # @rbs return: ::Integer
1191
892
  # @return [Integer]
1192
- # @see AttributeSets::Caps::Scope
1193
893
  def scope: () -> ::Integer
1194
894
 
1195
895
  # The device accepts 'bps' metric for bw-min, bw-max and burst.
1196
896
  # @rbs return: ::Integer
1197
897
  # @return [Integer]
1198
- # @see AttributeSets::Caps::SupportMetricBps
1199
898
  def support_metric_bps: () -> ::Integer
1200
899
 
1201
900
  # The device accepts 'pps' metric for bw-min, bw-max and burst.
1202
901
  # @rbs return: ::Integer
1203
902
  # @return [Integer]
1204
- # @see AttributeSets::Caps::SupportMetricPps
1205
903
  def support_metric_pps: () -> ::Integer
1206
904
 
1207
905
  # The device supports nesting shaper belonging to this scope
@@ -1209,43 +907,37 @@ module Nl
1209
907
  # scope can have flag 'support-nesting'.
1210
908
  # @rbs return: ::Integer
1211
909
  # @return [Integer]
1212
- # @see AttributeSets::Caps::SupportNesting
1213
910
  def support_nesting: () -> ::Integer
1214
911
 
1215
912
  # The device supports a minimum guaranteed B/W.
1216
913
  # @rbs return: ::Integer
1217
914
  # @return [Integer]
1218
- # @see AttributeSets::Caps::SupportBwMin
1219
915
  def support_bw_min: () -> ::Integer
1220
916
 
1221
917
  # The device supports maximum B/W shaping.
1222
918
  # @rbs return: ::Integer
1223
919
  # @return [Integer]
1224
- # @see AttributeSets::Caps::SupportBwMax
1225
920
  def support_bw_max: () -> ::Integer
1226
921
 
1227
922
  # The device supports a maximum burst size.
1228
923
  # @rbs return: ::Integer
1229
924
  # @return [Integer]
1230
- # @see AttributeSets::Caps::SupportBurst
1231
925
  def support_burst: () -> ::Integer
1232
926
 
1233
927
  # The device supports priority scheduling.
1234
928
  # @rbs return: ::Integer
1235
929
  # @return [Integer]
1236
- # @see AttributeSets::Caps::SupportPriority
1237
930
  def support_priority: () -> ::Integer
1238
931
 
1239
932
  # The device supports weighted round robin scheduling.
1240
933
  # @rbs return: ::Integer
1241
934
  # @return [Integer]
1242
- # @see AttributeSets::Caps::SupportWeight
1243
935
  def support_weight: () -> ::Integer
1244
936
  end
1245
937
 
1246
938
  # Get the shaper capabilities supported by the given device
1247
939
  # for the specified scope.
1248
- class DumpCapGetRequest < ::Nl::Genl::Message
940
+ class DumpCapGetRequest < ::Nl::Message
1249
941
  TYPE: ::Integer
1250
942
 
1251
943
  FIXED_HEADER: untyped
@@ -1254,16 +946,28 @@ module Nl
1254
946
 
1255
947
  ATTRIBUTES: untyped
1256
948
 
949
+ include ATTRIBUTE_SET::Definitions
950
+
951
+ def initialize: (?untyped attributes) -> untyped
952
+
953
+ # @private
954
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
955
+
956
+ # Decodes a message payload from the decoder into a new instance.
957
+ # @rbs (::Nl::Decoder decoder) -> instance
958
+ def self.decode: (::Nl::Decoder decoder) -> instance
959
+
960
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
961
+
1257
962
  # Interface index queried for shapers capabilities.
1258
963
  # @rbs return: ::Integer
1259
964
  # @return [Integer]
1260
- # @see AttributeSets::Caps::Ifindex
1261
965
  def ifindex: () -> ::Integer
1262
966
  end
1263
967
 
1264
968
  # Get the shaper capabilities supported by the given device
1265
969
  # for the specified scope.
1266
- class DumpCapGetReply < ::Nl::Genl::Message
970
+ class DumpCapGetReply < ::Nl::Message
1267
971
  TYPE: ::Integer
1268
972
 
1269
973
  FIXED_HEADER: untyped
@@ -1272,10 +976,22 @@ module Nl
1272
976
 
1273
977
  ATTRIBUTES: untyped
1274
978
 
979
+ include ATTRIBUTE_SET::Definitions
980
+
981
+ def initialize: (?untyped attributes) -> untyped
982
+
983
+ # @private
984
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
985
+
986
+ # Decodes a message payload from the decoder into a new instance.
987
+ # @rbs (::Nl::Decoder decoder) -> instance
988
+ def self.decode: (::Nl::Decoder decoder) -> instance
989
+
990
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
991
+
1275
992
  # Interface index queried for shapers capabilities.
1276
993
  # @rbs return: ::Integer
1277
994
  # @return [Integer]
1278
- # @see AttributeSets::Caps::Ifindex
1279
995
  def ifindex: () -> ::Integer
1280
996
 
1281
997
  # The scope to which the queried capabilities apply.
@@ -1283,19 +999,16 @@ module Nl
1283
999
  # Known enum values are defined in {Enums::Scope}.
1284
1000
  # @rbs return: ::Integer
1285
1001
  # @return [Integer]
1286
- # @see AttributeSets::Caps::Scope
1287
1002
  def scope: () -> ::Integer
1288
1003
 
1289
1004
  # The device accepts 'bps' metric for bw-min, bw-max and burst.
1290
1005
  # @rbs return: ::Integer
1291
1006
  # @return [Integer]
1292
- # @see AttributeSets::Caps::SupportMetricBps
1293
1007
  def support_metric_bps: () -> ::Integer
1294
1008
 
1295
1009
  # The device accepts 'pps' metric for bw-min, bw-max and burst.
1296
1010
  # @rbs return: ::Integer
1297
1011
  # @return [Integer]
1298
- # @see AttributeSets::Caps::SupportMetricPps
1299
1012
  def support_metric_pps: () -> ::Integer
1300
1013
 
1301
1014
  # The device supports nesting shaper belonging to this scope
@@ -1303,37 +1016,31 @@ module Nl
1303
1016
  # scope can have flag 'support-nesting'.
1304
1017
  # @rbs return: ::Integer
1305
1018
  # @return [Integer]
1306
- # @see AttributeSets::Caps::SupportNesting
1307
1019
  def support_nesting: () -> ::Integer
1308
1020
 
1309
1021
  # The device supports a minimum guaranteed B/W.
1310
1022
  # @rbs return: ::Integer
1311
1023
  # @return [Integer]
1312
- # @see AttributeSets::Caps::SupportBwMin
1313
1024
  def support_bw_min: () -> ::Integer
1314
1025
 
1315
1026
  # The device supports maximum B/W shaping.
1316
1027
  # @rbs return: ::Integer
1317
1028
  # @return [Integer]
1318
- # @see AttributeSets::Caps::SupportBwMax
1319
1029
  def support_bw_max: () -> ::Integer
1320
1030
 
1321
1031
  # The device supports a maximum burst size.
1322
1032
  # @rbs return: ::Integer
1323
1033
  # @return [Integer]
1324
- # @see AttributeSets::Caps::SupportBurst
1325
1034
  def support_burst: () -> ::Integer
1326
1035
 
1327
1036
  # The device supports priority scheduling.
1328
1037
  # @rbs return: ::Integer
1329
1038
  # @return [Integer]
1330
- # @see AttributeSets::Caps::SupportPriority
1331
1039
  def support_priority: () -> ::Integer
1332
1040
 
1333
1041
  # The device supports weighted round robin scheduling.
1334
1042
  # @rbs return: ::Integer
1335
1043
  # @return [Integer]
1336
- # @see AttributeSets::Caps::SupportWeight
1337
1044
  def support_weight: () -> ::Integer
1338
1045
  end
1339
1046
  end