nl-linux 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +5 -0
  3. data/CHANGELOG.md +6 -0
  4. data/Rakefile +14 -2
  5. data/generated/nl/linux/binder.rb +172 -44
  6. data/generated/nl/linux/conntrack.rb +1293 -370
  7. data/generated/nl/linux/dev_energymodel.rb +278 -93
  8. data/generated/nl/linux/devlink.rb +5654 -1954
  9. data/generated/nl/linux/dpll.rb +1838 -669
  10. data/generated/nl/linux/drm_ras.rb +234 -72
  11. data/generated/nl/linux/ethtool.rb +6683 -2885
  12. data/generated/nl/linux/fou.rb +308 -129
  13. data/generated/nl/linux/handshake.rb +277 -99
  14. data/generated/nl/linux/lockd.rb +88 -33
  15. data/generated/nl/linux/mptcp_pm.rb +639 -186
  16. data/generated/nl/linux/net_shaper.rb +782 -224
  17. data/generated/nl/linux/netdev.rb +2105 -631
  18. data/generated/nl/linux/nfsd.rb +1030 -358
  19. data/generated/nl/linux/nftables.rb +5041 -1612
  20. data/generated/nl/linux/nl80211.rb +4531 -871
  21. data/generated/nl/linux/nlctrl.rb +411 -119
  22. data/generated/nl/linux/ovpn.rb +1211 -293
  23. data/generated/nl/linux/ovs_datapath.rb +271 -106
  24. data/generated/nl/linux/ovs_flow.rb +1819 -354
  25. data/generated/nl/linux/ovs_packet.rb +257 -82
  26. data/generated/nl/linux/ovs_vport.rb +334 -132
  27. data/generated/nl/linux/psp.rb +916 -281
  28. data/generated/nl/linux/rt_addr.rb +369 -166
  29. data/generated/nl/linux/rt_link.rb +6708 -1450
  30. data/generated/nl/linux/rt_neigh.rb +919 -364
  31. data/generated/nl/linux/rt_route.rb +1034 -448
  32. data/generated/nl/linux/rt_rule.rb +775 -395
  33. data/generated/nl/linux/sunrpc_cache.rb +297 -102
  34. data/generated/nl/linux/tc.rb +9989 -1780
  35. data/generated/nl/linux/tcp_metrics.rb +327 -105
  36. data/generated/nl/linux/team.rb +279 -93
  37. data/generated/nl/linux/wireguard.rb +432 -95
  38. data/generated/nl/linux.rb +1 -0
  39. data/lib/nl/linux/nlctrl_resolver.rb +31 -0
  40. data/lib/nl/linux/version.rb +1 -1
  41. data/sig/generated/nl/linux/binder.rbs +366 -0
  42. data/sig/generated/nl/linux/conntrack.rbs +2787 -0
  43. data/sig/generated/nl/linux/dev_energymodel.rbs +636 -0
  44. data/sig/generated/nl/linux/devlink.rbs +12496 -0
  45. data/sig/generated/nl/linux/dpll.rbs +3461 -0
  46. data/sig/generated/nl/linux/drm_ras.rbs +553 -0
  47. data/sig/generated/nl/linux/ethtool.rbs +15291 -0
  48. data/sig/generated/nl/linux/fou.rbs +702 -0
  49. data/sig/generated/nl/linux/handshake.rbs +622 -0
  50. data/sig/generated/nl/linux/lockd.rbs +234 -0
  51. data/sig/generated/nl/linux/mptcp_pm.rbs +1511 -0
  52. data/sig/generated/nl/linux/net_shaper.rbs +1645 -0
  53. data/sig/generated/nl/linux/netdev.rbs +4187 -0
  54. data/sig/generated/nl/linux/nfsd.rbs +2520 -0
  55. data/sig/generated/nl/linux/nftables.rbs +10304 -0
  56. data/sig/generated/nl/linux/nl80211.rbs +9786 -0
  57. data/sig/generated/nl/linux/nlctrl.rbs +944 -0
  58. data/sig/generated/nl/linux/nlctrl_resolver.rbs +20 -0
  59. data/sig/generated/nl/linux/ovpn.rbs +2564 -0
  60. data/sig/generated/nl/linux/ovs_datapath.rbs +640 -0
  61. data/sig/generated/nl/linux/ovs_flow.rbs +3659 -0
  62. data/sig/generated/nl/linux/ovs_packet.rbs +540 -0
  63. data/sig/generated/nl/linux/ovs_vport.rbs +777 -0
  64. data/sig/generated/nl/linux/psp.rbs +1846 -0
  65. data/sig/generated/nl/linux/rt_addr.rbs +866 -0
  66. data/sig/generated/nl/linux/rt_link.rbs +13438 -0
  67. data/sig/generated/nl/linux/rt_neigh.rbs +2124 -0
  68. data/sig/generated/nl/linux/rt_route.rbs +2218 -0
  69. data/sig/generated/nl/linux/rt_rule.rbs +1726 -0
  70. data/sig/generated/nl/linux/sunrpc_cache.rbs +739 -0
  71. data/sig/generated/nl/linux/tc.rbs +19931 -0
  72. data/sig/generated/nl/linux/tcp_metrics.rbs +740 -0
  73. data/sig/generated/nl/linux/team.rbs +733 -0
  74. data/sig/generated/nl/linux/version.rbs +7 -0
  75. data/sig/generated/nl/linux/wireguard.rbs +1006 -0
  76. data/sig/generated/nl/linux.rbs +6 -0
  77. data/sig/generated/nl-linux.rbs +2 -0
  78. metadata +46 -7
