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