nl-linux 0.2.0 → 0.2.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.
@@ -0,0 +1,2922 @@
1
+ # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2
+ #--
3
+ # frozen_string_literal: true
4
+ # rbs_inline: enabled
5
+ # This code is generated by Ynl::Generator. DO NOT EDIT.
6
+ require 'nl'
7
+ # Netfilter nftables configuration over netlink.
8
+ class Nl::Linux::Nftables < ::Nl::Family
9
+ NAME = "nftables"
10
+ PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("nftables", 12))
11
+ module Structs
12
+ Nfgenmsg = Struct.new(
13
+ :"nfgen_family", #: ::Integer
14
+ :"version", #: ::Integer
15
+ :"res_id", #: ::Integer
16
+ )
17
+ class Nfgenmsg
18
+ # :nodoc:
19
+ MEMBERS = Ractor.make_shareable({nfgen_family: ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), version: ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), res_id: ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil)}) #: Hash[::Symbol, ::Nl::_DataType]
20
+ # Decodes the struct.
21
+ #--
22
+ # @rbs decoder: ::Nl::Decoder
23
+ # @rbs return: instance
24
+ def self.decode(decoder)
25
+ self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
26
+ end
27
+ # Encodes the struct.
28
+ #--
29
+ # @rbs encoder: ::Nl::Encoder
30
+ # @rbs return: void
31
+ def encode(encoder)
32
+ MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) }
33
+ end
34
+ end
35
+ end
36
+ module AttributeSets
37
+ class EmptyAttrs < ::Nl::Protocols::Raw::AttributeSet
38
+ # Abstract class
39
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
40
+ end
41
+ class Name < Attribute
42
+ TYPE = 1
43
+ NAME = :"name"
44
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
45
+ end
46
+ # :nodoc:
47
+ BY_NAME = Ractor.make_shareable({:"name" => Name}) #: Hash[::Symbol, Attribute]
48
+ # :nodoc:
49
+ BY_TYPE = Ractor.make_shareable({1 => Name}) #: Hash[::Integer, Attribute]
50
+ class << self
51
+ # Looks up Attribute class by name.
52
+ #--
53
+ # @rbs name: Symbol
54
+ # @rbs return: Attribute
55
+ def by_name(name); BY_NAME.fetch(name); end
56
+ # Looks up Attribute class by type value.
57
+ #--
58
+ # @rbs type: Integer
59
+ # @rbs return: Attribute
60
+ def by_type(type); BY_TYPE.fetch(type); end
61
+ end
62
+ end
63
+ class BatchAttrs < ::Nl::Protocols::Raw::AttributeSet
64
+ # Abstract class
65
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
66
+ end
67
+ class Genid < Attribute
68
+ TYPE = 1
69
+ NAME = :"genid"
70
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
71
+ end
72
+ # :nodoc:
73
+ BY_NAME = Ractor.make_shareable({:"genid" => Genid}) #: Hash[::Symbol, Attribute]
74
+ # :nodoc:
75
+ BY_TYPE = Ractor.make_shareable({1 => Genid}) #: Hash[::Integer, Attribute]
76
+ class << self
77
+ # Looks up Attribute class by name.
78
+ #--
79
+ # @rbs name: Symbol
80
+ # @rbs return: Attribute
81
+ def by_name(name); BY_NAME.fetch(name); end
82
+ # Looks up Attribute class by type value.
83
+ #--
84
+ # @rbs type: Integer
85
+ # @rbs return: Attribute
86
+ def by_type(type); BY_TYPE.fetch(type); end
87
+ end
88
+ end
89
+ class TableAttrs < ::Nl::Protocols::Raw::AttributeSet
90
+ # Abstract class
91
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
92
+ end
93
+ class Name < Attribute
94
+ TYPE = 1
95
+ NAME = :"name"
96
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
97
+ end
98
+ class Flags < Attribute
99
+ TYPE = 2
100
+ NAME = :"flags"
101
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
102
+ end
103
+ class Use < Attribute
104
+ TYPE = 3
105
+ NAME = :"use"
106
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
107
+ end
108
+ class Handle < Attribute
109
+ TYPE = 4
110
+ NAME = :"handle"
111
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
112
+ end
113
+ class Userdata < Attribute
114
+ TYPE = 5
115
+ NAME = :"userdata"
116
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
117
+ end
118
+ # :nodoc:
119
+ BY_NAME = Ractor.make_shareable({:"name" => Name, :"flags" => Flags, :"use" => Use, :"handle" => Handle, :"userdata" => Userdata}) #: Hash[::Symbol, Attribute]
120
+ # :nodoc:
121
+ BY_TYPE = Ractor.make_shareable({1 => Name, 2 => Flags, 3 => Use, 4 => Handle, 5 => Userdata}) #: Hash[::Integer, Attribute]
122
+ class << self
123
+ # Looks up Attribute class by name.
124
+ #--
125
+ # @rbs name: Symbol
126
+ # @rbs return: Attribute
127
+ def by_name(name); BY_NAME.fetch(name); end
128
+ # Looks up Attribute class by type value.
129
+ #--
130
+ # @rbs type: Integer
131
+ # @rbs return: Attribute
132
+ def by_type(type); BY_TYPE.fetch(type); end
133
+ end
134
+ end
135
+ class ChainAttrs < ::Nl::Protocols::Raw::AttributeSet
136
+ # Abstract class
137
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
138
+ end
139
+ class Table < Attribute
140
+ TYPE = 1
141
+ NAME = :"table"
142
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
143
+ end
144
+ class Handle < Attribute
145
+ TYPE = 2
146
+ NAME = :"handle"
147
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
148
+ end
149
+ class Name < Attribute
150
+ TYPE = 3
151
+ NAME = :"name"
152
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
153
+ end
154
+ class Hook < Attribute
155
+ TYPE = 4
156
+ NAME = :"hook"
157
+ end
158
+ class Policy < Attribute
159
+ TYPE = 5
160
+ NAME = :"policy"
161
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
162
+ end
163
+ class Use < Attribute
164
+ TYPE = 6
165
+ NAME = :"use"
166
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
167
+ end
168
+ class Type < Attribute
169
+ TYPE = 7
170
+ NAME = :"type"
171
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
172
+ end
173
+ class Counters < Attribute
174
+ TYPE = 8
175
+ NAME = :"counters"
176
+ end
177
+ class Flags < Attribute
178
+ TYPE = 9
179
+ NAME = :"flags"
180
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
181
+ end
182
+ class Id < Attribute
183
+ TYPE = 10
184
+ NAME = :"id"
185
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
186
+ end
187
+ class Userdata < Attribute
188
+ TYPE = 11
189
+ NAME = :"userdata"
190
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
191
+ end
192
+ # :nodoc:
193
+ BY_NAME = Ractor.make_shareable({:"table" => Table, :"handle" => Handle, :"name" => Name, :"hook" => Hook, :"policy" => Policy, :"use" => Use, :"type" => Type, :"counters" => Counters, :"flags" => Flags, :"id" => Id, :"userdata" => Userdata}) #: Hash[::Symbol, Attribute]
194
+ # :nodoc:
195
+ BY_TYPE = Ractor.make_shareable({1 => Table, 2 => Handle, 3 => Name, 4 => Hook, 5 => Policy, 6 => Use, 7 => Type, 8 => Counters, 9 => Flags, 10 => Id, 11 => Userdata}) #: Hash[::Integer, Attribute]
196
+ class << self
197
+ # Looks up Attribute class by name.
198
+ #--
199
+ # @rbs name: Symbol
200
+ # @rbs return: Attribute
201
+ def by_name(name); BY_NAME.fetch(name); end
202
+ # Looks up Attribute class by type value.
203
+ #--
204
+ # @rbs type: Integer
205
+ # @rbs return: Attribute
206
+ def by_type(type); BY_TYPE.fetch(type); end
207
+ end
208
+ end
209
+ class CounterAttrs < ::Nl::Protocols::Raw::AttributeSet
210
+ # Abstract class
211
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
212
+ end
213
+ class Bytes < Attribute
214
+ TYPE = 1
215
+ NAME = :"bytes"
216
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
217
+ end
218
+ class Packets < Attribute
219
+ TYPE = 2
220
+ NAME = :"packets"
221
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
222
+ end
223
+ class Pad < Attribute
224
+ TYPE = 3
225
+ NAME = :"pad"
226
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Pad.new()
227
+ end
228
+ # :nodoc:
229
+ BY_NAME = Ractor.make_shareable({:"bytes" => Bytes, :"packets" => Packets, :"pad" => Pad}) #: Hash[::Symbol, Attribute]
230
+ # :nodoc:
231
+ BY_TYPE = Ractor.make_shareable({1 => Bytes, 2 => Packets, 3 => Pad}) #: Hash[::Integer, Attribute]
232
+ class << self
233
+ # Looks up Attribute class by name.
234
+ #--
235
+ # @rbs name: Symbol
236
+ # @rbs return: Attribute
237
+ def by_name(name); BY_NAME.fetch(name); end
238
+ # Looks up Attribute class by type value.
239
+ #--
240
+ # @rbs type: Integer
241
+ # @rbs return: Attribute
242
+ def by_type(type); BY_TYPE.fetch(type); end
243
+ end
244
+ end
245
+ class NftHookAttrs < ::Nl::Protocols::Raw::AttributeSet
246
+ # Abstract class
247
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
248
+ end
249
+ class Num < Attribute
250
+ TYPE = 1
251
+ NAME = :"num"
252
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
253
+ end
254
+ class Priority < Attribute
255
+ TYPE = 2
256
+ NAME = :"priority"
257
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::S32, check: nil)
258
+ end
259
+ class Dev < Attribute
260
+ TYPE = 3
261
+ NAME = :"dev"
262
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
263
+ end
264
+ class Devs < Attribute
265
+ TYPE = 4
266
+ NAME = :"devs"
267
+ end
268
+ # :nodoc:
269
+ BY_NAME = Ractor.make_shareable({:"num" => Num, :"priority" => Priority, :"dev" => Dev, :"devs" => Devs}) #: Hash[::Symbol, Attribute]
270
+ # :nodoc:
271
+ BY_TYPE = Ractor.make_shareable({1 => Num, 2 => Priority, 3 => Dev, 4 => Devs}) #: Hash[::Integer, Attribute]
272
+ class << self
273
+ # Looks up Attribute class by name.
274
+ #--
275
+ # @rbs name: Symbol
276
+ # @rbs return: Attribute
277
+ def by_name(name); BY_NAME.fetch(name); end
278
+ # Looks up Attribute class by type value.
279
+ #--
280
+ # @rbs type: Integer
281
+ # @rbs return: Attribute
282
+ def by_type(type); BY_TYPE.fetch(type); end
283
+ end
284
+ end
285
+ class HookDevAttrs < ::Nl::Protocols::Raw::AttributeSet
286
+ # Abstract class
287
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
288
+ end
289
+ class Name < Attribute
290
+ TYPE = 1
291
+ NAME = :"name"
292
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
293
+ end
294
+ # :nodoc:
295
+ BY_NAME = Ractor.make_shareable({:"name" => Name}) #: Hash[::Symbol, Attribute]
296
+ # :nodoc:
297
+ BY_TYPE = Ractor.make_shareable({1 => Name}) #: Hash[::Integer, Attribute]
298
+ class << self
299
+ # Looks up Attribute class by name.
300
+ #--
301
+ # @rbs name: Symbol
302
+ # @rbs return: Attribute
303
+ def by_name(name); BY_NAME.fetch(name); end
304
+ # Looks up Attribute class by type value.
305
+ #--
306
+ # @rbs type: Integer
307
+ # @rbs return: Attribute
308
+ def by_type(type); BY_TYPE.fetch(type); end
309
+ end
310
+ end
311
+ class NftCounterAttrs < ::Nl::Protocols::Raw::AttributeSet
312
+ # Abstract class
313
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
314
+ end
315
+ class Bytes < Attribute
316
+ TYPE = 1
317
+ NAME = :"bytes"
318
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
319
+ end
320
+ class Packets < Attribute
321
+ TYPE = 2
322
+ NAME = :"packets"
323
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
324
+ end
325
+ # :nodoc:
326
+ BY_NAME = Ractor.make_shareable({:"bytes" => Bytes, :"packets" => Packets}) #: Hash[::Symbol, Attribute]
327
+ # :nodoc:
328
+ BY_TYPE = Ractor.make_shareable({1 => Bytes, 2 => Packets}) #: Hash[::Integer, Attribute]
329
+ class << self
330
+ # Looks up Attribute class by name.
331
+ #--
332
+ # @rbs name: Symbol
333
+ # @rbs return: Attribute
334
+ def by_name(name); BY_NAME.fetch(name); end
335
+ # Looks up Attribute class by type value.
336
+ #--
337
+ # @rbs type: Integer
338
+ # @rbs return: Attribute
339
+ def by_type(type); BY_TYPE.fetch(type); end
340
+ end
341
+ end
342
+ class RuleAttrs < ::Nl::Protocols::Raw::AttributeSet
343
+ # Abstract class
344
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
345
+ end
346
+ class Table < Attribute
347
+ TYPE = 1
348
+ NAME = :"table"
349
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
350
+ end
351
+ class Chain < Attribute
352
+ TYPE = 2
353
+ NAME = :"chain"
354
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
355
+ end
356
+ class Handle < Attribute
357
+ TYPE = 3
358
+ NAME = :"handle"
359
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
360
+ end
361
+ class Expressions < Attribute
362
+ TYPE = 4
363
+ NAME = :"expressions"
364
+ end
365
+ class Compat < Attribute
366
+ TYPE = 5
367
+ NAME = :"compat"
368
+ end
369
+ class Position < Attribute
370
+ TYPE = 6
371
+ NAME = :"position"
372
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
373
+ end
374
+ class Userdata < Attribute
375
+ TYPE = 7
376
+ NAME = :"userdata"
377
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
378
+ end
379
+ class Id < Attribute
380
+ TYPE = 8
381
+ NAME = :"id"
382
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
383
+ end
384
+ class PositionId < Attribute
385
+ TYPE = 9
386
+ NAME = :"position_id"
387
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
388
+ end
389
+ class ChainId < Attribute
390
+ TYPE = 10
391
+ NAME = :"chain_id"
392
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
393
+ end
394
+ # :nodoc:
395
+ BY_NAME = Ractor.make_shareable({:"table" => Table, :"chain" => Chain, :"handle" => Handle, :"expressions" => Expressions, :"compat" => Compat, :"position" => Position, :"userdata" => Userdata, :"id" => Id, :"position_id" => PositionId, :"chain_id" => ChainId}) #: Hash[::Symbol, Attribute]
396
+ # :nodoc:
397
+ BY_TYPE = Ractor.make_shareable({1 => Table, 2 => Chain, 3 => Handle, 4 => Expressions, 5 => Compat, 6 => Position, 7 => Userdata, 8 => Id, 9 => PositionId, 10 => ChainId}) #: Hash[::Integer, Attribute]
398
+ class << self
399
+ # Looks up Attribute class by name.
400
+ #--
401
+ # @rbs name: Symbol
402
+ # @rbs return: Attribute
403
+ def by_name(name); BY_NAME.fetch(name); end
404
+ # Looks up Attribute class by type value.
405
+ #--
406
+ # @rbs type: Integer
407
+ # @rbs return: Attribute
408
+ def by_type(type); BY_TYPE.fetch(type); end
409
+ end
410
+ end
411
+ class ExprListAttrs < ::Nl::Protocols::Raw::AttributeSet
412
+ # Abstract class
413
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
414
+ end
415
+ class Elem < Attribute
416
+ TYPE = 1
417
+ NAME = :"elem"
418
+ end
419
+ # :nodoc:
420
+ BY_NAME = Ractor.make_shareable({:"elem" => Elem}) #: Hash[::Symbol, Attribute]
421
+ # :nodoc:
422
+ BY_TYPE = Ractor.make_shareable({1 => Elem}) #: Hash[::Integer, Attribute]
423
+ class << self
424
+ # Looks up Attribute class by name.
425
+ #--
426
+ # @rbs name: Symbol
427
+ # @rbs return: Attribute
428
+ def by_name(name); BY_NAME.fetch(name); end
429
+ # Looks up Attribute class by type value.
430
+ #--
431
+ # @rbs type: Integer
432
+ # @rbs return: Attribute
433
+ def by_type(type); BY_TYPE.fetch(type); end
434
+ end
435
+ end
436
+ class ExprAttrs < ::Nl::Protocols::Raw::AttributeSet
437
+ # Abstract class
438
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
439
+ end
440
+ class Name < Attribute
441
+ TYPE = 1
442
+ NAME = :"name"
443
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
444
+ end
445
+ class Data < Attribute
446
+ TYPE = 2
447
+ NAME = :"data"
448
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
449
+ end
450
+ # :nodoc:
451
+ BY_NAME = Ractor.make_shareable({:"name" => Name, :"data" => Data}) #: Hash[::Symbol, Attribute]
452
+ # :nodoc:
453
+ BY_TYPE = Ractor.make_shareable({1 => Name, 2 => Data}) #: Hash[::Integer, Attribute]
454
+ class << self
455
+ # Looks up Attribute class by name.
456
+ #--
457
+ # @rbs name: Symbol
458
+ # @rbs return: Attribute
459
+ def by_name(name); BY_NAME.fetch(name); end
460
+ # Looks up Attribute class by type value.
461
+ #--
462
+ # @rbs type: Integer
463
+ # @rbs return: Attribute
464
+ def by_type(type); BY_TYPE.fetch(type); end
465
+ end
466
+ end
467
+ class RuleCompatAttrs < ::Nl::Protocols::Raw::AttributeSet
468
+ # Abstract class
469
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
470
+ end
471
+ class Proto < Attribute
472
+ TYPE = 1
473
+ NAME = :"proto"
474
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
475
+ end
476
+ class Flags < Attribute
477
+ TYPE = 2
478
+ NAME = :"flags"
479
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
480
+ end
481
+ # :nodoc:
482
+ BY_NAME = Ractor.make_shareable({:"proto" => Proto, :"flags" => Flags}) #: Hash[::Symbol, Attribute]
483
+ # :nodoc:
484
+ BY_TYPE = Ractor.make_shareable({1 => Proto, 2 => Flags}) #: Hash[::Integer, Attribute]
485
+ class << self
486
+ # Looks up Attribute class by name.
487
+ #--
488
+ # @rbs name: Symbol
489
+ # @rbs return: Attribute
490
+ def by_name(name); BY_NAME.fetch(name); end
491
+ # Looks up Attribute class by type value.
492
+ #--
493
+ # @rbs type: Integer
494
+ # @rbs return: Attribute
495
+ def by_type(type); BY_TYPE.fetch(type); end
496
+ end
497
+ end
498
+ class SetAttrs < ::Nl::Protocols::Raw::AttributeSet
499
+ # Abstract class
500
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
501
+ end
502
+ class Table < Attribute
503
+ TYPE = 1
504
+ NAME = :"table"
505
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
506
+ end
507
+ class Name < Attribute
508
+ TYPE = 2
509
+ NAME = :"name"
510
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
511
+ end
512
+ class Flags < Attribute
513
+ TYPE = 3
514
+ NAME = :"flags"
515
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
516
+ end
517
+ class KeyType < Attribute
518
+ TYPE = 4
519
+ NAME = :"key_type"
520
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
521
+ end
522
+ class KeyLen < Attribute
523
+ TYPE = 5
524
+ NAME = :"key_len"
525
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
526
+ end
527
+ class DataType < Attribute
528
+ TYPE = 6
529
+ NAME = :"data_type"
530
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
531
+ end
532
+ class DataLen < Attribute
533
+ TYPE = 7
534
+ NAME = :"data_len"
535
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
536
+ end
537
+ class Policy < Attribute
538
+ TYPE = 8
539
+ NAME = :"policy"
540
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
541
+ end
542
+ class Desc < Attribute
543
+ TYPE = 9
544
+ NAME = :"desc"
545
+ end
546
+ class Id < Attribute
547
+ TYPE = 10
548
+ NAME = :"id"
549
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
550
+ end
551
+ class Timeout < Attribute
552
+ TYPE = 11
553
+ NAME = :"timeout"
554
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
555
+ end
556
+ class GcInterval < Attribute
557
+ TYPE = 12
558
+ NAME = :"gc_interval"
559
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
560
+ end
561
+ class Userdata < Attribute
562
+ TYPE = 13
563
+ NAME = :"userdata"
564
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
565
+ end
566
+ class Pad < Attribute
567
+ TYPE = 14
568
+ NAME = :"pad"
569
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Pad.new()
570
+ end
571
+ class ObjType < Attribute
572
+ TYPE = 15
573
+ NAME = :"obj_type"
574
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
575
+ end
576
+ class Handle < Attribute
577
+ TYPE = 16
578
+ NAME = :"handle"
579
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
580
+ end
581
+ class Expr < Attribute
582
+ TYPE = 17
583
+ NAME = :"expr"
584
+ end
585
+ class Expressions < Attribute
586
+ TYPE = 18
587
+ NAME = :"expressions"
588
+ end
589
+ # :nodoc:
590
+ BY_NAME = Ractor.make_shareable({:"table" => Table, :"name" => Name, :"flags" => Flags, :"key_type" => KeyType, :"key_len" => KeyLen, :"data_type" => DataType, :"data_len" => DataLen, :"policy" => Policy, :"desc" => Desc, :"id" => Id, :"timeout" => Timeout, :"gc_interval" => GcInterval, :"userdata" => Userdata, :"pad" => Pad, :"obj_type" => ObjType, :"handle" => Handle, :"expr" => Expr, :"expressions" => Expressions}) #: Hash[::Symbol, Attribute]
591
+ # :nodoc:
592
+ BY_TYPE = Ractor.make_shareable({1 => Table, 2 => Name, 3 => Flags, 4 => KeyType, 5 => KeyLen, 6 => DataType, 7 => DataLen, 8 => Policy, 9 => Desc, 10 => Id, 11 => Timeout, 12 => GcInterval, 13 => Userdata, 14 => Pad, 15 => ObjType, 16 => Handle, 17 => Expr, 18 => Expressions}) #: Hash[::Integer, Attribute]
593
+ class << self
594
+ # Looks up Attribute class by name.
595
+ #--
596
+ # @rbs name: Symbol
597
+ # @rbs return: Attribute
598
+ def by_name(name); BY_NAME.fetch(name); end
599
+ # Looks up Attribute class by type value.
600
+ #--
601
+ # @rbs type: Integer
602
+ # @rbs return: Attribute
603
+ def by_type(type); BY_TYPE.fetch(type); end
604
+ end
605
+ end
606
+ class SetDescAttrs < ::Nl::Protocols::Raw::AttributeSet
607
+ # Abstract class
608
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
609
+ end
610
+ class Size < Attribute
611
+ TYPE = 1
612
+ NAME = :"size"
613
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
614
+ end
615
+ class Concat < Attribute
616
+ TYPE = 2
617
+ NAME = :"concat"
618
+ end
619
+ # :nodoc:
620
+ BY_NAME = Ractor.make_shareable({:"size" => Size, :"concat" => Concat}) #: Hash[::Symbol, Attribute]
621
+ # :nodoc:
622
+ BY_TYPE = Ractor.make_shareable({1 => Size, 2 => Concat}) #: Hash[::Integer, Attribute]
623
+ class << self
624
+ # Looks up Attribute class by name.
625
+ #--
626
+ # @rbs name: Symbol
627
+ # @rbs return: Attribute
628
+ def by_name(name); BY_NAME.fetch(name); end
629
+ # Looks up Attribute class by type value.
630
+ #--
631
+ # @rbs type: Integer
632
+ # @rbs return: Attribute
633
+ def by_type(type); BY_TYPE.fetch(type); end
634
+ end
635
+ end
636
+ class SetDescConcatAttrs < ::Nl::Protocols::Raw::AttributeSet
637
+ # Abstract class
638
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
639
+ end
640
+ class Elem < Attribute
641
+ TYPE = 1
642
+ NAME = :"elem"
643
+ end
644
+ # :nodoc:
645
+ BY_NAME = Ractor.make_shareable({:"elem" => Elem}) #: Hash[::Symbol, Attribute]
646
+ # :nodoc:
647
+ BY_TYPE = Ractor.make_shareable({1 => Elem}) #: Hash[::Integer, Attribute]
648
+ class << self
649
+ # Looks up Attribute class by name.
650
+ #--
651
+ # @rbs name: Symbol
652
+ # @rbs return: Attribute
653
+ def by_name(name); BY_NAME.fetch(name); end
654
+ # Looks up Attribute class by type value.
655
+ #--
656
+ # @rbs type: Integer
657
+ # @rbs return: Attribute
658
+ def by_type(type); BY_TYPE.fetch(type); end
659
+ end
660
+ end
661
+ class SetFieldAttrs < ::Nl::Protocols::Raw::AttributeSet
662
+ # Abstract class
663
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
664
+ end
665
+ class Len < Attribute
666
+ TYPE = 1
667
+ NAME = :"len"
668
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
669
+ end
670
+ # :nodoc:
671
+ BY_NAME = Ractor.make_shareable({:"len" => Len}) #: Hash[::Symbol, Attribute]
672
+ # :nodoc:
673
+ BY_TYPE = Ractor.make_shareable({1 => Len}) #: Hash[::Integer, Attribute]
674
+ class << self
675
+ # Looks up Attribute class by name.
676
+ #--
677
+ # @rbs name: Symbol
678
+ # @rbs return: Attribute
679
+ def by_name(name); BY_NAME.fetch(name); end
680
+ # Looks up Attribute class by type value.
681
+ #--
682
+ # @rbs type: Integer
683
+ # @rbs return: Attribute
684
+ def by_type(type); BY_TYPE.fetch(type); end
685
+ end
686
+ end
687
+ class SetListAttrs < ::Nl::Protocols::Raw::AttributeSet
688
+ # Abstract class
689
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
690
+ end
691
+ class Elem < Attribute
692
+ TYPE = 1
693
+ NAME = :"elem"
694
+ end
695
+ # :nodoc:
696
+ BY_NAME = Ractor.make_shareable({:"elem" => Elem}) #: Hash[::Symbol, Attribute]
697
+ # :nodoc:
698
+ BY_TYPE = Ractor.make_shareable({1 => Elem}) #: Hash[::Integer, Attribute]
699
+ class << self
700
+ # Looks up Attribute class by name.
701
+ #--
702
+ # @rbs name: Symbol
703
+ # @rbs return: Attribute
704
+ def by_name(name); BY_NAME.fetch(name); end
705
+ # Looks up Attribute class by type value.
706
+ #--
707
+ # @rbs type: Integer
708
+ # @rbs return: Attribute
709
+ def by_type(type); BY_TYPE.fetch(type); end
710
+ end
711
+ end
712
+ class SetelemAttrs < ::Nl::Protocols::Raw::AttributeSet
713
+ # Abstract class
714
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
715
+ end
716
+ class Key < Attribute
717
+ TYPE = 1
718
+ NAME = :"key"
719
+ end
720
+ class Data < Attribute
721
+ TYPE = 2
722
+ NAME = :"data"
723
+ end
724
+ class Flags < Attribute
725
+ TYPE = 3
726
+ NAME = :"flags"
727
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
728
+ end
729
+ class Timeout < Attribute
730
+ TYPE = 4
731
+ NAME = :"timeout"
732
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
733
+ end
734
+ class Expiration < Attribute
735
+ TYPE = 5
736
+ NAME = :"expiration"
737
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
738
+ end
739
+ class Userdata < Attribute
740
+ TYPE = 6
741
+ NAME = :"userdata"
742
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
743
+ end
744
+ class Expr < Attribute
745
+ TYPE = 7
746
+ NAME = :"expr"
747
+ end
748
+ class Objref < Attribute
749
+ TYPE = 8
750
+ NAME = :"objref"
751
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
752
+ end
753
+ class KeyEnd < Attribute
754
+ TYPE = 9
755
+ NAME = :"key_end"
756
+ end
757
+ class Expressions < Attribute
758
+ TYPE = 10
759
+ NAME = :"expressions"
760
+ end
761
+ # :nodoc:
762
+ BY_NAME = Ractor.make_shareable({:"key" => Key, :"data" => Data, :"flags" => Flags, :"timeout" => Timeout, :"expiration" => Expiration, :"userdata" => Userdata, :"expr" => Expr, :"objref" => Objref, :"key_end" => KeyEnd, :"expressions" => Expressions}) #: Hash[::Symbol, Attribute]
763
+ # :nodoc:
764
+ BY_TYPE = Ractor.make_shareable({1 => Key, 2 => Data, 3 => Flags, 4 => Timeout, 5 => Expiration, 6 => Userdata, 7 => Expr, 8 => Objref, 9 => KeyEnd, 10 => Expressions}) #: Hash[::Integer, Attribute]
765
+ class << self
766
+ # Looks up Attribute class by name.
767
+ #--
768
+ # @rbs name: Symbol
769
+ # @rbs return: Attribute
770
+ def by_name(name); BY_NAME.fetch(name); end
771
+ # Looks up Attribute class by type value.
772
+ #--
773
+ # @rbs type: Integer
774
+ # @rbs return: Attribute
775
+ def by_type(type); BY_TYPE.fetch(type); end
776
+ end
777
+ end
778
+ class SetelemListElemAttrs < ::Nl::Protocols::Raw::AttributeSet
779
+ # Abstract class
780
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
781
+ end
782
+ class Elem < Attribute
783
+ TYPE = 1
784
+ NAME = :"elem"
785
+ end
786
+ # :nodoc:
787
+ BY_NAME = Ractor.make_shareable({:"elem" => Elem}) #: Hash[::Symbol, Attribute]
788
+ # :nodoc:
789
+ BY_TYPE = Ractor.make_shareable({1 => Elem}) #: Hash[::Integer, Attribute]
790
+ class << self
791
+ # Looks up Attribute class by name.
792
+ #--
793
+ # @rbs name: Symbol
794
+ # @rbs return: Attribute
795
+ def by_name(name); BY_NAME.fetch(name); end
796
+ # Looks up Attribute class by type value.
797
+ #--
798
+ # @rbs type: Integer
799
+ # @rbs return: Attribute
800
+ def by_type(type); BY_TYPE.fetch(type); end
801
+ end
802
+ end
803
+ class SetelemListAttrs < ::Nl::Protocols::Raw::AttributeSet
804
+ # Abstract class
805
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
806
+ end
807
+ class Table < Attribute
808
+ TYPE = 1
809
+ NAME = :"table"
810
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
811
+ end
812
+ class Set < Attribute
813
+ TYPE = 2
814
+ NAME = :"set"
815
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
816
+ end
817
+ class Elements < Attribute
818
+ TYPE = 3
819
+ NAME = :"elements"
820
+ end
821
+ class SetId < Attribute
822
+ TYPE = 4
823
+ NAME = :"set_id"
824
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
825
+ end
826
+ # :nodoc:
827
+ BY_NAME = Ractor.make_shareable({:"table" => Table, :"set" => Set, :"elements" => Elements, :"set_id" => SetId}) #: Hash[::Symbol, Attribute]
828
+ # :nodoc:
829
+ BY_TYPE = Ractor.make_shareable({1 => Table, 2 => Set, 3 => Elements, 4 => SetId}) #: Hash[::Integer, Attribute]
830
+ class << self
831
+ # Looks up Attribute class by name.
832
+ #--
833
+ # @rbs name: Symbol
834
+ # @rbs return: Attribute
835
+ def by_name(name); BY_NAME.fetch(name); end
836
+ # Looks up Attribute class by type value.
837
+ #--
838
+ # @rbs type: Integer
839
+ # @rbs return: Attribute
840
+ def by_type(type); BY_TYPE.fetch(type); end
841
+ end
842
+ end
843
+ class GenAttrs < ::Nl::Protocols::Raw::AttributeSet
844
+ # Abstract class
845
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
846
+ end
847
+ class Id < Attribute
848
+ TYPE = 1
849
+ NAME = :"id"
850
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
851
+ end
852
+ class ProcPid < Attribute
853
+ TYPE = 2
854
+ NAME = :"proc_pid"
855
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
856
+ end
857
+ class ProcName < Attribute
858
+ TYPE = 3
859
+ NAME = :"proc_name"
860
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
861
+ end
862
+ # :nodoc:
863
+ BY_NAME = Ractor.make_shareable({:"id" => Id, :"proc_pid" => ProcPid, :"proc_name" => ProcName}) #: Hash[::Symbol, Attribute]
864
+ # :nodoc:
865
+ BY_TYPE = Ractor.make_shareable({1 => Id, 2 => ProcPid, 3 => ProcName}) #: Hash[::Integer, Attribute]
866
+ class << self
867
+ # Looks up Attribute class by name.
868
+ #--
869
+ # @rbs name: Symbol
870
+ # @rbs return: Attribute
871
+ def by_name(name); BY_NAME.fetch(name); end
872
+ # Looks up Attribute class by type value.
873
+ #--
874
+ # @rbs type: Integer
875
+ # @rbs return: Attribute
876
+ def by_type(type); BY_TYPE.fetch(type); end
877
+ end
878
+ end
879
+ class ObjAttrs < ::Nl::Protocols::Raw::AttributeSet
880
+ # Abstract class
881
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
882
+ end
883
+ class Table < Attribute
884
+ TYPE = 1
885
+ NAME = :"table"
886
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
887
+ end
888
+ class Name < Attribute
889
+ TYPE = 2
890
+ NAME = :"name"
891
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
892
+ end
893
+ class Type < Attribute
894
+ TYPE = 3
895
+ NAME = :"type"
896
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
897
+ end
898
+ class Data < Attribute
899
+ TYPE = 4
900
+ NAME = :"data"
901
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
902
+ end
903
+ class Use < Attribute
904
+ TYPE = 5
905
+ NAME = :"use"
906
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
907
+ end
908
+ class Handle < Attribute
909
+ TYPE = 6
910
+ NAME = :"handle"
911
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
912
+ end
913
+ class Pad < Attribute
914
+ TYPE = 7
915
+ NAME = :"pad"
916
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Pad.new()
917
+ end
918
+ class Userdata < Attribute
919
+ TYPE = 8
920
+ NAME = :"userdata"
921
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
922
+ end
923
+ # :nodoc:
924
+ BY_NAME = Ractor.make_shareable({:"table" => Table, :"name" => Name, :"type" => Type, :"data" => Data, :"use" => Use, :"handle" => Handle, :"pad" => Pad, :"userdata" => Userdata}) #: Hash[::Symbol, Attribute]
925
+ # :nodoc:
926
+ BY_TYPE = Ractor.make_shareable({1 => Table, 2 => Name, 3 => Type, 4 => Data, 5 => Use, 6 => Handle, 7 => Pad, 8 => Userdata}) #: Hash[::Integer, Attribute]
927
+ class << self
928
+ # Looks up Attribute class by name.
929
+ #--
930
+ # @rbs name: Symbol
931
+ # @rbs return: Attribute
932
+ def by_name(name); BY_NAME.fetch(name); end
933
+ # Looks up Attribute class by type value.
934
+ #--
935
+ # @rbs type: Integer
936
+ # @rbs return: Attribute
937
+ def by_type(type); BY_TYPE.fetch(type); end
938
+ end
939
+ end
940
+ class QuotaAttrs < ::Nl::Protocols::Raw::AttributeSet
941
+ # Abstract class
942
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
943
+ end
944
+ class Bytes < Attribute
945
+ TYPE = 1
946
+ NAME = :"bytes"
947
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
948
+ end
949
+ class Flags < Attribute
950
+ TYPE = 2
951
+ NAME = :"flags"
952
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
953
+ end
954
+ class Pad < Attribute
955
+ TYPE = 3
956
+ NAME = :"pad"
957
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Pad.new()
958
+ end
959
+ class Consumed < Attribute
960
+ TYPE = 4
961
+ NAME = :"consumed"
962
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
963
+ end
964
+ # :nodoc:
965
+ BY_NAME = Ractor.make_shareable({:"bytes" => Bytes, :"flags" => Flags, :"pad" => Pad, :"consumed" => Consumed}) #: Hash[::Symbol, Attribute]
966
+ # :nodoc:
967
+ BY_TYPE = Ractor.make_shareable({1 => Bytes, 2 => Flags, 3 => Pad, 4 => Consumed}) #: Hash[::Integer, Attribute]
968
+ class << self
969
+ # Looks up Attribute class by name.
970
+ #--
971
+ # @rbs name: Symbol
972
+ # @rbs return: Attribute
973
+ def by_name(name); BY_NAME.fetch(name); end
974
+ # Looks up Attribute class by type value.
975
+ #--
976
+ # @rbs type: Integer
977
+ # @rbs return: Attribute
978
+ def by_type(type); BY_TYPE.fetch(type); end
979
+ end
980
+ end
981
+ class FlowtableAttrs < ::Nl::Protocols::Raw::AttributeSet
982
+ # Abstract class
983
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
984
+ end
985
+ class Table < Attribute
986
+ TYPE = 1
987
+ NAME = :"table"
988
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
989
+ end
990
+ class Name < Attribute
991
+ TYPE = 2
992
+ NAME = :"name"
993
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
994
+ end
995
+ class Hook < Attribute
996
+ TYPE = 3
997
+ NAME = :"hook"
998
+ end
999
+ class Use < Attribute
1000
+ TYPE = 4
1001
+ NAME = :"use"
1002
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1003
+ end
1004
+ class Handle < Attribute
1005
+ TYPE = 5
1006
+ NAME = :"handle"
1007
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
1008
+ end
1009
+ class Pad < Attribute
1010
+ TYPE = 6
1011
+ NAME = :"pad"
1012
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Pad.new()
1013
+ end
1014
+ class Flags < Attribute
1015
+ TYPE = 7
1016
+ NAME = :"flags"
1017
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1018
+ end
1019
+ # :nodoc:
1020
+ BY_NAME = Ractor.make_shareable({:"table" => Table, :"name" => Name, :"hook" => Hook, :"use" => Use, :"handle" => Handle, :"pad" => Pad, :"flags" => Flags}) #: Hash[::Symbol, Attribute]
1021
+ # :nodoc:
1022
+ BY_TYPE = Ractor.make_shareable({1 => Table, 2 => Name, 3 => Hook, 4 => Use, 5 => Handle, 6 => Pad, 7 => Flags}) #: Hash[::Integer, Attribute]
1023
+ class << self
1024
+ # Looks up Attribute class by name.
1025
+ #--
1026
+ # @rbs name: Symbol
1027
+ # @rbs return: Attribute
1028
+ def by_name(name); BY_NAME.fetch(name); end
1029
+ # Looks up Attribute class by type value.
1030
+ #--
1031
+ # @rbs type: Integer
1032
+ # @rbs return: Attribute
1033
+ def by_type(type); BY_TYPE.fetch(type); end
1034
+ end
1035
+ end
1036
+ class FlowtableHookAttrs < ::Nl::Protocols::Raw::AttributeSet
1037
+ # Abstract class
1038
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1039
+ end
1040
+ class Num < Attribute
1041
+ TYPE = 1
1042
+ NAME = :"num"
1043
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1044
+ end
1045
+ class Priority < Attribute
1046
+ TYPE = 2
1047
+ NAME = :"priority"
1048
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1049
+ end
1050
+ class Devs < Attribute
1051
+ TYPE = 3
1052
+ NAME = :"devs"
1053
+ end
1054
+ # :nodoc:
1055
+ BY_NAME = Ractor.make_shareable({:"num" => Num, :"priority" => Priority, :"devs" => Devs}) #: Hash[::Symbol, Attribute]
1056
+ # :nodoc:
1057
+ BY_TYPE = Ractor.make_shareable({1 => Num, 2 => Priority, 3 => Devs}) #: Hash[::Integer, Attribute]
1058
+ class << self
1059
+ # Looks up Attribute class by name.
1060
+ #--
1061
+ # @rbs name: Symbol
1062
+ # @rbs return: Attribute
1063
+ def by_name(name); BY_NAME.fetch(name); end
1064
+ # Looks up Attribute class by type value.
1065
+ #--
1066
+ # @rbs type: Integer
1067
+ # @rbs return: Attribute
1068
+ def by_type(type); BY_TYPE.fetch(type); end
1069
+ end
1070
+ end
1071
+ class ExprBitwiseAttrs < ::Nl::Protocols::Raw::AttributeSet
1072
+ # Abstract class
1073
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1074
+ end
1075
+ class Sreg < Attribute
1076
+ TYPE = 1
1077
+ NAME = :"sreg"
1078
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1079
+ end
1080
+ class Dreg < Attribute
1081
+ TYPE = 2
1082
+ NAME = :"dreg"
1083
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1084
+ end
1085
+ class Len < Attribute
1086
+ TYPE = 3
1087
+ NAME = :"len"
1088
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1089
+ end
1090
+ class Mask < Attribute
1091
+ TYPE = 4
1092
+ NAME = :"mask"
1093
+ end
1094
+ class Xor < Attribute
1095
+ TYPE = 5
1096
+ NAME = :"xor"
1097
+ end
1098
+ class Op < Attribute
1099
+ TYPE = 6
1100
+ NAME = :"op"
1101
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1102
+ end
1103
+ class Data < Attribute
1104
+ TYPE = 7
1105
+ NAME = :"data"
1106
+ end
1107
+ # :nodoc:
1108
+ BY_NAME = Ractor.make_shareable({:"sreg" => Sreg, :"dreg" => Dreg, :"len" => Len, :"mask" => Mask, :"xor" => Xor, :"op" => Op, :"data" => Data}) #: Hash[::Symbol, Attribute]
1109
+ # :nodoc:
1110
+ BY_TYPE = Ractor.make_shareable({1 => Sreg, 2 => Dreg, 3 => Len, 4 => Mask, 5 => Xor, 6 => Op, 7 => Data}) #: Hash[::Integer, Attribute]
1111
+ class << self
1112
+ # Looks up Attribute class by name.
1113
+ #--
1114
+ # @rbs name: Symbol
1115
+ # @rbs return: Attribute
1116
+ def by_name(name); BY_NAME.fetch(name); end
1117
+ # Looks up Attribute class by type value.
1118
+ #--
1119
+ # @rbs type: Integer
1120
+ # @rbs return: Attribute
1121
+ def by_type(type); BY_TYPE.fetch(type); end
1122
+ end
1123
+ end
1124
+ class ExprCmpAttrs < ::Nl::Protocols::Raw::AttributeSet
1125
+ # Abstract class
1126
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1127
+ end
1128
+ class Sreg < Attribute
1129
+ TYPE = 1
1130
+ NAME = :"sreg"
1131
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1132
+ end
1133
+ class Op < Attribute
1134
+ TYPE = 2
1135
+ NAME = :"op"
1136
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1137
+ end
1138
+ class Data < Attribute
1139
+ TYPE = 3
1140
+ NAME = :"data"
1141
+ end
1142
+ # :nodoc:
1143
+ BY_NAME = Ractor.make_shareable({:"sreg" => Sreg, :"op" => Op, :"data" => Data}) #: Hash[::Symbol, Attribute]
1144
+ # :nodoc:
1145
+ BY_TYPE = Ractor.make_shareable({1 => Sreg, 2 => Op, 3 => Data}) #: Hash[::Integer, Attribute]
1146
+ class << self
1147
+ # Looks up Attribute class by name.
1148
+ #--
1149
+ # @rbs name: Symbol
1150
+ # @rbs return: Attribute
1151
+ def by_name(name); BY_NAME.fetch(name); end
1152
+ # Looks up Attribute class by type value.
1153
+ #--
1154
+ # @rbs type: Integer
1155
+ # @rbs return: Attribute
1156
+ def by_type(type); BY_TYPE.fetch(type); end
1157
+ end
1158
+ end
1159
+ class DataAttrs < ::Nl::Protocols::Raw::AttributeSet
1160
+ # Abstract class
1161
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1162
+ end
1163
+ class Value < Attribute
1164
+ TYPE = 1
1165
+ NAME = :"value"
1166
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
1167
+ end
1168
+ class Verdict < Attribute
1169
+ TYPE = 2
1170
+ NAME = :"verdict"
1171
+ end
1172
+ # :nodoc:
1173
+ BY_NAME = Ractor.make_shareable({:"value" => Value, :"verdict" => Verdict}) #: Hash[::Symbol, Attribute]
1174
+ # :nodoc:
1175
+ BY_TYPE = Ractor.make_shareable({1 => Value, 2 => Verdict}) #: Hash[::Integer, Attribute]
1176
+ class << self
1177
+ # Looks up Attribute class by name.
1178
+ #--
1179
+ # @rbs name: Symbol
1180
+ # @rbs return: Attribute
1181
+ def by_name(name); BY_NAME.fetch(name); end
1182
+ # Looks up Attribute class by type value.
1183
+ #--
1184
+ # @rbs type: Integer
1185
+ # @rbs return: Attribute
1186
+ def by_type(type); BY_TYPE.fetch(type); end
1187
+ end
1188
+ end
1189
+ class VerdictAttrs < ::Nl::Protocols::Raw::AttributeSet
1190
+ # Abstract class
1191
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1192
+ end
1193
+ class Code < Attribute
1194
+ TYPE = 1
1195
+ NAME = :"code"
1196
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1197
+ end
1198
+ class Chain < Attribute
1199
+ TYPE = 2
1200
+ NAME = :"chain"
1201
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
1202
+ end
1203
+ class ChainId < Attribute
1204
+ TYPE = 3
1205
+ NAME = :"chain_id"
1206
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
1207
+ end
1208
+ # :nodoc:
1209
+ BY_NAME = Ractor.make_shareable({:"code" => Code, :"chain" => Chain, :"chain_id" => ChainId}) #: Hash[::Symbol, Attribute]
1210
+ # :nodoc:
1211
+ BY_TYPE = Ractor.make_shareable({1 => Code, 2 => Chain, 3 => ChainId}) #: Hash[::Integer, Attribute]
1212
+ class << self
1213
+ # Looks up Attribute class by name.
1214
+ #--
1215
+ # @rbs name: Symbol
1216
+ # @rbs return: Attribute
1217
+ def by_name(name); BY_NAME.fetch(name); end
1218
+ # Looks up Attribute class by type value.
1219
+ #--
1220
+ # @rbs type: Integer
1221
+ # @rbs return: Attribute
1222
+ def by_type(type); BY_TYPE.fetch(type); end
1223
+ end
1224
+ end
1225
+ class ExprCounterAttrs < ::Nl::Protocols::Raw::AttributeSet
1226
+ # Abstract class
1227
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1228
+ end
1229
+ class Bytes < Attribute
1230
+ TYPE = 1
1231
+ NAME = :"bytes"
1232
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
1233
+ end
1234
+ class Packets < Attribute
1235
+ TYPE = 2
1236
+ NAME = :"packets"
1237
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
1238
+ end
1239
+ class Pad < Attribute
1240
+ TYPE = 3
1241
+ NAME = :"pad"
1242
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Pad.new()
1243
+ end
1244
+ # :nodoc:
1245
+ BY_NAME = Ractor.make_shareable({:"bytes" => Bytes, :"packets" => Packets, :"pad" => Pad}) #: Hash[::Symbol, Attribute]
1246
+ # :nodoc:
1247
+ BY_TYPE = Ractor.make_shareable({1 => Bytes, 2 => Packets, 3 => Pad}) #: Hash[::Integer, Attribute]
1248
+ class << self
1249
+ # Looks up Attribute class by name.
1250
+ #--
1251
+ # @rbs name: Symbol
1252
+ # @rbs return: Attribute
1253
+ def by_name(name); BY_NAME.fetch(name); end
1254
+ # Looks up Attribute class by type value.
1255
+ #--
1256
+ # @rbs type: Integer
1257
+ # @rbs return: Attribute
1258
+ def by_type(type); BY_TYPE.fetch(type); end
1259
+ end
1260
+ end
1261
+ class ExprFibAttrs < ::Nl::Protocols::Raw::AttributeSet
1262
+ # Abstract class
1263
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1264
+ end
1265
+ class Dreg < Attribute
1266
+ TYPE = 1
1267
+ NAME = :"dreg"
1268
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1269
+ end
1270
+ class Result < Attribute
1271
+ TYPE = 2
1272
+ NAME = :"result"
1273
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1274
+ end
1275
+ class Flags < Attribute
1276
+ TYPE = 3
1277
+ NAME = :"flags"
1278
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1279
+ end
1280
+ # :nodoc:
1281
+ BY_NAME = Ractor.make_shareable({:"dreg" => Dreg, :"result" => Result, :"flags" => Flags}) #: Hash[::Symbol, Attribute]
1282
+ # :nodoc:
1283
+ BY_TYPE = Ractor.make_shareable({1 => Dreg, 2 => Result, 3 => Flags}) #: Hash[::Integer, Attribute]
1284
+ class << self
1285
+ # Looks up Attribute class by name.
1286
+ #--
1287
+ # @rbs name: Symbol
1288
+ # @rbs return: Attribute
1289
+ def by_name(name); BY_NAME.fetch(name); end
1290
+ # Looks up Attribute class by type value.
1291
+ #--
1292
+ # @rbs type: Integer
1293
+ # @rbs return: Attribute
1294
+ def by_type(type); BY_TYPE.fetch(type); end
1295
+ end
1296
+ end
1297
+ class ExprCtAttrs < ::Nl::Protocols::Raw::AttributeSet
1298
+ # Abstract class
1299
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1300
+ end
1301
+ class Dreg < Attribute
1302
+ TYPE = 1
1303
+ NAME = :"dreg"
1304
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1305
+ end
1306
+ class Key < Attribute
1307
+ TYPE = 2
1308
+ NAME = :"key"
1309
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1310
+ end
1311
+ class Direction < Attribute
1312
+ TYPE = 3
1313
+ NAME = :"direction"
1314
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil)
1315
+ end
1316
+ class Sreg < Attribute
1317
+ TYPE = 4
1318
+ NAME = :"sreg"
1319
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1320
+ end
1321
+ # :nodoc:
1322
+ BY_NAME = Ractor.make_shareable({:"dreg" => Dreg, :"key" => Key, :"direction" => Direction, :"sreg" => Sreg}) #: Hash[::Symbol, Attribute]
1323
+ # :nodoc:
1324
+ BY_TYPE = Ractor.make_shareable({1 => Dreg, 2 => Key, 3 => Direction, 4 => Sreg}) #: Hash[::Integer, Attribute]
1325
+ class << self
1326
+ # Looks up Attribute class by name.
1327
+ #--
1328
+ # @rbs name: Symbol
1329
+ # @rbs return: Attribute
1330
+ def by_name(name); BY_NAME.fetch(name); end
1331
+ # Looks up Attribute class by type value.
1332
+ #--
1333
+ # @rbs type: Integer
1334
+ # @rbs return: Attribute
1335
+ def by_type(type); BY_TYPE.fetch(type); end
1336
+ end
1337
+ end
1338
+ class ExprFlowOffloadAttrs < ::Nl::Protocols::Raw::AttributeSet
1339
+ # Abstract class
1340
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1341
+ end
1342
+ class Name < Attribute
1343
+ TYPE = 1
1344
+ NAME = :"name"
1345
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
1346
+ end
1347
+ # :nodoc:
1348
+ BY_NAME = Ractor.make_shareable({:"name" => Name}) #: Hash[::Symbol, Attribute]
1349
+ # :nodoc:
1350
+ BY_TYPE = Ractor.make_shareable({1 => Name}) #: Hash[::Integer, Attribute]
1351
+ class << self
1352
+ # Looks up Attribute class by name.
1353
+ #--
1354
+ # @rbs name: Symbol
1355
+ # @rbs return: Attribute
1356
+ def by_name(name); BY_NAME.fetch(name); end
1357
+ # Looks up Attribute class by type value.
1358
+ #--
1359
+ # @rbs type: Integer
1360
+ # @rbs return: Attribute
1361
+ def by_type(type); BY_TYPE.fetch(type); end
1362
+ end
1363
+ end
1364
+ class ExprImmediateAttrs < ::Nl::Protocols::Raw::AttributeSet
1365
+ # Abstract class
1366
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1367
+ end
1368
+ class Dreg < Attribute
1369
+ TYPE = 1
1370
+ NAME = :"dreg"
1371
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1372
+ end
1373
+ class Data < Attribute
1374
+ TYPE = 2
1375
+ NAME = :"data"
1376
+ end
1377
+ # :nodoc:
1378
+ BY_NAME = Ractor.make_shareable({:"dreg" => Dreg, :"data" => Data}) #: Hash[::Symbol, Attribute]
1379
+ # :nodoc:
1380
+ BY_TYPE = Ractor.make_shareable({1 => Dreg, 2 => Data}) #: Hash[::Integer, Attribute]
1381
+ class << self
1382
+ # Looks up Attribute class by name.
1383
+ #--
1384
+ # @rbs name: Symbol
1385
+ # @rbs return: Attribute
1386
+ def by_name(name); BY_NAME.fetch(name); end
1387
+ # Looks up Attribute class by type value.
1388
+ #--
1389
+ # @rbs type: Integer
1390
+ # @rbs return: Attribute
1391
+ def by_type(type); BY_TYPE.fetch(type); end
1392
+ end
1393
+ end
1394
+ class ExprLookupAttrs < ::Nl::Protocols::Raw::AttributeSet
1395
+ # Abstract class
1396
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1397
+ end
1398
+ class Set < Attribute
1399
+ TYPE = 1
1400
+ NAME = :"set"
1401
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
1402
+ end
1403
+ class SetId < Attribute
1404
+ TYPE = 2
1405
+ NAME = :"set_id"
1406
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1407
+ end
1408
+ class Sreg < Attribute
1409
+ TYPE = 3
1410
+ NAME = :"sreg"
1411
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1412
+ end
1413
+ class Dreg < Attribute
1414
+ TYPE = 4
1415
+ NAME = :"dreg"
1416
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1417
+ end
1418
+ class Flags < Attribute
1419
+ TYPE = 5
1420
+ NAME = :"flags"
1421
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1422
+ end
1423
+ # :nodoc:
1424
+ BY_NAME = Ractor.make_shareable({:"set" => Set, :"set_id" => SetId, :"sreg" => Sreg, :"dreg" => Dreg, :"flags" => Flags}) #: Hash[::Symbol, Attribute]
1425
+ # :nodoc:
1426
+ BY_TYPE = Ractor.make_shareable({1 => Set, 2 => SetId, 3 => Sreg, 4 => Dreg, 5 => Flags}) #: Hash[::Integer, Attribute]
1427
+ class << self
1428
+ # Looks up Attribute class by name.
1429
+ #--
1430
+ # @rbs name: Symbol
1431
+ # @rbs return: Attribute
1432
+ def by_name(name); BY_NAME.fetch(name); end
1433
+ # Looks up Attribute class by type value.
1434
+ #--
1435
+ # @rbs type: Integer
1436
+ # @rbs return: Attribute
1437
+ def by_type(type); BY_TYPE.fetch(type); end
1438
+ end
1439
+ end
1440
+ class ExprMetaAttrs < ::Nl::Protocols::Raw::AttributeSet
1441
+ # Abstract class
1442
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1443
+ end
1444
+ class Dreg < Attribute
1445
+ TYPE = 1
1446
+ NAME = :"dreg"
1447
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1448
+ end
1449
+ class Key < Attribute
1450
+ TYPE = 2
1451
+ NAME = :"key"
1452
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1453
+ end
1454
+ class Sreg < Attribute
1455
+ TYPE = 3
1456
+ NAME = :"sreg"
1457
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1458
+ end
1459
+ # :nodoc:
1460
+ BY_NAME = Ractor.make_shareable({:"dreg" => Dreg, :"key" => Key, :"sreg" => Sreg}) #: Hash[::Symbol, Attribute]
1461
+ # :nodoc:
1462
+ BY_TYPE = Ractor.make_shareable({1 => Dreg, 2 => Key, 3 => Sreg}) #: Hash[::Integer, Attribute]
1463
+ class << self
1464
+ # Looks up Attribute class by name.
1465
+ #--
1466
+ # @rbs name: Symbol
1467
+ # @rbs return: Attribute
1468
+ def by_name(name); BY_NAME.fetch(name); end
1469
+ # Looks up Attribute class by type value.
1470
+ #--
1471
+ # @rbs type: Integer
1472
+ # @rbs return: Attribute
1473
+ def by_type(type); BY_TYPE.fetch(type); end
1474
+ end
1475
+ end
1476
+ class ExprNatAttrs < ::Nl::Protocols::Raw::AttributeSet
1477
+ # Abstract class
1478
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1479
+ end
1480
+ class Type < Attribute
1481
+ TYPE = 1
1482
+ NAME = :"type"
1483
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1484
+ end
1485
+ class Family < Attribute
1486
+ TYPE = 2
1487
+ NAME = :"family"
1488
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1489
+ end
1490
+ class RegAddrMin < Attribute
1491
+ TYPE = 3
1492
+ NAME = :"reg_addr_min"
1493
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1494
+ end
1495
+ class RegAddrMax < Attribute
1496
+ TYPE = 4
1497
+ NAME = :"reg_addr_max"
1498
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1499
+ end
1500
+ class RegProtoMin < Attribute
1501
+ TYPE = 5
1502
+ NAME = :"reg_proto_min"
1503
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1504
+ end
1505
+ class RegProtoMax < Attribute
1506
+ TYPE = 6
1507
+ NAME = :"reg_proto_max"
1508
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1509
+ end
1510
+ class Flags < Attribute
1511
+ TYPE = 7
1512
+ NAME = :"flags"
1513
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1514
+ end
1515
+ # :nodoc:
1516
+ BY_NAME = Ractor.make_shareable({:"type" => Type, :"family" => Family, :"reg_addr_min" => RegAddrMin, :"reg_addr_max" => RegAddrMax, :"reg_proto_min" => RegProtoMin, :"reg_proto_max" => RegProtoMax, :"flags" => Flags}) #: Hash[::Symbol, Attribute]
1517
+ # :nodoc:
1518
+ BY_TYPE = Ractor.make_shareable({1 => Type, 2 => Family, 3 => RegAddrMin, 4 => RegAddrMax, 5 => RegProtoMin, 6 => RegProtoMax, 7 => Flags}) #: Hash[::Integer, Attribute]
1519
+ class << self
1520
+ # Looks up Attribute class by name.
1521
+ #--
1522
+ # @rbs name: Symbol
1523
+ # @rbs return: Attribute
1524
+ def by_name(name); BY_NAME.fetch(name); end
1525
+ # Looks up Attribute class by type value.
1526
+ #--
1527
+ # @rbs type: Integer
1528
+ # @rbs return: Attribute
1529
+ def by_type(type); BY_TYPE.fetch(type); end
1530
+ end
1531
+ end
1532
+ class ExprPayloadAttrs < ::Nl::Protocols::Raw::AttributeSet
1533
+ # Abstract class
1534
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1535
+ end
1536
+ class Dreg < Attribute
1537
+ TYPE = 1
1538
+ NAME = :"dreg"
1539
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1540
+ end
1541
+ class Base < Attribute
1542
+ TYPE = 2
1543
+ NAME = :"base"
1544
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1545
+ end
1546
+ class Offset < Attribute
1547
+ TYPE = 3
1548
+ NAME = :"offset"
1549
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1550
+ end
1551
+ class Len < Attribute
1552
+ TYPE = 4
1553
+ NAME = :"len"
1554
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1555
+ end
1556
+ class Sreg < Attribute
1557
+ TYPE = 5
1558
+ NAME = :"sreg"
1559
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1560
+ end
1561
+ class CsumType < Attribute
1562
+ TYPE = 6
1563
+ NAME = :"csum_type"
1564
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1565
+ end
1566
+ class CsumOffset < Attribute
1567
+ TYPE = 7
1568
+ NAME = :"csum_offset"
1569
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1570
+ end
1571
+ class CsumFlags < Attribute
1572
+ TYPE = 8
1573
+ NAME = :"csum_flags"
1574
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1575
+ end
1576
+ # :nodoc:
1577
+ BY_NAME = Ractor.make_shareable({:"dreg" => Dreg, :"base" => Base, :"offset" => Offset, :"len" => Len, :"sreg" => Sreg, :"csum_type" => CsumType, :"csum_offset" => CsumOffset, :"csum_flags" => CsumFlags}) #: Hash[::Symbol, Attribute]
1578
+ # :nodoc:
1579
+ BY_TYPE = Ractor.make_shareable({1 => Dreg, 2 => Base, 3 => Offset, 4 => Len, 5 => Sreg, 6 => CsumType, 7 => CsumOffset, 8 => CsumFlags}) #: Hash[::Integer, Attribute]
1580
+ class << self
1581
+ # Looks up Attribute class by name.
1582
+ #--
1583
+ # @rbs name: Symbol
1584
+ # @rbs return: Attribute
1585
+ def by_name(name); BY_NAME.fetch(name); end
1586
+ # Looks up Attribute class by type value.
1587
+ #--
1588
+ # @rbs type: Integer
1589
+ # @rbs return: Attribute
1590
+ def by_type(type); BY_TYPE.fetch(type); end
1591
+ end
1592
+ end
1593
+ class ExprRejectAttrs < ::Nl::Protocols::Raw::AttributeSet
1594
+ # Abstract class
1595
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1596
+ end
1597
+ class Type < Attribute
1598
+ TYPE = 1
1599
+ NAME = :"type"
1600
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1601
+ end
1602
+ class IcmpCode < Attribute
1603
+ TYPE = 2
1604
+ NAME = :"icmp_code"
1605
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil)
1606
+ end
1607
+ # :nodoc:
1608
+ BY_NAME = Ractor.make_shareable({:"type" => Type, :"icmp_code" => IcmpCode}) #: Hash[::Symbol, Attribute]
1609
+ # :nodoc:
1610
+ BY_TYPE = Ractor.make_shareable({1 => Type, 2 => IcmpCode}) #: Hash[::Integer, Attribute]
1611
+ class << self
1612
+ # Looks up Attribute class by name.
1613
+ #--
1614
+ # @rbs name: Symbol
1615
+ # @rbs return: Attribute
1616
+ def by_name(name); BY_NAME.fetch(name); end
1617
+ # Looks up Attribute class by type value.
1618
+ #--
1619
+ # @rbs type: Integer
1620
+ # @rbs return: Attribute
1621
+ def by_type(type); BY_TYPE.fetch(type); end
1622
+ end
1623
+ end
1624
+ class ExprTargetAttrs < ::Nl::Protocols::Raw::AttributeSet
1625
+ # Abstract class
1626
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1627
+ end
1628
+ class Name < Attribute
1629
+ TYPE = 1
1630
+ NAME = :"name"
1631
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
1632
+ end
1633
+ class Rev < Attribute
1634
+ TYPE = 2
1635
+ NAME = :"rev"
1636
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1637
+ end
1638
+ class Info < Attribute
1639
+ TYPE = 3
1640
+ NAME = :"info"
1641
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
1642
+ end
1643
+ # :nodoc:
1644
+ BY_NAME = Ractor.make_shareable({:"name" => Name, :"rev" => Rev, :"info" => Info}) #: Hash[::Symbol, Attribute]
1645
+ # :nodoc:
1646
+ BY_TYPE = Ractor.make_shareable({1 => Name, 2 => Rev, 3 => Info}) #: Hash[::Integer, Attribute]
1647
+ class << self
1648
+ # Looks up Attribute class by name.
1649
+ #--
1650
+ # @rbs name: Symbol
1651
+ # @rbs return: Attribute
1652
+ def by_name(name); BY_NAME.fetch(name); end
1653
+ # Looks up Attribute class by type value.
1654
+ #--
1655
+ # @rbs type: Integer
1656
+ # @rbs return: Attribute
1657
+ def by_type(type); BY_TYPE.fetch(type); end
1658
+ end
1659
+ end
1660
+ class ExprTproxyAttrs < ::Nl::Protocols::Raw::AttributeSet
1661
+ # Abstract class
1662
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1663
+ end
1664
+ class Family < Attribute
1665
+ TYPE = 1
1666
+ NAME = :"family"
1667
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1668
+ end
1669
+ class RegAddr < Attribute
1670
+ TYPE = 2
1671
+ NAME = :"reg_addr"
1672
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1673
+ end
1674
+ class RegPort < Attribute
1675
+ TYPE = 3
1676
+ NAME = :"reg_port"
1677
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1678
+ end
1679
+ # :nodoc:
1680
+ BY_NAME = Ractor.make_shareable({:"family" => Family, :"reg_addr" => RegAddr, :"reg_port" => RegPort}) #: Hash[::Symbol, Attribute]
1681
+ # :nodoc:
1682
+ BY_TYPE = Ractor.make_shareable({1 => Family, 2 => RegAddr, 3 => RegPort}) #: Hash[::Integer, Attribute]
1683
+ class << self
1684
+ # Looks up Attribute class by name.
1685
+ #--
1686
+ # @rbs name: Symbol
1687
+ # @rbs return: Attribute
1688
+ def by_name(name); BY_NAME.fetch(name); end
1689
+ # Looks up Attribute class by type value.
1690
+ #--
1691
+ # @rbs type: Integer
1692
+ # @rbs return: Attribute
1693
+ def by_type(type); BY_TYPE.fetch(type); end
1694
+ end
1695
+ end
1696
+ class ExprObjrefAttrs < ::Nl::Protocols::Raw::AttributeSet
1697
+ # Abstract class
1698
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1699
+ end
1700
+ class ImmType < Attribute
1701
+ TYPE = 1
1702
+ NAME = :"imm_type"
1703
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1704
+ end
1705
+ class ImmName < Attribute
1706
+ TYPE = 2
1707
+ NAME = :"imm_name"
1708
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
1709
+ end
1710
+ class SetSreg < Attribute
1711
+ TYPE = 3
1712
+ NAME = :"set_sreg"
1713
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1714
+ end
1715
+ class SetName < Attribute
1716
+ TYPE = 4
1717
+ NAME = :"set_name"
1718
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
1719
+ end
1720
+ class SetId < Attribute
1721
+ TYPE = 5
1722
+ NAME = :"set_id"
1723
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1724
+ end
1725
+ # :nodoc:
1726
+ BY_NAME = Ractor.make_shareable({:"imm_type" => ImmType, :"imm_name" => ImmName, :"set_sreg" => SetSreg, :"set_name" => SetName, :"set_id" => SetId}) #: Hash[::Symbol, Attribute]
1727
+ # :nodoc:
1728
+ BY_TYPE = Ractor.make_shareable({1 => ImmType, 2 => ImmName, 3 => SetSreg, 4 => SetName, 5 => SetId}) #: Hash[::Integer, Attribute]
1729
+ class << self
1730
+ # Looks up Attribute class by name.
1731
+ #--
1732
+ # @rbs name: Symbol
1733
+ # @rbs return: Attribute
1734
+ def by_name(name); BY_NAME.fetch(name); end
1735
+ # Looks up Attribute class by type value.
1736
+ #--
1737
+ # @rbs type: Integer
1738
+ # @rbs return: Attribute
1739
+ def by_type(type); BY_TYPE.fetch(type); end
1740
+ end
1741
+ end
1742
+ ChainAttrs::Hook::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(NftHookAttrs)
1743
+ ChainAttrs::Counters::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(NftCounterAttrs)
1744
+ NftHookAttrs::Devs::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(HookDevAttrs)
1745
+ RuleAttrs::Expressions::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(ExprListAttrs)
1746
+ RuleAttrs::Compat::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(RuleCompatAttrs)
1747
+ ExprListAttrs::Elem::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(ExprAttrs)
1748
+ SetAttrs::Desc::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(SetDescAttrs)
1749
+ SetAttrs::Expr::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(ExprAttrs)
1750
+ SetAttrs::Expressions::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(SetListAttrs)
1751
+ SetDescAttrs::Concat::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(SetDescConcatAttrs)
1752
+ SetDescConcatAttrs::Elem::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(SetFieldAttrs)
1753
+ SetListAttrs::Elem::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(ExprAttrs)
1754
+ SetelemAttrs::Key::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
1755
+ SetelemAttrs::Data::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
1756
+ SetelemAttrs::Expr::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(ExprAttrs)
1757
+ SetelemAttrs::KeyEnd::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
1758
+ SetelemAttrs::Expressions::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(ExprListAttrs)
1759
+ SetelemListElemAttrs::Elem::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(SetelemAttrs)
1760
+ SetelemListAttrs::Elements::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(SetelemListElemAttrs)
1761
+ FlowtableAttrs::Hook::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(FlowtableHookAttrs)
1762
+ FlowtableHookAttrs::Devs::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(HookDevAttrs)
1763
+ ExprBitwiseAttrs::Mask::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
1764
+ ExprBitwiseAttrs::Xor::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
1765
+ ExprBitwiseAttrs::Data::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
1766
+ ExprCmpAttrs::Data::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
1767
+ DataAttrs::Verdict::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(VerdictAttrs)
1768
+ ExprImmediateAttrs::Data::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
1769
+ end
1770
+ module Messages
1771
+ # Start a batch of operations
1772
+ class DoBatchBeginRequest < ::Nl::Protocols::Raw::Message
1773
+ TYPE = 16
1774
+ FIXED_HEADER = Structs::Nfgenmsg
1775
+ ATTRIBUTE_SET = AttributeSets::BatchAttrs
1776
+ ATTRIBUTES = Ractor.make_shareable(%i[genid])
1777
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1778
+ #--
1779
+ # @rbs return: ::Integer
1780
+ def nfgen_family; fixed_header.nfgen_family; end
1781
+ # Gets the value of `version` field in the message's fixed header.
1782
+ #--
1783
+ # @rbs return: ::Integer
1784
+ def version; fixed_header.version; end
1785
+ # Gets the value of `res-id` field in the message's fixed header.
1786
+ #--
1787
+ # @rbs return: ::Integer
1788
+ def res_id; fixed_header.res_id; end
1789
+ # Gets the value of `genid` attribute in the message.
1790
+ #--
1791
+ # @rbs return: ::Integer
1792
+ def genid; attributes[:"genid"]&.value; end
1793
+ end
1794
+ # Start a batch of operations
1795
+ class DoBatchBeginReply < ::Nl::Protocols::Raw::Message
1796
+ TYPE = 16
1797
+ FIXED_HEADER = Structs::Nfgenmsg
1798
+ ATTRIBUTE_SET = AttributeSets::BatchAttrs
1799
+ ATTRIBUTES = Ractor.make_shareable(%i[genid])
1800
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1801
+ #--
1802
+ # @rbs return: ::Integer
1803
+ def nfgen_family; fixed_header.nfgen_family; end
1804
+ # Gets the value of `version` field in the message's fixed header.
1805
+ #--
1806
+ # @rbs return: ::Integer
1807
+ def version; fixed_header.version; end
1808
+ # Gets the value of `res-id` field in the message's fixed header.
1809
+ #--
1810
+ # @rbs return: ::Integer
1811
+ def res_id; fixed_header.res_id; end
1812
+ # Gets the value of `genid` attribute in the message.
1813
+ #--
1814
+ # @rbs return: ::Integer
1815
+ def genid; attributes[:"genid"]&.value; end
1816
+ end
1817
+ # Finish a batch of operations
1818
+ class DoBatchEndRequest < ::Nl::Protocols::Raw::Message
1819
+ TYPE = 17
1820
+ FIXED_HEADER = Structs::Nfgenmsg
1821
+ ATTRIBUTE_SET = AttributeSets::BatchAttrs
1822
+ ATTRIBUTES = Ractor.make_shareable(%i[genid])
1823
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1824
+ #--
1825
+ # @rbs return: ::Integer
1826
+ def nfgen_family; fixed_header.nfgen_family; end
1827
+ # Gets the value of `version` field in the message's fixed header.
1828
+ #--
1829
+ # @rbs return: ::Integer
1830
+ def version; fixed_header.version; end
1831
+ # Gets the value of `res-id` field in the message's fixed header.
1832
+ #--
1833
+ # @rbs return: ::Integer
1834
+ def res_id; fixed_header.res_id; end
1835
+ # Gets the value of `genid` attribute in the message.
1836
+ #--
1837
+ # @rbs return: ::Integer
1838
+ def genid; attributes[:"genid"]&.value; end
1839
+ end
1840
+ # Create a new table.
1841
+ class DoNewtableRequest < ::Nl::Protocols::Raw::Message
1842
+ TYPE = 2560
1843
+ FIXED_HEADER = Structs::Nfgenmsg
1844
+ ATTRIBUTE_SET = AttributeSets::TableAttrs
1845
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
1846
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1847
+ #--
1848
+ # @rbs return: ::Integer
1849
+ def nfgen_family; fixed_header.nfgen_family; end
1850
+ # Gets the value of `version` field in the message's fixed header.
1851
+ #--
1852
+ # @rbs return: ::Integer
1853
+ def version; fixed_header.version; end
1854
+ # Gets the value of `res-id` field in the message's fixed header.
1855
+ #--
1856
+ # @rbs return: ::Integer
1857
+ def res_id; fixed_header.res_id; end
1858
+ # Gets the value of `name` attribute in the message.
1859
+ #--
1860
+ # @rbs return: ::String
1861
+ def name; attributes[:"name"]&.value; end
1862
+ end
1863
+ # Get / dump tables.
1864
+ class DoGettableRequest < ::Nl::Protocols::Raw::Message
1865
+ TYPE = 2561
1866
+ FIXED_HEADER = Structs::Nfgenmsg
1867
+ ATTRIBUTE_SET = AttributeSets::TableAttrs
1868
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
1869
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1870
+ #--
1871
+ # @rbs return: ::Integer
1872
+ def nfgen_family; fixed_header.nfgen_family; end
1873
+ # Gets the value of `version` field in the message's fixed header.
1874
+ #--
1875
+ # @rbs return: ::Integer
1876
+ def version; fixed_header.version; end
1877
+ # Gets the value of `res-id` field in the message's fixed header.
1878
+ #--
1879
+ # @rbs return: ::Integer
1880
+ def res_id; fixed_header.res_id; end
1881
+ # Gets the value of `name` attribute in the message.
1882
+ #--
1883
+ # @rbs return: ::String
1884
+ def name; attributes[:"name"]&.value; end
1885
+ end
1886
+ # Get / dump tables.
1887
+ class DoGettableReply < ::Nl::Protocols::Raw::Message
1888
+ TYPE = 2560
1889
+ FIXED_HEADER = Structs::Nfgenmsg
1890
+ ATTRIBUTE_SET = AttributeSets::TableAttrs
1891
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
1892
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1893
+ #--
1894
+ # @rbs return: ::Integer
1895
+ def nfgen_family; fixed_header.nfgen_family; end
1896
+ # Gets the value of `version` field in the message's fixed header.
1897
+ #--
1898
+ # @rbs return: ::Integer
1899
+ def version; fixed_header.version; end
1900
+ # Gets the value of `res-id` field in the message's fixed header.
1901
+ #--
1902
+ # @rbs return: ::Integer
1903
+ def res_id; fixed_header.res_id; end
1904
+ # Gets the value of `name` attribute in the message.
1905
+ #--
1906
+ # @rbs return: ::String
1907
+ def name; attributes[:"name"]&.value; end
1908
+ end
1909
+ # Delete an existing table.
1910
+ class DoDeltableRequest < ::Nl::Protocols::Raw::Message
1911
+ TYPE = 2562
1912
+ FIXED_HEADER = Structs::Nfgenmsg
1913
+ ATTRIBUTE_SET = AttributeSets::TableAttrs
1914
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
1915
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1916
+ #--
1917
+ # @rbs return: ::Integer
1918
+ def nfgen_family; fixed_header.nfgen_family; end
1919
+ # Gets the value of `version` field in the message's fixed header.
1920
+ #--
1921
+ # @rbs return: ::Integer
1922
+ def version; fixed_header.version; end
1923
+ # Gets the value of `res-id` field in the message's fixed header.
1924
+ #--
1925
+ # @rbs return: ::Integer
1926
+ def res_id; fixed_header.res_id; end
1927
+ # Gets the value of `name` attribute in the message.
1928
+ #--
1929
+ # @rbs return: ::String
1930
+ def name; attributes[:"name"]&.value; end
1931
+ end
1932
+ # Delete an existing table with destroy semantics (ignoring ENOENT
1933
+ # errors).
1934
+ class DoDestroytableRequest < ::Nl::Protocols::Raw::Message
1935
+ TYPE = 2586
1936
+ FIXED_HEADER = Structs::Nfgenmsg
1937
+ ATTRIBUTE_SET = AttributeSets::TableAttrs
1938
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
1939
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1940
+ #--
1941
+ # @rbs return: ::Integer
1942
+ def nfgen_family; fixed_header.nfgen_family; end
1943
+ # Gets the value of `version` field in the message's fixed header.
1944
+ #--
1945
+ # @rbs return: ::Integer
1946
+ def version; fixed_header.version; end
1947
+ # Gets the value of `res-id` field in the message's fixed header.
1948
+ #--
1949
+ # @rbs return: ::Integer
1950
+ def res_id; fixed_header.res_id; end
1951
+ # Gets the value of `name` attribute in the message.
1952
+ #--
1953
+ # @rbs return: ::String
1954
+ def name; attributes[:"name"]&.value; end
1955
+ end
1956
+ # Create a new chain.
1957
+ class DoNewchainRequest < ::Nl::Protocols::Raw::Message
1958
+ TYPE = 2563
1959
+ FIXED_HEADER = Structs::Nfgenmsg
1960
+ ATTRIBUTE_SET = AttributeSets::ChainAttrs
1961
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
1962
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1963
+ #--
1964
+ # @rbs return: ::Integer
1965
+ def nfgen_family; fixed_header.nfgen_family; end
1966
+ # Gets the value of `version` field in the message's fixed header.
1967
+ #--
1968
+ # @rbs return: ::Integer
1969
+ def version; fixed_header.version; end
1970
+ # Gets the value of `res-id` field in the message's fixed header.
1971
+ #--
1972
+ # @rbs return: ::Integer
1973
+ def res_id; fixed_header.res_id; end
1974
+ # Gets the value of `name` attribute in the message.
1975
+ #--
1976
+ # @rbs return: ::String
1977
+ def name; attributes[:"name"]&.value; end
1978
+ end
1979
+ # Get / dump chains.
1980
+ class DoGetchainRequest < ::Nl::Protocols::Raw::Message
1981
+ TYPE = 2564
1982
+ FIXED_HEADER = Structs::Nfgenmsg
1983
+ ATTRIBUTE_SET = AttributeSets::ChainAttrs
1984
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
1985
+ # Gets the value of `nfgen-family` field in the message's fixed header.
1986
+ #--
1987
+ # @rbs return: ::Integer
1988
+ def nfgen_family; fixed_header.nfgen_family; end
1989
+ # Gets the value of `version` field in the message's fixed header.
1990
+ #--
1991
+ # @rbs return: ::Integer
1992
+ def version; fixed_header.version; end
1993
+ # Gets the value of `res-id` field in the message's fixed header.
1994
+ #--
1995
+ # @rbs return: ::Integer
1996
+ def res_id; fixed_header.res_id; end
1997
+ # Gets the value of `name` attribute in the message.
1998
+ #--
1999
+ # @rbs return: ::String
2000
+ def name; attributes[:"name"]&.value; end
2001
+ end
2002
+ # Get / dump chains.
2003
+ class DoGetchainReply < ::Nl::Protocols::Raw::Message
2004
+ TYPE = 2563
2005
+ FIXED_HEADER = Structs::Nfgenmsg
2006
+ ATTRIBUTE_SET = AttributeSets::ChainAttrs
2007
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2008
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2009
+ #--
2010
+ # @rbs return: ::Integer
2011
+ def nfgen_family; fixed_header.nfgen_family; end
2012
+ # Gets the value of `version` field in the message's fixed header.
2013
+ #--
2014
+ # @rbs return: ::Integer
2015
+ def version; fixed_header.version; end
2016
+ # Gets the value of `res-id` field in the message's fixed header.
2017
+ #--
2018
+ # @rbs return: ::Integer
2019
+ def res_id; fixed_header.res_id; end
2020
+ # Gets the value of `name` attribute in the message.
2021
+ #--
2022
+ # @rbs return: ::String
2023
+ def name; attributes[:"name"]&.value; end
2024
+ end
2025
+ # Delete an existing chain.
2026
+ class DoDelchainRequest < ::Nl::Protocols::Raw::Message
2027
+ TYPE = 2565
2028
+ FIXED_HEADER = Structs::Nfgenmsg
2029
+ ATTRIBUTE_SET = AttributeSets::ChainAttrs
2030
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2031
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2032
+ #--
2033
+ # @rbs return: ::Integer
2034
+ def nfgen_family; fixed_header.nfgen_family; end
2035
+ # Gets the value of `version` field in the message's fixed header.
2036
+ #--
2037
+ # @rbs return: ::Integer
2038
+ def version; fixed_header.version; end
2039
+ # Gets the value of `res-id` field in the message's fixed header.
2040
+ #--
2041
+ # @rbs return: ::Integer
2042
+ def res_id; fixed_header.res_id; end
2043
+ # Gets the value of `name` attribute in the message.
2044
+ #--
2045
+ # @rbs return: ::String
2046
+ def name; attributes[:"name"]&.value; end
2047
+ end
2048
+ # Delete an existing chain with destroy semantics (ignoring ENOENT
2049
+ # errors).
2050
+ class DoDestroychainRequest < ::Nl::Protocols::Raw::Message
2051
+ TYPE = 2587
2052
+ FIXED_HEADER = Structs::Nfgenmsg
2053
+ ATTRIBUTE_SET = AttributeSets::ChainAttrs
2054
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2055
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2056
+ #--
2057
+ # @rbs return: ::Integer
2058
+ def nfgen_family; fixed_header.nfgen_family; end
2059
+ # Gets the value of `version` field in the message's fixed header.
2060
+ #--
2061
+ # @rbs return: ::Integer
2062
+ def version; fixed_header.version; end
2063
+ # Gets the value of `res-id` field in the message's fixed header.
2064
+ #--
2065
+ # @rbs return: ::Integer
2066
+ def res_id; fixed_header.res_id; end
2067
+ # Gets the value of `name` attribute in the message.
2068
+ #--
2069
+ # @rbs return: ::String
2070
+ def name; attributes[:"name"]&.value; end
2071
+ end
2072
+ # Create a new rule.
2073
+ class DoNewruleRequest < ::Nl::Protocols::Raw::Message
2074
+ TYPE = 2566
2075
+ FIXED_HEADER = Structs::Nfgenmsg
2076
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2077
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2078
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2079
+ #--
2080
+ # @rbs return: ::Integer
2081
+ def nfgen_family; fixed_header.nfgen_family; end
2082
+ # Gets the value of `version` field in the message's fixed header.
2083
+ #--
2084
+ # @rbs return: ::Integer
2085
+ def version; fixed_header.version; end
2086
+ # Gets the value of `res-id` field in the message's fixed header.
2087
+ #--
2088
+ # @rbs return: ::Integer
2089
+ def res_id; fixed_header.res_id; end
2090
+ end
2091
+ # Get / dump rules.
2092
+ class DoGetruleRequest < ::Nl::Protocols::Raw::Message
2093
+ TYPE = 2567
2094
+ FIXED_HEADER = Structs::Nfgenmsg
2095
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2096
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2097
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2098
+ #--
2099
+ # @rbs return: ::Integer
2100
+ def nfgen_family; fixed_header.nfgen_family; end
2101
+ # Gets the value of `version` field in the message's fixed header.
2102
+ #--
2103
+ # @rbs return: ::Integer
2104
+ def version; fixed_header.version; end
2105
+ # Gets the value of `res-id` field in the message's fixed header.
2106
+ #--
2107
+ # @rbs return: ::Integer
2108
+ def res_id; fixed_header.res_id; end
2109
+ end
2110
+ # Get / dump rules.
2111
+ class DoGetruleReply < ::Nl::Protocols::Raw::Message
2112
+ TYPE = 2566
2113
+ FIXED_HEADER = Structs::Nfgenmsg
2114
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2115
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2116
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2117
+ #--
2118
+ # @rbs return: ::Integer
2119
+ def nfgen_family; fixed_header.nfgen_family; end
2120
+ # Gets the value of `version` field in the message's fixed header.
2121
+ #--
2122
+ # @rbs return: ::Integer
2123
+ def version; fixed_header.version; end
2124
+ # Gets the value of `res-id` field in the message's fixed header.
2125
+ #--
2126
+ # @rbs return: ::Integer
2127
+ def res_id; fixed_header.res_id; end
2128
+ end
2129
+ # Get / dump rules and reset stateful expressions.
2130
+ class DoGetruleResetRequest < ::Nl::Protocols::Raw::Message
2131
+ TYPE = 2585
2132
+ FIXED_HEADER = Structs::Nfgenmsg
2133
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2134
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2135
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2136
+ #--
2137
+ # @rbs return: ::Integer
2138
+ def nfgen_family; fixed_header.nfgen_family; end
2139
+ # Gets the value of `version` field in the message's fixed header.
2140
+ #--
2141
+ # @rbs return: ::Integer
2142
+ def version; fixed_header.version; end
2143
+ # Gets the value of `res-id` field in the message's fixed header.
2144
+ #--
2145
+ # @rbs return: ::Integer
2146
+ def res_id; fixed_header.res_id; end
2147
+ end
2148
+ # Get / dump rules and reset stateful expressions.
2149
+ class DoGetruleResetReply < ::Nl::Protocols::Raw::Message
2150
+ TYPE = 2566
2151
+ FIXED_HEADER = Structs::Nfgenmsg
2152
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2153
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2154
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2155
+ #--
2156
+ # @rbs return: ::Integer
2157
+ def nfgen_family; fixed_header.nfgen_family; end
2158
+ # Gets the value of `version` field in the message's fixed header.
2159
+ #--
2160
+ # @rbs return: ::Integer
2161
+ def version; fixed_header.version; end
2162
+ # Gets the value of `res-id` field in the message's fixed header.
2163
+ #--
2164
+ # @rbs return: ::Integer
2165
+ def res_id; fixed_header.res_id; end
2166
+ end
2167
+ # Delete an existing rule.
2168
+ class DoDelruleRequest < ::Nl::Protocols::Raw::Message
2169
+ TYPE = 2568
2170
+ FIXED_HEADER = Structs::Nfgenmsg
2171
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2172
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2173
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2174
+ #--
2175
+ # @rbs return: ::Integer
2176
+ def nfgen_family; fixed_header.nfgen_family; end
2177
+ # Gets the value of `version` field in the message's fixed header.
2178
+ #--
2179
+ # @rbs return: ::Integer
2180
+ def version; fixed_header.version; end
2181
+ # Gets the value of `res-id` field in the message's fixed header.
2182
+ #--
2183
+ # @rbs return: ::Integer
2184
+ def res_id; fixed_header.res_id; end
2185
+ end
2186
+ # Delete an existing rule with destroy semantics (ignoring ENOENT errors).
2187
+ class DoDestroyruleRequest < ::Nl::Protocols::Raw::Message
2188
+ TYPE = 2588
2189
+ FIXED_HEADER = Structs::Nfgenmsg
2190
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2191
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2192
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2193
+ #--
2194
+ # @rbs return: ::Integer
2195
+ def nfgen_family; fixed_header.nfgen_family; end
2196
+ # Gets the value of `version` field in the message's fixed header.
2197
+ #--
2198
+ # @rbs return: ::Integer
2199
+ def version; fixed_header.version; end
2200
+ # Gets the value of `res-id` field in the message's fixed header.
2201
+ #--
2202
+ # @rbs return: ::Integer
2203
+ def res_id; fixed_header.res_id; end
2204
+ end
2205
+ # Create a new set.
2206
+ class DoNewsetRequest < ::Nl::Protocols::Raw::Message
2207
+ TYPE = 2569
2208
+ FIXED_HEADER = Structs::Nfgenmsg
2209
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
2210
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2211
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2212
+ #--
2213
+ # @rbs return: ::Integer
2214
+ def nfgen_family; fixed_header.nfgen_family; end
2215
+ # Gets the value of `version` field in the message's fixed header.
2216
+ #--
2217
+ # @rbs return: ::Integer
2218
+ def version; fixed_header.version; end
2219
+ # Gets the value of `res-id` field in the message's fixed header.
2220
+ #--
2221
+ # @rbs return: ::Integer
2222
+ def res_id; fixed_header.res_id; end
2223
+ # Gets the value of `name` attribute in the message.
2224
+ #--
2225
+ # @rbs return: ::String
2226
+ def name; attributes[:"name"]&.value; end
2227
+ end
2228
+ # Get / dump sets.
2229
+ class DoGetsetRequest < ::Nl::Protocols::Raw::Message
2230
+ TYPE = 2570
2231
+ FIXED_HEADER = Structs::Nfgenmsg
2232
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
2233
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2234
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2235
+ #--
2236
+ # @rbs return: ::Integer
2237
+ def nfgen_family; fixed_header.nfgen_family; end
2238
+ # Gets the value of `version` field in the message's fixed header.
2239
+ #--
2240
+ # @rbs return: ::Integer
2241
+ def version; fixed_header.version; end
2242
+ # Gets the value of `res-id` field in the message's fixed header.
2243
+ #--
2244
+ # @rbs return: ::Integer
2245
+ def res_id; fixed_header.res_id; end
2246
+ # Gets the value of `name` attribute in the message.
2247
+ #--
2248
+ # @rbs return: ::String
2249
+ def name; attributes[:"name"]&.value; end
2250
+ end
2251
+ # Get / dump sets.
2252
+ class DoGetsetReply < ::Nl::Protocols::Raw::Message
2253
+ TYPE = 2569
2254
+ FIXED_HEADER = Structs::Nfgenmsg
2255
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
2256
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2257
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2258
+ #--
2259
+ # @rbs return: ::Integer
2260
+ def nfgen_family; fixed_header.nfgen_family; end
2261
+ # Gets the value of `version` field in the message's fixed header.
2262
+ #--
2263
+ # @rbs return: ::Integer
2264
+ def version; fixed_header.version; end
2265
+ # Gets the value of `res-id` field in the message's fixed header.
2266
+ #--
2267
+ # @rbs return: ::Integer
2268
+ def res_id; fixed_header.res_id; end
2269
+ # Gets the value of `name` attribute in the message.
2270
+ #--
2271
+ # @rbs return: ::String
2272
+ def name; attributes[:"name"]&.value; end
2273
+ end
2274
+ # Delete an existing set.
2275
+ class DoDelsetRequest < ::Nl::Protocols::Raw::Message
2276
+ TYPE = 2571
2277
+ FIXED_HEADER = Structs::Nfgenmsg
2278
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
2279
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2280
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2281
+ #--
2282
+ # @rbs return: ::Integer
2283
+ def nfgen_family; fixed_header.nfgen_family; end
2284
+ # Gets the value of `version` field in the message's fixed header.
2285
+ #--
2286
+ # @rbs return: ::Integer
2287
+ def version; fixed_header.version; end
2288
+ # Gets the value of `res-id` field in the message's fixed header.
2289
+ #--
2290
+ # @rbs return: ::Integer
2291
+ def res_id; fixed_header.res_id; end
2292
+ # Gets the value of `name` attribute in the message.
2293
+ #--
2294
+ # @rbs return: ::String
2295
+ def name; attributes[:"name"]&.value; end
2296
+ end
2297
+ # Delete an existing set with destroy semantics (ignoring ENOENT errors).
2298
+ class DoDestroysetRequest < ::Nl::Protocols::Raw::Message
2299
+ TYPE = 2589
2300
+ FIXED_HEADER = Structs::Nfgenmsg
2301
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
2302
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2303
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2304
+ #--
2305
+ # @rbs return: ::Integer
2306
+ def nfgen_family; fixed_header.nfgen_family; end
2307
+ # Gets the value of `version` field in the message's fixed header.
2308
+ #--
2309
+ # @rbs return: ::Integer
2310
+ def version; fixed_header.version; end
2311
+ # Gets the value of `res-id` field in the message's fixed header.
2312
+ #--
2313
+ # @rbs return: ::Integer
2314
+ def res_id; fixed_header.res_id; end
2315
+ # Gets the value of `name` attribute in the message.
2316
+ #--
2317
+ # @rbs return: ::String
2318
+ def name; attributes[:"name"]&.value; end
2319
+ end
2320
+ # Create a new set element.
2321
+ class DoNewsetelemRequest < ::Nl::Protocols::Raw::Message
2322
+ TYPE = 2572
2323
+ FIXED_HEADER = Structs::Nfgenmsg
2324
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2325
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2326
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2327
+ #--
2328
+ # @rbs return: ::Integer
2329
+ def nfgen_family; fixed_header.nfgen_family; end
2330
+ # Gets the value of `version` field in the message's fixed header.
2331
+ #--
2332
+ # @rbs return: ::Integer
2333
+ def version; fixed_header.version; end
2334
+ # Gets the value of `res-id` field in the message's fixed header.
2335
+ #--
2336
+ # @rbs return: ::Integer
2337
+ def res_id; fixed_header.res_id; end
2338
+ end
2339
+ # Get / dump set elements.
2340
+ class DoGetsetelemRequest < ::Nl::Protocols::Raw::Message
2341
+ TYPE = 2573
2342
+ FIXED_HEADER = Structs::Nfgenmsg
2343
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2344
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2345
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2346
+ #--
2347
+ # @rbs return: ::Integer
2348
+ def nfgen_family; fixed_header.nfgen_family; end
2349
+ # Gets the value of `version` field in the message's fixed header.
2350
+ #--
2351
+ # @rbs return: ::Integer
2352
+ def version; fixed_header.version; end
2353
+ # Gets the value of `res-id` field in the message's fixed header.
2354
+ #--
2355
+ # @rbs return: ::Integer
2356
+ def res_id; fixed_header.res_id; end
2357
+ end
2358
+ # Get / dump set elements.
2359
+ class DoGetsetelemReply < ::Nl::Protocols::Raw::Message
2360
+ TYPE = 2572
2361
+ FIXED_HEADER = Structs::Nfgenmsg
2362
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2363
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2364
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2365
+ #--
2366
+ # @rbs return: ::Integer
2367
+ def nfgen_family; fixed_header.nfgen_family; end
2368
+ # Gets the value of `version` field in the message's fixed header.
2369
+ #--
2370
+ # @rbs return: ::Integer
2371
+ def version; fixed_header.version; end
2372
+ # Gets the value of `res-id` field in the message's fixed header.
2373
+ #--
2374
+ # @rbs return: ::Integer
2375
+ def res_id; fixed_header.res_id; end
2376
+ end
2377
+ # Get / dump set elements and reset stateful expressions.
2378
+ class DoGetsetelemResetRequest < ::Nl::Protocols::Raw::Message
2379
+ TYPE = 2593
2380
+ FIXED_HEADER = Structs::Nfgenmsg
2381
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2382
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2383
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2384
+ #--
2385
+ # @rbs return: ::Integer
2386
+ def nfgen_family; fixed_header.nfgen_family; end
2387
+ # Gets the value of `version` field in the message's fixed header.
2388
+ #--
2389
+ # @rbs return: ::Integer
2390
+ def version; fixed_header.version; end
2391
+ # Gets the value of `res-id` field in the message's fixed header.
2392
+ #--
2393
+ # @rbs return: ::Integer
2394
+ def res_id; fixed_header.res_id; end
2395
+ end
2396
+ # Get / dump set elements and reset stateful expressions.
2397
+ class DoGetsetelemResetReply < ::Nl::Protocols::Raw::Message
2398
+ TYPE = 2572
2399
+ FIXED_HEADER = Structs::Nfgenmsg
2400
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2401
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2402
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2403
+ #--
2404
+ # @rbs return: ::Integer
2405
+ def nfgen_family; fixed_header.nfgen_family; end
2406
+ # Gets the value of `version` field in the message's fixed header.
2407
+ #--
2408
+ # @rbs return: ::Integer
2409
+ def version; fixed_header.version; end
2410
+ # Gets the value of `res-id` field in the message's fixed header.
2411
+ #--
2412
+ # @rbs return: ::Integer
2413
+ def res_id; fixed_header.res_id; end
2414
+ end
2415
+ # Delete an existing set element.
2416
+ class DoDelsetelemRequest < ::Nl::Protocols::Raw::Message
2417
+ TYPE = 2574
2418
+ FIXED_HEADER = Structs::Nfgenmsg
2419
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2420
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2421
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2422
+ #--
2423
+ # @rbs return: ::Integer
2424
+ def nfgen_family; fixed_header.nfgen_family; end
2425
+ # Gets the value of `version` field in the message's fixed header.
2426
+ #--
2427
+ # @rbs return: ::Integer
2428
+ def version; fixed_header.version; end
2429
+ # Gets the value of `res-id` field in the message's fixed header.
2430
+ #--
2431
+ # @rbs return: ::Integer
2432
+ def res_id; fixed_header.res_id; end
2433
+ end
2434
+ # Delete an existing set element with destroy semantics.
2435
+ class DoDestroysetelemRequest < ::Nl::Protocols::Raw::Message
2436
+ TYPE = 2590
2437
+ FIXED_HEADER = Structs::Nfgenmsg
2438
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2439
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2440
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2441
+ #--
2442
+ # @rbs return: ::Integer
2443
+ def nfgen_family; fixed_header.nfgen_family; end
2444
+ # Gets the value of `version` field in the message's fixed header.
2445
+ #--
2446
+ # @rbs return: ::Integer
2447
+ def version; fixed_header.version; end
2448
+ # Gets the value of `res-id` field in the message's fixed header.
2449
+ #--
2450
+ # @rbs return: ::Integer
2451
+ def res_id; fixed_header.res_id; end
2452
+ end
2453
+ # Get / dump rule-set generation.
2454
+ class DoGetgenRequest < ::Nl::Protocols::Raw::Message
2455
+ TYPE = 2576
2456
+ FIXED_HEADER = Structs::Nfgenmsg
2457
+ ATTRIBUTE_SET = AttributeSets::GenAttrs
2458
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2459
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2460
+ #--
2461
+ # @rbs return: ::Integer
2462
+ def nfgen_family; fixed_header.nfgen_family; end
2463
+ # Gets the value of `version` field in the message's fixed header.
2464
+ #--
2465
+ # @rbs return: ::Integer
2466
+ def version; fixed_header.version; end
2467
+ # Gets the value of `res-id` field in the message's fixed header.
2468
+ #--
2469
+ # @rbs return: ::Integer
2470
+ def res_id; fixed_header.res_id; end
2471
+ end
2472
+ # Get / dump rule-set generation.
2473
+ class DoGetgenReply < ::Nl::Protocols::Raw::Message
2474
+ TYPE = 2575
2475
+ FIXED_HEADER = Structs::Nfgenmsg
2476
+ ATTRIBUTE_SET = AttributeSets::GenAttrs
2477
+ ATTRIBUTES = Ractor.make_shareable(%i[])
2478
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2479
+ #--
2480
+ # @rbs return: ::Integer
2481
+ def nfgen_family; fixed_header.nfgen_family; end
2482
+ # Gets the value of `version` field in the message's fixed header.
2483
+ #--
2484
+ # @rbs return: ::Integer
2485
+ def version; fixed_header.version; end
2486
+ # Gets the value of `res-id` field in the message's fixed header.
2487
+ #--
2488
+ # @rbs return: ::Integer
2489
+ def res_id; fixed_header.res_id; end
2490
+ end
2491
+ # Create a new stateful object.
2492
+ class DoNewobjRequest < ::Nl::Protocols::Raw::Message
2493
+ TYPE = 2578
2494
+ FIXED_HEADER = Structs::Nfgenmsg
2495
+ ATTRIBUTE_SET = AttributeSets::ObjAttrs
2496
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2497
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2498
+ #--
2499
+ # @rbs return: ::Integer
2500
+ def nfgen_family; fixed_header.nfgen_family; end
2501
+ # Gets the value of `version` field in the message's fixed header.
2502
+ #--
2503
+ # @rbs return: ::Integer
2504
+ def version; fixed_header.version; end
2505
+ # Gets the value of `res-id` field in the message's fixed header.
2506
+ #--
2507
+ # @rbs return: ::Integer
2508
+ def res_id; fixed_header.res_id; end
2509
+ # Gets the value of `name` attribute in the message.
2510
+ #--
2511
+ # @rbs return: ::String
2512
+ def name; attributes[:"name"]&.value; end
2513
+ end
2514
+ # Get / dump stateful objects.
2515
+ class DoGetobjRequest < ::Nl::Protocols::Raw::Message
2516
+ TYPE = 2579
2517
+ FIXED_HEADER = Structs::Nfgenmsg
2518
+ ATTRIBUTE_SET = AttributeSets::ObjAttrs
2519
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2520
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2521
+ #--
2522
+ # @rbs return: ::Integer
2523
+ def nfgen_family; fixed_header.nfgen_family; end
2524
+ # Gets the value of `version` field in the message's fixed header.
2525
+ #--
2526
+ # @rbs return: ::Integer
2527
+ def version; fixed_header.version; end
2528
+ # Gets the value of `res-id` field in the message's fixed header.
2529
+ #--
2530
+ # @rbs return: ::Integer
2531
+ def res_id; fixed_header.res_id; end
2532
+ # Gets the value of `name` attribute in the message.
2533
+ #--
2534
+ # @rbs return: ::String
2535
+ def name; attributes[:"name"]&.value; end
2536
+ end
2537
+ # Get / dump stateful objects.
2538
+ class DoGetobjReply < ::Nl::Protocols::Raw::Message
2539
+ TYPE = 2578
2540
+ FIXED_HEADER = Structs::Nfgenmsg
2541
+ ATTRIBUTE_SET = AttributeSets::ObjAttrs
2542
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2543
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2544
+ #--
2545
+ # @rbs return: ::Integer
2546
+ def nfgen_family; fixed_header.nfgen_family; end
2547
+ # Gets the value of `version` field in the message's fixed header.
2548
+ #--
2549
+ # @rbs return: ::Integer
2550
+ def version; fixed_header.version; end
2551
+ # Gets the value of `res-id` field in the message's fixed header.
2552
+ #--
2553
+ # @rbs return: ::Integer
2554
+ def res_id; fixed_header.res_id; end
2555
+ # Gets the value of `name` attribute in the message.
2556
+ #--
2557
+ # @rbs return: ::String
2558
+ def name; attributes[:"name"]&.value; end
2559
+ end
2560
+ # Delete an existing stateful object.
2561
+ class DoDelobjRequest < ::Nl::Protocols::Raw::Message
2562
+ TYPE = 2580
2563
+ FIXED_HEADER = Structs::Nfgenmsg
2564
+ ATTRIBUTE_SET = AttributeSets::ObjAttrs
2565
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2566
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2567
+ #--
2568
+ # @rbs return: ::Integer
2569
+ def nfgen_family; fixed_header.nfgen_family; end
2570
+ # Gets the value of `version` field in the message's fixed header.
2571
+ #--
2572
+ # @rbs return: ::Integer
2573
+ def version; fixed_header.version; end
2574
+ # Gets the value of `res-id` field in the message's fixed header.
2575
+ #--
2576
+ # @rbs return: ::Integer
2577
+ def res_id; fixed_header.res_id; end
2578
+ # Gets the value of `name` attribute in the message.
2579
+ #--
2580
+ # @rbs return: ::String
2581
+ def name; attributes[:"name"]&.value; end
2582
+ end
2583
+ # Delete an existing stateful object with destroy semantics.
2584
+ class DoDestroyobjRequest < ::Nl::Protocols::Raw::Message
2585
+ TYPE = 2591
2586
+ FIXED_HEADER = Structs::Nfgenmsg
2587
+ ATTRIBUTE_SET = AttributeSets::ObjAttrs
2588
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2589
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2590
+ #--
2591
+ # @rbs return: ::Integer
2592
+ def nfgen_family; fixed_header.nfgen_family; end
2593
+ # Gets the value of `version` field in the message's fixed header.
2594
+ #--
2595
+ # @rbs return: ::Integer
2596
+ def version; fixed_header.version; end
2597
+ # Gets the value of `res-id` field in the message's fixed header.
2598
+ #--
2599
+ # @rbs return: ::Integer
2600
+ def res_id; fixed_header.res_id; end
2601
+ # Gets the value of `name` attribute in the message.
2602
+ #--
2603
+ # @rbs return: ::String
2604
+ def name; attributes[:"name"]&.value; end
2605
+ end
2606
+ # Create a new flow table.
2607
+ class DoNewflowtableRequest < ::Nl::Protocols::Raw::Message
2608
+ TYPE = 2582
2609
+ FIXED_HEADER = Structs::Nfgenmsg
2610
+ ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2611
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2612
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2613
+ #--
2614
+ # @rbs return: ::Integer
2615
+ def nfgen_family; fixed_header.nfgen_family; end
2616
+ # Gets the value of `version` field in the message's fixed header.
2617
+ #--
2618
+ # @rbs return: ::Integer
2619
+ def version; fixed_header.version; end
2620
+ # Gets the value of `res-id` field in the message's fixed header.
2621
+ #--
2622
+ # @rbs return: ::Integer
2623
+ def res_id; fixed_header.res_id; end
2624
+ # Gets the value of `name` attribute in the message.
2625
+ #--
2626
+ # @rbs return: ::String
2627
+ def name; attributes[:"name"]&.value; end
2628
+ end
2629
+ # Get / dump flow tables.
2630
+ class DoGetflowtableRequest < ::Nl::Protocols::Raw::Message
2631
+ TYPE = 2583
2632
+ FIXED_HEADER = Structs::Nfgenmsg
2633
+ ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2634
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2635
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2636
+ #--
2637
+ # @rbs return: ::Integer
2638
+ def nfgen_family; fixed_header.nfgen_family; end
2639
+ # Gets the value of `version` field in the message's fixed header.
2640
+ #--
2641
+ # @rbs return: ::Integer
2642
+ def version; fixed_header.version; end
2643
+ # Gets the value of `res-id` field in the message's fixed header.
2644
+ #--
2645
+ # @rbs return: ::Integer
2646
+ def res_id; fixed_header.res_id; end
2647
+ # Gets the value of `name` attribute in the message.
2648
+ #--
2649
+ # @rbs return: ::String
2650
+ def name; attributes[:"name"]&.value; end
2651
+ end
2652
+ # Get / dump flow tables.
2653
+ class DoGetflowtableReply < ::Nl::Protocols::Raw::Message
2654
+ TYPE = 2582
2655
+ FIXED_HEADER = Structs::Nfgenmsg
2656
+ ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2657
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2658
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2659
+ #--
2660
+ # @rbs return: ::Integer
2661
+ def nfgen_family; fixed_header.nfgen_family; end
2662
+ # Gets the value of `version` field in the message's fixed header.
2663
+ #--
2664
+ # @rbs return: ::Integer
2665
+ def version; fixed_header.version; end
2666
+ # Gets the value of `res-id` field in the message's fixed header.
2667
+ #--
2668
+ # @rbs return: ::Integer
2669
+ def res_id; fixed_header.res_id; end
2670
+ # Gets the value of `name` attribute in the message.
2671
+ #--
2672
+ # @rbs return: ::String
2673
+ def name; attributes[:"name"]&.value; end
2674
+ end
2675
+ # Delete an existing flow table.
2676
+ class DoDelflowtableRequest < ::Nl::Protocols::Raw::Message
2677
+ TYPE = 2584
2678
+ FIXED_HEADER = Structs::Nfgenmsg
2679
+ ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2680
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2681
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2682
+ #--
2683
+ # @rbs return: ::Integer
2684
+ def nfgen_family; fixed_header.nfgen_family; end
2685
+ # Gets the value of `version` field in the message's fixed header.
2686
+ #--
2687
+ # @rbs return: ::Integer
2688
+ def version; fixed_header.version; end
2689
+ # Gets the value of `res-id` field in the message's fixed header.
2690
+ #--
2691
+ # @rbs return: ::Integer
2692
+ def res_id; fixed_header.res_id; end
2693
+ # Gets the value of `name` attribute in the message.
2694
+ #--
2695
+ # @rbs return: ::String
2696
+ def name; attributes[:"name"]&.value; end
2697
+ end
2698
+ # Delete an existing flow table with destroy semantics.
2699
+ class DoDestroyflowtableRequest < ::Nl::Protocols::Raw::Message
2700
+ TYPE = 2592
2701
+ FIXED_HEADER = Structs::Nfgenmsg
2702
+ ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2703
+ ATTRIBUTES = Ractor.make_shareable(%i[name])
2704
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2705
+ #--
2706
+ # @rbs return: ::Integer
2707
+ def nfgen_family; fixed_header.nfgen_family; end
2708
+ # Gets the value of `version` field in the message's fixed header.
2709
+ #--
2710
+ # @rbs return: ::Integer
2711
+ def version; fixed_header.version; end
2712
+ # Gets the value of `res-id` field in the message's fixed header.
2713
+ #--
2714
+ # @rbs return: ::Integer
2715
+ def res_id; fixed_header.res_id; end
2716
+ # Gets the value of `name` attribute in the message.
2717
+ #--
2718
+ # @rbs return: ::String
2719
+ def name; attributes[:"name"]&.value; end
2720
+ end
2721
+ end
2722
+ # Start a batch of operations
2723
+ #--
2724
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?genid: ::Integer) -> Messages::DoBatchBeginReply
2725
+ def do_batch_begin(**args)
2726
+ exchange_message(:"do", Messages::DoBatchBeginRequest, Messages::DoBatchBeginReply, args)
2727
+ end
2728
+ # Finish a batch of operations
2729
+ #--
2730
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?genid: ::Integer) -> void
2731
+ def do_batch_end(**args)
2732
+ exchange_message(:"do", Messages::DoBatchEndRequest, nil, args)
2733
+ end
2734
+ # Create a new table.
2735
+ #--
2736
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2737
+ def do_newtable(**args)
2738
+ exchange_message(:"do", Messages::DoNewtableRequest, nil, args)
2739
+ end
2740
+ # Get / dump tables.
2741
+ #--
2742
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> Messages::DoGettableReply
2743
+ def do_gettable(**args)
2744
+ exchange_message(:"do", Messages::DoGettableRequest, Messages::DoGettableReply, args)
2745
+ end
2746
+ # Delete an existing table.
2747
+ #--
2748
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2749
+ def do_deltable(**args)
2750
+ exchange_message(:"do", Messages::DoDeltableRequest, nil, args)
2751
+ end
2752
+ # Delete an existing table with destroy semantics (ignoring ENOENT
2753
+ # errors).
2754
+ #--
2755
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2756
+ def do_destroytable(**args)
2757
+ exchange_message(:"do", Messages::DoDestroytableRequest, nil, args)
2758
+ end
2759
+ # Create a new chain.
2760
+ #--
2761
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2762
+ def do_newchain(**args)
2763
+ exchange_message(:"do", Messages::DoNewchainRequest, nil, args)
2764
+ end
2765
+ # Get / dump chains.
2766
+ #--
2767
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> Messages::DoGetchainReply
2768
+ def do_getchain(**args)
2769
+ exchange_message(:"do", Messages::DoGetchainRequest, Messages::DoGetchainReply, args)
2770
+ end
2771
+ # Delete an existing chain.
2772
+ #--
2773
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2774
+ def do_delchain(**args)
2775
+ exchange_message(:"do", Messages::DoDelchainRequest, nil, args)
2776
+ end
2777
+ # Delete an existing chain with destroy semantics (ignoring ENOENT
2778
+ # errors).
2779
+ #--
2780
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2781
+ def do_destroychain(**args)
2782
+ exchange_message(:"do", Messages::DoDestroychainRequest, nil, args)
2783
+ end
2784
+ # Create a new rule.
2785
+ #--
2786
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
2787
+ def do_newrule(**args)
2788
+ exchange_message(:"do", Messages::DoNewruleRequest, nil, args)
2789
+ end
2790
+ # Get / dump rules.
2791
+ #--
2792
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> Messages::DoGetruleReply
2793
+ def do_getrule(**args)
2794
+ exchange_message(:"do", Messages::DoGetruleRequest, Messages::DoGetruleReply, args)
2795
+ end
2796
+ # Get / dump rules and reset stateful expressions.
2797
+ #--
2798
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> Messages::DoGetruleResetReply
2799
+ def do_getrule_reset(**args)
2800
+ exchange_message(:"do", Messages::DoGetruleResetRequest, Messages::DoGetruleResetReply, args)
2801
+ end
2802
+ # Delete an existing rule.
2803
+ #--
2804
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
2805
+ def do_delrule(**args)
2806
+ exchange_message(:"do", Messages::DoDelruleRequest, nil, args)
2807
+ end
2808
+ # Delete an existing rule with destroy semantics (ignoring ENOENT errors).
2809
+ #--
2810
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
2811
+ def do_destroyrule(**args)
2812
+ exchange_message(:"do", Messages::DoDestroyruleRequest, nil, args)
2813
+ end
2814
+ # Create a new set.
2815
+ #--
2816
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2817
+ def do_newset(**args)
2818
+ exchange_message(:"do", Messages::DoNewsetRequest, nil, args)
2819
+ end
2820
+ # Get / dump sets.
2821
+ #--
2822
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> Messages::DoGetsetReply
2823
+ def do_getset(**args)
2824
+ exchange_message(:"do", Messages::DoGetsetRequest, Messages::DoGetsetReply, args)
2825
+ end
2826
+ # Delete an existing set.
2827
+ #--
2828
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2829
+ def do_delset(**args)
2830
+ exchange_message(:"do", Messages::DoDelsetRequest, nil, args)
2831
+ end
2832
+ # Delete an existing set with destroy semantics (ignoring ENOENT errors).
2833
+ #--
2834
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2835
+ def do_destroyset(**args)
2836
+ exchange_message(:"do", Messages::DoDestroysetRequest, nil, args)
2837
+ end
2838
+ # Create a new set element.
2839
+ #--
2840
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
2841
+ def do_newsetelem(**args)
2842
+ exchange_message(:"do", Messages::DoNewsetelemRequest, nil, args)
2843
+ end
2844
+ # Get / dump set elements.
2845
+ #--
2846
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> Messages::DoGetsetelemReply
2847
+ def do_getsetelem(**args)
2848
+ exchange_message(:"do", Messages::DoGetsetelemRequest, Messages::DoGetsetelemReply, args)
2849
+ end
2850
+ # Get / dump set elements and reset stateful expressions.
2851
+ #--
2852
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> Messages::DoGetsetelemResetReply
2853
+ def do_getsetelem_reset(**args)
2854
+ exchange_message(:"do", Messages::DoGetsetelemResetRequest, Messages::DoGetsetelemResetReply, args)
2855
+ end
2856
+ # Delete an existing set element.
2857
+ #--
2858
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
2859
+ def do_delsetelem(**args)
2860
+ exchange_message(:"do", Messages::DoDelsetelemRequest, nil, args)
2861
+ end
2862
+ # Delete an existing set element with destroy semantics.
2863
+ #--
2864
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
2865
+ def do_destroysetelem(**args)
2866
+ exchange_message(:"do", Messages::DoDestroysetelemRequest, nil, args)
2867
+ end
2868
+ # Get / dump rule-set generation.
2869
+ #--
2870
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> Messages::DoGetgenReply
2871
+ def do_getgen(**args)
2872
+ exchange_message(:"do", Messages::DoGetgenRequest, Messages::DoGetgenReply, args)
2873
+ end
2874
+ # Create a new stateful object.
2875
+ #--
2876
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2877
+ def do_newobj(**args)
2878
+ exchange_message(:"do", Messages::DoNewobjRequest, nil, args)
2879
+ end
2880
+ # Get / dump stateful objects.
2881
+ #--
2882
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> Messages::DoGetobjReply
2883
+ def do_getobj(**args)
2884
+ exchange_message(:"do", Messages::DoGetobjRequest, Messages::DoGetobjReply, args)
2885
+ end
2886
+ # Delete an existing stateful object.
2887
+ #--
2888
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2889
+ def do_delobj(**args)
2890
+ exchange_message(:"do", Messages::DoDelobjRequest, nil, args)
2891
+ end
2892
+ # Delete an existing stateful object with destroy semantics.
2893
+ #--
2894
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2895
+ def do_destroyobj(**args)
2896
+ exchange_message(:"do", Messages::DoDestroyobjRequest, nil, args)
2897
+ end
2898
+ # Create a new flow table.
2899
+ #--
2900
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2901
+ def do_newflowtable(**args)
2902
+ exchange_message(:"do", Messages::DoNewflowtableRequest, nil, args)
2903
+ end
2904
+ # Get / dump flow tables.
2905
+ #--
2906
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> Messages::DoGetflowtableReply
2907
+ def do_getflowtable(**args)
2908
+ exchange_message(:"do", Messages::DoGetflowtableRequest, Messages::DoGetflowtableReply, args)
2909
+ end
2910
+ # Delete an existing flow table.
2911
+ #--
2912
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2913
+ def do_delflowtable(**args)
2914
+ exchange_message(:"do", Messages::DoDelflowtableRequest, nil, args)
2915
+ end
2916
+ # Delete an existing flow table with destroy semantics.
2917
+ #--
2918
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
2919
+ def do_destroyflowtable(**args)
2920
+ exchange_message(:"do", Messages::DoDestroyflowtableRequest, nil, args)
2921
+ end
2922
+ end