@@ -0,0 +1,866 @@
1
+ # Generated from generated/nl/linux/rt_addr.rb with RBS::Inline
2
+
3
+ module Nl
4
+ module Linux
5
+ # Address configuration over rtnetlink.
6
+ class RtAddr < ::Nl::Raw::Family
7
+ NAME: ::String
8
+
9
+ PROTONUM: ::Integer
10
+
11
+ # @rbs (?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
12
+ # @rbs | [R] (?executor: executor?, ?notification_capacity: ::Integer?) { (instance) -> R } -> R
13
+ # @overload open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
14
+ # @param [Symbol, nil] executor
15
+ # @param [Integer, nil] notification_capacity
16
+ # @return [RtAddr]
17
+ # @overload open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY, &block)
18
+ # @param [Symbol, nil] executor
19
+ # @param [Integer, nil] notification_capacity
20
+ # @yieldparam [RtAddr] family
21
+ # @return [Object] the result of the block
22
+ def self.open: (?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
23
+
24
+ # @private
25
+ MCAST_GROUPS: Hash[::Symbol, ::Nl::McastGroup]
26
+
27
+ module Flags
28
+ module IfaFlags
29
+ Secondary: ::Integer
30
+
31
+ Nodad: ::Integer
32
+
33
+ Optimistic: ::Integer
34
+
35
+ Dadfailed: ::Integer
36
+
37
+ Homeaddress: ::Integer
38
+
39
+ Deprecated: ::Integer
40
+
41
+ Tentative: ::Integer
42
+
43
+ Permanent: ::Integer
44
+
45
+ Managetempaddr: ::Integer
46
+
47
+ Noprefixroute: ::Integer
48
+
49
+ Mcautojoin: ::Integer
50
+
51
+ StablePrivacy: ::Integer
52
+ end
53
+ end
54
+
55
+ module Structs
56
+ class Ifaddrmsg < Struct[::Integer]
57
+ attr_accessor ifa_family(): ::Integer
58
+
59
+ attr_accessor ifa_prefixlen(): ::Integer
60
+
61
+ attr_accessor ifa_flags(): ::Integer
62
+
63
+ attr_accessor ifa_scope(): ::Integer
64
+
65
+ attr_accessor ifa_index(): ::Integer
66
+
67
+ def self.new: (?::Integer ifa_family, ?::Integer ifa_prefixlen, ?::Integer ifa_flags, ?::Integer ifa_scope, ?::Integer ifa_index) -> instance
68
+ | (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> instance
69
+ end
70
+
71
+ class Ifaddrmsg
72
+ # @!attribute [rw] ifa_family
73
+ # @return [Integer]
74
+ # @!attribute [rw] ifa_prefixlen
75
+ # @return [Integer]
76
+ # @!attribute [rw] ifa_flags
77
+ # @return [Integer]
78
+ # @!attribute [rw] ifa_scope
79
+ # @return [Integer]
80
+ # @!attribute [rw] ifa_index
81
+ # @return [Integer]
82
+ # @private
83
+ MEMBERS: Hash[::Symbol, ::Nl::_DataType]
84
+
85
+ # Decodes the struct.
86
+ # @rbs decoder: ::Nl::Decoder
87
+ # @rbs return: instance
88
+ # @param [Nl::Decoder] decoder
89
+ # @return [self]
90
+ def self.decode: (::Nl::Decoder decoder) -> instance
91
+
92
+ # Encodes the struct.
93
+ # @rbs encoder: ::Nl::Encoder
94
+ # @rbs return: void
95
+ # @param [Nl::Encoder] encoder
96
+ # @return [void]
97
+ def encode: (::Nl::Encoder encoder) -> void
98
+ end
99
+
100
+ class IfaCacheinfo < Struct[::Integer]
101
+ attr_accessor ifa_prefered(): ::Integer
102
+
103
+ attr_accessor ifa_valid(): ::Integer
104
+
105
+ attr_accessor cstamp(): ::Integer
106
+
107
+ attr_accessor tstamp(): ::Integer
108
+
109
+ def self.new: (?::Integer ifa_prefered, ?::Integer ifa_valid, ?::Integer cstamp, ?::Integer tstamp) -> instance
110
+ | (?ifa_prefered: ::Integer, ?ifa_valid: ::Integer, ?cstamp: ::Integer, ?tstamp: ::Integer) -> instance
111
+ end
112
+
113
+ class IfaCacheinfo
114
+ # @!attribute [rw] ifa_prefered
115
+ # @return [Integer]
116
+ # @!attribute [rw] ifa_valid
117
+ # @return [Integer]
118
+ # @!attribute [rw] cstamp
119
+ # @return [Integer]
120
+ # @!attribute [rw] tstamp
121
+ # @return [Integer]
122
+ # @private
123
+ MEMBERS: Hash[::Symbol, ::Nl::_DataType]
124
+
125
+ # Decodes the struct.
126
+ # @rbs decoder: ::Nl::Decoder
127
+ # @rbs return: instance
128
+ # @param [Nl::Decoder] decoder
129
+ # @return [self]
130
+ def self.decode: (::Nl::Decoder decoder) -> instance
131
+
132
+ # Encodes the struct.
133
+ # @rbs encoder: ::Nl::Encoder
134
+ # @rbs return: void
135
+ # @param [Nl::Encoder] encoder
136
+ # @return [void]
137
+ def encode: (::Nl::Encoder encoder) -> void
138
+ end
139
+ end
140
+
141
+ module AttributeSets
142
+ class AddrAttrs < ::Nl::AttributeSet
143
+ # Abstract class
144
+ class Attribute < ::Nl::AttributeSet::Attribute
145
+ end
146
+
147
+ class Address < Attribute
148
+ TYPE: ::Integer
149
+
150
+ NAME: ::Symbol
151
+
152
+ # @private
153
+ ORDER: ::Integer
154
+
155
+ # @private
156
+ DATATYPE: untyped
157
+ end
158
+
159
+ class Local < Attribute
160
+ TYPE: ::Integer
161
+
162
+ NAME: ::Symbol
163
+
164
+ # @private
165
+ ORDER: ::Integer
166
+
167
+ # @private
168
+ DATATYPE: untyped
169
+ end
170
+
171
+ class Label < Attribute
172
+ TYPE: ::Integer
173
+
174
+ NAME: ::Symbol
175
+
176
+ # @private
177
+ ORDER: ::Integer
178
+
179
+ # @private
180
+ DATATYPE: untyped
181
+ end
182
+
183
+ class Broadcast < Attribute
184
+ TYPE: ::Integer
185
+
186
+ NAME: ::Symbol
187
+
188
+ # @private
189
+ ORDER: ::Integer
190
+
191
+ # @private
192
+ DATATYPE: untyped
193
+ end
194
+
195
+ class Anycast < Attribute
196
+ TYPE: ::Integer
197
+
198
+ NAME: ::Symbol
199
+
200
+ # @private
201
+ ORDER: ::Integer
202
+
203
+ # @private
204
+ DATATYPE: untyped
205
+ end
206
+
207
+ class Cacheinfo < Attribute
208
+ TYPE: ::Integer
209
+
210
+ NAME: ::Symbol
211
+
212
+ # @private
213
+ ORDER: ::Integer
214
+
215
+ # @private
216
+ DATATYPE: untyped
217
+ end
218
+
219
+ class Multicast < Attribute
220
+ TYPE: ::Integer
221
+
222
+ NAME: ::Symbol
223
+
224
+ # @private
225
+ ORDER: ::Integer
226
+
227
+ # @private
228
+ DATATYPE: untyped
229
+ end
230
+
231
+ # Known flags are defined in {Flags::IfaFlags}.
232
+ class Flags < Attribute
233
+ TYPE: ::Integer
234
+
235
+ NAME: ::Symbol
236
+
237
+ # @private
238
+ ORDER: ::Integer
239
+
240
+ # @private
241
+ DATATYPE: untyped
242
+ end
243
+
244
+ class RtPriority < Attribute
245
+ TYPE: ::Integer
246
+
247
+ NAME: ::Symbol
248
+
249
+ # @private
250
+ ORDER: ::Integer
251
+
252
+ # @private
253
+ DATATYPE: untyped
254
+ end
255
+
256
+ class TargetNetnsid < Attribute
257
+ TYPE: ::Integer
258
+
259
+ NAME: ::Symbol
260
+
261
+ # @private
262
+ ORDER: ::Integer
263
+
264
+ # @private
265
+ DATATYPE: untyped
266
+ end
267
+
268
+ class Proto < Attribute
269
+ TYPE: ::Integer
270
+
271
+ NAME: ::Symbol
272
+
273
+ # @private
274
+ ORDER: ::Integer
275
+
276
+ # @private
277
+ DATATYPE: untyped
278
+ end
279
+
280
+ # @private
281
+ BY_NAME: Hash[::Symbol, Attribute]
282
+
283
+ # @private
284
+ BY_TYPE: Hash[::Integer, Attribute]
285
+
286
+ # @rbs return: ::String
287
+ # @return [String]
288
+ # @see Address
289
+ def address: () -> ::String
290
+
291
+ # @rbs return: ::String
292
+ # @return [String]
293
+ # @see Local
294
+ def local: () -> ::String
295
+
296
+ # @rbs return: ::String
297
+ # @return [String]
298
+ # @see Label
299
+ def label: () -> ::String
300
+
301
+ # @rbs return: ::Integer
302
+ # @return [Integer]
303
+ # @see Broadcast
304
+ def broadcast: () -> ::Integer
305
+
306
+ # @rbs return: ::String
307
+ # @return [String]
308
+ # @see Anycast
309
+ def anycast: () -> ::String
310
+
311
+ # @rbs return: Structs::IfaCacheinfo
312
+ # @return [Structs::IfaCacheinfo]
313
+ # @see Cacheinfo
314
+ def cacheinfo: () -> Structs::IfaCacheinfo
315
+
316
+ # @rbs return: ::String
317
+ # @return [String]
318
+ # @see Multicast
319
+ def multicast: () -> ::String
320
+
321
+ # Known flags are defined in {Flags::IfaFlags}.
322
+ # @rbs return: ::Integer
323
+ # @return [Integer]
324
+ # @see Flags
325
+ def flags: () -> ::Integer
326
+
327
+ # @rbs return: ::Integer
328
+ # @return [Integer]
329
+ # @see RtPriority
330
+ def rt_priority: () -> ::Integer
331
+
332
+ # @rbs return: ::String
333
+ # @return [String]
334
+ # @see TargetNetnsid
335
+ def target_netnsid: () -> ::String
336
+
337
+ # @rbs return: ::Integer
338
+ # @return [Integer]
339
+ # @see Proto
340
+ def proto: () -> ::Integer
341
+
342
+ # Looks up Attribute class by name.
343
+ # @rbs name: Symbol
344
+ # @rbs return: Attribute
345
+ # @param [Symbol] name
346
+ # @return [Attribute]
347
+ def self.by_name: (Symbol name) -> Attribute
348
+
349
+ # Looks up Attribute class by type value.
350
+ # @rbs type: Integer
351
+ # @rbs return: Attribute
352
+ # @param [Integer] type
353
+ # @return [Attribute]
354
+ def self.by_type: (Integer type) -> Attribute
355
+ end
356
+ end
357
+
358
+ module Messages
359
+ # Add new address
360
+ class DoNewaddrRequest < ::Nl::Raw::Message
361
+ TYPE: ::Integer
362
+
363
+ FIXED_HEADER: untyped
364
+
365
+ ATTRIBUTE_SET: untyped
366
+
367
+ ATTRIBUTES: untyped
368
+
369
+ # @rbs return: ::Integer
370
+ # @return [Integer]
371
+ def ifa_family: () -> ::Integer
372
+
373
+ # @rbs return: ::Integer
374
+ # @return [Integer]
375
+ def ifa_prefixlen: () -> ::Integer
376
+
377
+ # @rbs return: ::Integer
378
+ # @return [Integer]
379
+ def ifa_flags: () -> ::Integer
380
+
381
+ # @rbs return: ::Integer
382
+ # @return [Integer]
383
+ def ifa_scope: () -> ::Integer
384
+
385
+ # @rbs return: ::Integer
386
+ # @return [Integer]
387
+ def ifa_index: () -> ::Integer
388
+
389
+ # @rbs return: ::String
390
+ # @return [String]
391
+ # @see AttributeSets::AddrAttrs::Address
392
+ def address: () -> ::String
393
+
394
+ # @rbs return: ::String
395
+ # @return [String]
396
+ # @see AttributeSets::AddrAttrs::Local
397
+ def local: () -> ::String
398
+
399
+ # @rbs return: ::String
400
+ # @return [String]
401
+ # @see AttributeSets::AddrAttrs::Label
402
+ def label: () -> ::String
403
+
404
+ # @rbs return: Structs::IfaCacheinfo
405
+ # @return [Structs::IfaCacheinfo]
406
+ # @see AttributeSets::AddrAttrs::Cacheinfo
407
+ def cacheinfo: () -> Structs::IfaCacheinfo
408
+ end
409
+
410
+ # Remove address
411
+ class DoDeladdrRequest < ::Nl::Raw::Message
412
+ TYPE: ::Integer
413
+
414
+ FIXED_HEADER: untyped
415
+
416
+ ATTRIBUTE_SET: untyped
417
+
418
+ ATTRIBUTES: untyped
419
+
420
+ # @rbs return: ::Integer
421
+ # @return [Integer]
422
+ def ifa_family: () -> ::Integer
423
+
424
+ # @rbs return: ::Integer
425
+ # @return [Integer]
426
+ def ifa_prefixlen: () -> ::Integer
427
+
428
+ # @rbs return: ::Integer
429
+ # @return [Integer]
430
+ def ifa_flags: () -> ::Integer
431
+
432
+ # @rbs return: ::Integer
433
+ # @return [Integer]
434
+ def ifa_scope: () -> ::Integer
435
+
436
+ # @rbs return: ::Integer
437
+ # @return [Integer]
438
+ def ifa_index: () -> ::Integer
439
+
440
+ # @rbs return: ::String
441
+ # @return [String]
442
+ # @see AttributeSets::AddrAttrs::Address
443
+ def address: () -> ::String
444
+
445
+ # @rbs return: ::String
446
+ # @return [String]
447
+ # @see AttributeSets::AddrAttrs::Local
448
+ def local: () -> ::String
449
+ end
450
+
451
+ # Dump address information.
452
+ class DumpGetaddrRequest < ::Nl::Raw::Message
453
+ TYPE: ::Integer
454
+
455
+ FIXED_HEADER: untyped
456
+
457
+ ATTRIBUTE_SET: untyped
458
+
459
+ ATTRIBUTES: untyped
460
+
461
+ # @rbs return: ::Integer
462
+ # @return [Integer]
463
+ def ifa_family: () -> ::Integer
464
+
465
+ # @rbs return: ::Integer
466
+ # @return [Integer]
467
+ def ifa_prefixlen: () -> ::Integer
468
+
469
+ # @rbs return: ::Integer
470
+ # @return [Integer]
471
+ def ifa_flags: () -> ::Integer
472
+
473
+ # @rbs return: ::Integer
474
+ # @return [Integer]
475
+ def ifa_scope: () -> ::Integer
476
+
477
+ # @rbs return: ::Integer
478
+ # @return [Integer]
479
+ def ifa_index: () -> ::Integer
480
+ end
481
+
482
+ # Dump address information.
483
+ class DumpGetaddrReply < ::Nl::Raw::Message
484
+ TYPE: ::Integer
485
+
486
+ FIXED_HEADER: untyped
487
+
488
+ ATTRIBUTE_SET: untyped
489
+
490
+ ATTRIBUTES: untyped
491
+
492
+ # @rbs return: ::Integer
493
+ # @return [Integer]
494
+ def ifa_family: () -> ::Integer
495
+
496
+ # @rbs return: ::Integer
497
+ # @return [Integer]
498
+ def ifa_prefixlen: () -> ::Integer
499
+
500
+ # @rbs return: ::Integer
501
+ # @return [Integer]
502
+ def ifa_flags: () -> ::Integer
503
+
504
+ # @rbs return: ::Integer
505
+ # @return [Integer]
506
+ def ifa_scope: () -> ::Integer
507
+
508
+ # @rbs return: ::Integer
509
+ # @return [Integer]
510
+ def ifa_index: () -> ::Integer
511
+
512
+ # @rbs return: ::String
513
+ # @return [String]
514
+ # @see AttributeSets::AddrAttrs::Address
515
+ def address: () -> ::String
516
+
517
+ # @rbs return: ::String
518
+ # @return [String]
519
+ # @see AttributeSets::AddrAttrs::Local
520
+ def local: () -> ::String
521
+
522
+ # @rbs return: ::String
523
+ # @return [String]
524
+ # @see AttributeSets::AddrAttrs::Label
525
+ def label: () -> ::String
526
+
527
+ # @rbs return: Structs::IfaCacheinfo
528
+ # @return [Structs::IfaCacheinfo]
529
+ # @see AttributeSets::AddrAttrs::Cacheinfo
530
+ def cacheinfo: () -> Structs::IfaCacheinfo
531
+ end
532
+
533
+ # Get / dump IPv4/IPv6 multicast addresses.
534
+ class DoGetmulticastRequest < ::Nl::Raw::Message
535
+ TYPE: ::Integer
536
+
537
+ FIXED_HEADER: untyped
538
+
539
+ ATTRIBUTE_SET: untyped
540
+
541
+ ATTRIBUTES: untyped
542
+
543
+ # @rbs return: ::Integer
544
+ # @return [Integer]
545
+ def ifa_family: () -> ::Integer
546
+
547
+ # @rbs return: ::Integer
548
+ # @return [Integer]
549
+ def ifa_prefixlen: () -> ::Integer
550
+
551
+ # @rbs return: ::Integer
552
+ # @return [Integer]
553
+ def ifa_flags: () -> ::Integer
554
+
555
+ # @rbs return: ::Integer
556
+ # @return [Integer]
557
+ def ifa_scope: () -> ::Integer
558
+
559
+ # @rbs return: ::Integer
560
+ # @return [Integer]
561
+ def ifa_index: () -> ::Integer
562
+ end
563
+
564
+ # Get / dump IPv4/IPv6 multicast addresses.
565
+ class DoGetmulticastReply < ::Nl::Raw::Message
566
+ TYPE: ::Integer
567
+
568
+ FIXED_HEADER: untyped
569
+
570
+ ATTRIBUTE_SET: untyped
571
+
572
+ ATTRIBUTES: untyped
573
+
574
+ # @rbs return: ::Integer
575
+ # @return [Integer]
576
+ def ifa_family: () -> ::Integer
577
+
578
+ # @rbs return: ::Integer
579
+ # @return [Integer]
580
+ def ifa_prefixlen: () -> ::Integer
581
+
582
+ # @rbs return: ::Integer
583
+ # @return [Integer]
584
+ def ifa_flags: () -> ::Integer
585
+
586
+ # @rbs return: ::Integer
587
+ # @return [Integer]
588
+ def ifa_scope: () -> ::Integer
589
+
590
+ # @rbs return: ::Integer
591
+ # @return [Integer]
592
+ def ifa_index: () -> ::Integer
593
+
594
+ # @rbs return: Structs::IfaCacheinfo
595
+ # @return [Structs::IfaCacheinfo]
596
+ # @see AttributeSets::AddrAttrs::Cacheinfo
597
+ def cacheinfo: () -> Structs::IfaCacheinfo
598
+
599
+ # @rbs return: ::String
600
+ # @return [String]
601
+ # @see AttributeSets::AddrAttrs::Multicast
602
+ def multicast: () -> ::String
603
+ end
604
+
605
+ # Get / dump IPv4/IPv6 multicast addresses.
606
+ class DumpGetmulticastRequest < ::Nl::Raw::Message
607
+ TYPE: ::Integer
608
+
609
+ FIXED_HEADER: untyped
610
+
611
+ ATTRIBUTE_SET: untyped
612
+
613
+ ATTRIBUTES: untyped
614
+
615
+ # @rbs return: ::Integer
616
+ # @return [Integer]
617
+ def ifa_family: () -> ::Integer
618
+
619
+ # @rbs return: ::Integer
620
+ # @return [Integer]
621
+ def ifa_prefixlen: () -> ::Integer
622
+
623
+ # @rbs return: ::Integer
624
+ # @return [Integer]
625
+ def ifa_flags: () -> ::Integer
626
+
627
+ # @rbs return: ::Integer
628
+ # @return [Integer]
629
+ def ifa_scope: () -> ::Integer
630
+
631
+ # @rbs return: ::Integer
632
+ # @return [Integer]
633
+ def ifa_index: () -> ::Integer
634
+ end
635
+
636
+ # Get / dump IPv4/IPv6 multicast addresses.
637
+ class DumpGetmulticastReply < ::Nl::Raw::Message
638
+ TYPE: ::Integer
639
+
640
+ FIXED_HEADER: untyped
641
+
642
+ ATTRIBUTE_SET: untyped
643
+
644
+ ATTRIBUTES: untyped
645
+
646
+ # @rbs return: ::Integer
647
+ # @return [Integer]
648
+ def ifa_family: () -> ::Integer
649
+
650
+ # @rbs return: ::Integer
651
+ # @return [Integer]
652
+ def ifa_prefixlen: () -> ::Integer
653
+
654
+ # @rbs return: ::Integer
655
+ # @return [Integer]
656
+ def ifa_flags: () -> ::Integer
657
+
658
+ # @rbs return: ::Integer
659
+ # @return [Integer]
660
+ def ifa_scope: () -> ::Integer
661
+
662
+ # @rbs return: ::Integer
663
+ # @return [Integer]
664
+ def ifa_index: () -> ::Integer
665
+
666
+ # @rbs return: Structs::IfaCacheinfo
667
+ # @return [Structs::IfaCacheinfo]
668
+ # @see AttributeSets::AddrAttrs::Cacheinfo
669
+ def cacheinfo: () -> Structs::IfaCacheinfo
670
+
671
+ # @rbs return: ::String
672
+ # @return [String]
673
+ # @see AttributeSets::AddrAttrs::Multicast
674
+ def multicast: () -> ::String
675
+ end
676
+ end
677
+
678
+ module Notifications
679
+ end
680
+
681
+ # @private
682
+ NOTIFICATIONS: Hash[::Integer, ::Class]
683
+
684
+ # Add new address
685
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer, ?address: ::String, ?local: ::String, ?label: ::String, ?cacheinfo: (Structs::IfaCacheinfo | ::Hash[::Symbol, untyped])) -> void
686
+ # @param [Hash] args
687
+ # @option args [Integer] ifa_family
688
+ # @option args [Integer] ifa_prefixlen
689
+ # @option args [Integer] ifa_flags
690
+ # @option args [Integer] ifa_scope
691
+ # @option args [Integer] ifa_index
692
+ # @option args [String] address
693
+ # @option args [String] local
694
+ # @option args [String] label
695
+ # @option args [Structs::IfaCacheinfo, Hash<Symbol, Object>] cacheinfo
696
+ # @return [void]
697
+ # @see Messages::DoNewaddrRequest
698
+ def do_newaddr: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer, ?address: ::String, ?local: ::String, ?label: ::String, ?cacheinfo: Structs::IfaCacheinfo | ::Hash[::Symbol, untyped]) -> void
699
+
700
+ # Remove address
701
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer, ?address: ::String, ?local: ::String) -> void
702
+ # @param [Hash] args
703
+ # @option args [Integer] ifa_family
704
+ # @option args [Integer] ifa_prefixlen
705
+ # @option args [Integer] ifa_flags
706
+ # @option args [Integer] ifa_scope
707
+ # @option args [Integer] ifa_index
708
+ # @option args [String] address
709
+ # @option args [String] local
710
+ # @return [void]
711
+ # @see Messages::DoDeladdrRequest
712
+ def do_deladdr: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer, ?address: ::String, ?local: ::String) -> void
713
+
714
+ # Dump address information.
715
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> Array[Messages::DumpGetaddrReply]
716
+ # | (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) { (Messages::DumpGetaddrReply) -> void } -> void
717
+ # @overload dump_getaddr(**args)
718
+ # Returns an array when no block is given.
719
+ # @param [Hash] args
720
+ # @option args [Integer] ifa_family
721
+ # @option args [Integer] ifa_prefixlen
722
+ # @option args [Integer] ifa_flags
723
+ # @option args [Integer] ifa_scope
724
+ # @option args [Integer] ifa_index
725
+ # @return [Array<Messages::DumpGetaddrReply>]
726
+ # @overload dump_getaddr(**args, &block)
727
+ # Yields each reply when a block is given.
728
+ # @param [Hash] args
729
+ # @option args [Integer] ifa_family
730
+ # @option args [Integer] ifa_prefixlen
731
+ # @option args [Integer] ifa_flags
732
+ # @option args [Integer] ifa_scope
733
+ # @option args [Integer] ifa_index
734
+ # @yieldparam [Messages::DumpGetaddrReply] reply
735
+ # @return [void]
736
+ # @see Messages::DumpGetaddrRequest
737
+ def dump_getaddr: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> Array[Messages::DumpGetaddrReply]
738
+ | (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) { (Messages::DumpGetaddrReply) -> void } -> void
739
+
740
+ # Get / dump IPv4/IPv6 multicast addresses.
741
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> Messages::DoGetmulticastReply
742
+ # @param [Hash] args
743
+ # @option args [Integer] ifa_family
744
+ # @option args [Integer] ifa_prefixlen
745
+ # @option args [Integer] ifa_flags
746
+ # @option args [Integer] ifa_scope
747
+ # @option args [Integer] ifa_index
748
+ # @return [Messages::DoGetmulticastReply]
749
+ # @see Messages::DoGetmulticastRequest
750
+ def do_getmulticast: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> Messages::DoGetmulticastReply
751
+
752
+ # Get / dump IPv4/IPv6 multicast addresses.
753
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> Array[Messages::DumpGetmulticastReply]
754
+ # | (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) { (Messages::DumpGetmulticastReply) -> void } -> void
755
+ # @overload dump_getmulticast(**args)
756
+ # Returns an array when no block is given.
757
+ # @param [Hash] args
758
+ # @option args [Integer] ifa_family
759
+ # @option args [Integer] ifa_prefixlen
760
+ # @option args [Integer] ifa_flags
761
+ # @option args [Integer] ifa_scope
762
+ # @option args [Integer] ifa_index
763
+ # @return [Array<Messages::DumpGetmulticastReply>]
764
+ # @overload dump_getmulticast(**args, &block)
765
+ # Yields each reply when a block is given.
766
+ # @param [Hash] args
767
+ # @option args [Integer] ifa_family
768
+ # @option args [Integer] ifa_prefixlen
769
+ # @option args [Integer] ifa_flags
770
+ # @option args [Integer] ifa_scope
771
+ # @option args [Integer] ifa_index
772
+ # @yieldparam [Messages::DumpGetmulticastReply] reply
773
+ # @return [void]
774
+ # @see Messages::DumpGetmulticastRequest
775
+ def dump_getmulticast: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> Array[Messages::DumpGetmulticastReply]
776
+ | (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) { (Messages::DumpGetmulticastReply) -> void } -> void
777
+
778
+ class AsyncOperations
779
+ # @private
780
+ def initialize: () ?{ (?) -> untyped } -> untyped
781
+
782
+ # Add new address
783
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer, ?address: ::String, ?local: ::String, ?label: ::String, ?cacheinfo: (Structs::IfaCacheinfo | ::Hash[::Symbol, untyped])) -> ::Nl::Async::Future[void]
784
+ # @param [Hash] args
785
+ # @option args [Integer] ifa_family
786
+ # @option args [Integer] ifa_prefixlen
787
+ # @option args [Integer] ifa_flags
788
+ # @option args [Integer] ifa_scope
789
+ # @option args [Integer] ifa_index
790
+ # @option args [String] address
791
+ # @option args [String] local
792
+ # @option args [String] label
793
+ # @option args [Structs::IfaCacheinfo, Hash<Symbol, Object>] cacheinfo
794
+ # @return [Nl::Async::Future<void>]
795
+ # @see Messages::DoNewaddrRequest
796
+ def do_newaddr: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer, ?address: ::String, ?local: ::String, ?label: ::String, ?cacheinfo: Structs::IfaCacheinfo | ::Hash[::Symbol, untyped]) -> ::Nl::Async::Future[void]
797
+
798
+ # Remove address
799
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer, ?address: ::String, ?local: ::String) -> ::Nl::Async::Future[void]
800
+ # @param [Hash] args
801
+ # @option args [Integer] ifa_family
802
+ # @option args [Integer] ifa_prefixlen
803
+ # @option args [Integer] ifa_flags
804
+ # @option args [Integer] ifa_scope
805
+ # @option args [Integer] ifa_index
806
+ # @option args [String] address
807
+ # @option args [String] local
808
+ # @return [Nl::Async::Future<void>]
809
+ # @see Messages::DoDeladdrRequest
810
+ def do_deladdr: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer, ?address: ::String, ?local: ::String) -> ::Nl::Async::Future[void]
811
+
812
+ # Dump address information.
813
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetaddrReply]
814
+ # @param [Hash] args
815
+ # @option args [Integer] ifa_family
816
+ # @option args [Integer] ifa_prefixlen
817
+ # @option args [Integer] ifa_flags
818
+ # @option args [Integer] ifa_scope
819
+ # @option args [Integer] ifa_index
820
+ # @return [Nl::Async::Stream<Messages::DumpGetaddrReply>]
821
+ # @see Messages::DumpGetaddrRequest
822
+ def dump_getaddr: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetaddrReply]
823
+
824
+ # Get / dump IPv4/IPv6 multicast addresses.
825
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> ::Nl::Async::Future[Messages::DoGetmulticastReply]
826
+ # @param [Hash] args
827
+ # @option args [Integer] ifa_family
828
+ # @option args [Integer] ifa_prefixlen
829
+ # @option args [Integer] ifa_flags
830
+ # @option args [Integer] ifa_scope
831
+ # @option args [Integer] ifa_index
832
+ # @return [Nl::Async::Future<Messages::DoGetmulticastReply>]
833
+ # @see Messages::DoGetmulticastRequest
834
+ def do_getmulticast: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> ::Nl::Async::Future[Messages::DoGetmulticastReply]
835
+
836
+ # Get / dump IPv4/IPv6 multicast addresses.
837
+ # @rbs (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetmulticastReply]
838
+ # @param [Hash] args
839
+ # @option args [Integer] ifa_family
840
+ # @option args [Integer] ifa_prefixlen
841
+ # @option args [Integer] ifa_flags
842
+ # @option args [Integer] ifa_scope
843
+ # @option args [Integer] ifa_index
844
+ # @return [Nl::Async::Stream<Messages::DumpGetmulticastReply>]
845
+ # @see Messages::DumpGetmulticastRequest
846
+ def dump_getmulticast: (?ifa_family: ::Integer, ?ifa_prefixlen: ::Integer, ?ifa_flags: ::Integer, ?ifa_scope: ::Integer, ?ifa_index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetmulticastReply]
847
+ end
848
+
849
+ # Returns the asynchronous operation facade for this family.
850
+ # @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
851
+ # @param [::Integer, nil] stream_capacity
852
+ # @return [AsyncOperations]
853
+ def async: (?stream_capacity: ::Integer?) -> AsyncOperations
854
+
855
+ # @rbs (*(:rtnlgrp_ipv4_ifaddr | :rtnlgrp_ipv6_ifaddr) groups) -> self
856
+ # @param [Array<:rtnlgrp_ipv4_ifaddr, :rtnlgrp_ipv6_ifaddr>] groups
857
+ # @return [self]
858
+ def subscribe: (*:rtnlgrp_ipv4_ifaddr | :rtnlgrp_ipv6_ifaddr groups) -> self
859
+
860
+ # @rbs (*(:rtnlgrp_ipv4_ifaddr | :rtnlgrp_ipv6_ifaddr) groups) -> self
861
+ # @param [Array<:rtnlgrp_ipv4_ifaddr, :rtnlgrp_ipv6_ifaddr>] groups
862
+ # @return [self]
863
+ def unsubscribe: (*:rtnlgrp_ipv4_ifaddr | :rtnlgrp_ipv6_ifaddr groups) -> self
864
+ end
865
+ end
866
+ end