nl-linux 0.2.3 → 0.2.4

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.
@@ -35,19 +35,126 @@ class Nftables < ::Nl::Family
35
35
  end
36
36
  end
37
37
  module AttributeSets
38
- class EmptyAttrs < ::Nl::Protocols::Raw::AttributeSet
38
+ # log expression netlink attributes
39
+ class LogAttrs < ::Nl::Protocols::Raw::AttributeSet
39
40
  # Abstract class
40
41
  class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
41
42
  end
42
- class Name < Attribute
43
+ class Group < Attribute
43
44
  TYPE = 1
44
- NAME = :"name"
45
+ NAME = :"group"
46
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil)
47
+ end
48
+ class Prefix < Attribute
49
+ TYPE = 2
50
+ NAME = :"prefix"
45
51
  DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
46
52
  end
53
+ class Snaplen < Attribute
54
+ TYPE = 3
55
+ NAME = :"snaplen"
56
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
57
+ end
58
+ class Qthreshold < Attribute
59
+ TYPE = 4
60
+ NAME = :"qthreshold"
61
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil)
62
+ end
63
+ class Level < Attribute
64
+ TYPE = 5
65
+ NAME = :"level"
66
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
67
+ end
68
+ class Flags < Attribute
69
+ TYPE = 6
70
+ NAME = :"flags"
71
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
72
+ end
47
73
  # :nodoc:
48
- BY_NAME = Ractor.make_shareable({:"name" => Name}) #: Hash[::Symbol, Attribute]
74
+ BY_NAME = Ractor.make_shareable({:"group" => Group, :"prefix" => Prefix, :"snaplen" => Snaplen, :"qthreshold" => Qthreshold, :"level" => Level, :"flags" => Flags}) #: Hash[::Symbol, Attribute]
49
75
  # :nodoc:
50
- BY_TYPE = Ractor.make_shareable({1 => Name}) #: Hash[::Integer, Attribute]
76
+ BY_TYPE = Ractor.make_shareable({1 => Group, 2 => Prefix, 3 => Snaplen, 4 => Qthreshold, 5 => Level, 6 => Flags}) #: 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
+ # nf_tables number generator expression netlink attributes
91
+ class NumgenAttrs < ::Nl::Protocols::Raw::AttributeSet
92
+ # Abstract class
93
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
94
+ end
95
+ class Dreg < Attribute
96
+ TYPE = 1
97
+ NAME = :"dreg"
98
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
99
+ end
100
+ class Modulus < Attribute
101
+ TYPE = 2
102
+ NAME = :"modulus"
103
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
104
+ end
105
+ class Type < Attribute
106
+ TYPE = 3
107
+ NAME = :"type"
108
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
109
+ end
110
+ class Offset < Attribute
111
+ TYPE = 4
112
+ NAME = :"offset"
113
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
114
+ end
115
+ # :nodoc:
116
+ BY_NAME = Ractor.make_shareable({:"dreg" => Dreg, :"modulus" => Modulus, :"type" => Type, :"offset" => Offset}) #: Hash[::Symbol, Attribute]
117
+ # :nodoc:
118
+ BY_TYPE = Ractor.make_shareable({1 => Dreg, 2 => Modulus, 3 => Type, 4 => Offset}) #: Hash[::Integer, Attribute]
119
+ class << self
120
+ # Looks up Attribute class by name.
121
+ #--
122
+ # @rbs name: Symbol
123
+ # @rbs return: Attribute
124
+ def by_name(name); BY_NAME.fetch(name); end
125
+ # Looks up Attribute class by type value.
126
+ #--
127
+ # @rbs type: Integer
128
+ # @rbs return: Attribute
129
+ def by_type(type); BY_TYPE.fetch(type); end
130
+ end
131
+ end
132
+ class RangeAttrs < ::Nl::Protocols::Raw::AttributeSet
133
+ # Abstract class
134
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
135
+ end
136
+ class Sreg < Attribute
137
+ TYPE = 1
138
+ NAME = :"sreg"
139
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
140
+ end
141
+ class Op < Attribute
142
+ TYPE = 2
143
+ NAME = :"op"
144
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: -> { raise ArgumentError, "Value #{it.inspect} is greater than maximum 255" unless it <= 255 })
145
+ end
146
+ class FromData < Attribute
147
+ TYPE = 3
148
+ NAME = :"from_data"
149
+ end
150
+ class ToData < Attribute
151
+ TYPE = 4
152
+ NAME = :"to_data"
153
+ end
154
+ # :nodoc:
155
+ BY_NAME = Ractor.make_shareable({:"sreg" => Sreg, :"op" => Op, :"from_data" => FromData, :"to_data" => ToData}) #: Hash[::Symbol, Attribute]
156
+ # :nodoc:
157
+ BY_TYPE = Ractor.make_shareable({1 => Sreg, 2 => Op, 3 => FromData, 4 => ToData}) #: Hash[::Integer, Attribute]
51
158
  class << self
52
159
  # Looks up Attribute class by name.
53
160
  #--
@@ -111,15 +218,25 @@ class Nftables < ::Nl::Family
111
218
  NAME = :"handle"
112
219
  DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
113
220
  end
114
- class Userdata < Attribute
221
+ class Pad < Attribute
115
222
  TYPE = 5
223
+ NAME = :"pad"
224
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Pad.new()
225
+ end
226
+ class Userdata < Attribute
227
+ TYPE = 6
116
228
  NAME = :"userdata"
117
229
  DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
118
230
  end
231
+ class Owner < Attribute
232
+ TYPE = 7
233
+ NAME = :"owner"
234
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
235
+ end
119
236
  # :nodoc:
120
- BY_NAME = Ractor.make_shareable({:"name" => Name, :"flags" => Flags, :"use" => Use, :"handle" => Handle, :"userdata" => Userdata}) #: Hash[::Symbol, Attribute]
237
+ BY_NAME = Ractor.make_shareable({:"name" => Name, :"flags" => Flags, :"use" => Use, :"handle" => Handle, :"pad" => Pad, :"userdata" => Userdata, :"owner" => Owner}) #: Hash[::Symbol, Attribute]
121
238
  # :nodoc:
122
- BY_TYPE = Ractor.make_shareable({1 => Name, 2 => Flags, 3 => Use, 4 => Handle, 5 => Userdata}) #: Hash[::Integer, Attribute]
239
+ BY_TYPE = Ractor.make_shareable({1 => Name, 2 => Flags, 3 => Use, 4 => Handle, 5 => Pad, 6 => Userdata, 7 => Owner}) #: Hash[::Integer, Attribute]
123
240
  class << self
124
241
  # Looks up Attribute class by name.
125
242
  #--
@@ -316,12 +433,12 @@ class Nftables < ::Nl::Family
316
433
  class Bytes < Attribute
317
434
  TYPE = 1
318
435
  NAME = :"bytes"
319
- DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
436
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
320
437
  end
321
438
  class Packets < Attribute
322
439
  TYPE = 2
323
440
  NAME = :"packets"
324
- DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
441
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
325
442
  end
326
443
  # :nodoc:
327
444
  BY_NAME = Ractor.make_shareable({:"bytes" => Bytes, :"packets" => Packets}) #: Hash[::Symbol, Attribute]
@@ -472,12 +589,12 @@ class Nftables < ::Nl::Family
472
589
  class Proto < Attribute
473
590
  TYPE = 1
474
591
  NAME = :"proto"
475
- DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
592
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
476
593
  end
477
594
  class Flags < Attribute
478
595
  TYPE = 2
479
596
  NAME = :"flags"
480
- DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
597
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
481
598
  end
482
599
  # :nodoc:
483
600
  BY_NAME = Ractor.make_shareable({:"proto" => Proto, :"flags" => Flags}) #: Hash[::Symbol, Attribute]
@@ -587,10 +704,20 @@ class Nftables < ::Nl::Family
587
704
  TYPE = 18
588
705
  NAME = :"expressions"
589
706
  end
707
+ class Type < Attribute
708
+ TYPE = 19
709
+ NAME = :"type"
710
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: nil)
711
+ end
712
+ class Count < Attribute
713
+ TYPE = 20
714
+ NAME = :"count"
715
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
716
+ end
590
717
  # :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]
718
+ 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, :"type" => Type, :"count" => Count}) #: Hash[::Symbol, Attribute]
592
719
  # :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]
720
+ 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, 19 => Type, 20 => Count}) #: Hash[::Integer, Attribute]
594
721
  class << self
595
722
  # Looks up Attribute class by name.
596
723
  #--
@@ -1069,6 +1196,20 @@ class Nftables < ::Nl::Family
1069
1196
  def by_type(type); BY_TYPE.fetch(type); end
1070
1197
  end
1071
1198
  end
1199
+ # The bitwise expression supports boolean and shift operations. It
1200
+ # implements the boolean operations by performing the following
1201
+ # operation::
1202
+ #
1203
+ # dreg = (sreg & mask) ^ xor
1204
+ #
1205
+ # with these mask and xor values:
1206
+ #
1207
+ # op mask xor
1208
+ # ---- ---- ---
1209
+ # NOT: 1 1
1210
+ # OR: ~x x
1211
+ # XOR: 1 x
1212
+ # AND: x 0
1072
1213
  class ExprBitwiseAttrs < ::Nl::Protocols::Raw::AttributeSet
1073
1214
  # Abstract class
1074
1215
  class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
@@ -1099,7 +1240,7 @@ class Nftables < ::Nl::Family
1099
1240
  class Op < Attribute
1100
1241
  TYPE = 6
1101
1242
  NAME = :"op"
1102
- DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1243
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: -> { raise ArgumentError, "Value #{it.inspect} is greater than maximum 255" unless it <= 255 })
1103
1244
  end
1104
1245
  class Data < Attribute
1105
1246
  TYPE = 7
@@ -1204,7 +1345,7 @@ class Nftables < ::Nl::Family
1204
1345
  class ChainId < Attribute
1205
1346
  TYPE = 3
1206
1347
  NAME = :"chain_id"
1207
- DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
1348
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1208
1349
  end
1209
1350
  # :nodoc:
1210
1351
  BY_NAME = Ractor.make_shareable({:"code" => Code, :"chain" => Chain, :"chain_id" => ChainId}) #: Hash[::Symbol, Attribute]
@@ -1230,12 +1371,12 @@ class Nftables < ::Nl::Family
1230
1371
  class Bytes < Attribute
1231
1372
  TYPE = 1
1232
1373
  NAME = :"bytes"
1233
- DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
1374
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
1234
1375
  end
1235
1376
  class Packets < Attribute
1236
1377
  TYPE = 2
1237
1378
  NAME = :"packets"
1238
- DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)
1379
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U64, check: nil)
1239
1380
  end
1240
1381
  class Pad < Attribute
1241
1382
  TYPE = 3
@@ -1438,6 +1579,42 @@ class Nftables < ::Nl::Family
1438
1579
  def by_type(type); BY_TYPE.fetch(type); end
1439
1580
  end
1440
1581
  end
1582
+ class ExprMasqAttrs < ::Nl::Protocols::Raw::AttributeSet
1583
+ # Abstract class
1584
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1585
+ end
1586
+ class Flags < Attribute
1587
+ TYPE = 1
1588
+ NAME = :"flags"
1589
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1590
+ end
1591
+ class RegProtoMin < Attribute
1592
+ TYPE = 2
1593
+ NAME = :"reg_proto_min"
1594
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1595
+ end
1596
+ class RegProtoMax < Attribute
1597
+ TYPE = 3
1598
+ NAME = :"reg_proto_max"
1599
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
1600
+ end
1601
+ # :nodoc:
1602
+ BY_NAME = Ractor.make_shareable({:"flags" => Flags, :"reg_proto_min" => RegProtoMin, :"reg_proto_max" => RegProtoMax}) #: Hash[::Symbol, Attribute]
1603
+ # :nodoc:
1604
+ BY_TYPE = Ractor.make_shareable({1 => Flags, 2 => RegProtoMin, 3 => RegProtoMax}) #: Hash[::Integer, Attribute]
1605
+ class << self
1606
+ # Looks up Attribute class by name.
1607
+ #--
1608
+ # @rbs name: Symbol
1609
+ # @rbs return: Attribute
1610
+ def by_name(name); BY_NAME.fetch(name); end
1611
+ # Looks up Attribute class by type value.
1612
+ #--
1613
+ # @rbs type: Integer
1614
+ # @rbs return: Attribute
1615
+ def by_type(type); BY_TYPE.fetch(type); end
1616
+ end
1617
+ end
1441
1618
  class ExprMetaAttrs < ::Nl::Protocols::Raw::AttributeSet
1442
1619
  # Abstract class
1443
1620
  class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
@@ -1530,6 +1707,7 @@ class Nftables < ::Nl::Family
1530
1707
  def by_type(type); BY_TYPE.fetch(type); end
1531
1708
  end
1532
1709
  end
1710
+ # nf_tables payload expression netlink attributes
1533
1711
  class ExprPayloadAttrs < ::Nl::Protocols::Raw::AttributeSet
1534
1712
  # Abstract class
1535
1713
  class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
@@ -1740,6 +1918,116 @@ class Nftables < ::Nl::Family
1740
1918
  def by_type(type); BY_TYPE.fetch(type); end
1741
1919
  end
1742
1920
  end
1921
+ class CompatTargetAttrs < ::Nl::Protocols::Raw::AttributeSet
1922
+ # Abstract class
1923
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1924
+ end
1925
+ class Name < Attribute
1926
+ TYPE = 1
1927
+ NAME = :"name"
1928
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: -> { raise ArgumentError, "Value #{it.inspect} is longer than maximum length 32" unless it.bytesize <= 32 })
1929
+ end
1930
+ class Rev < Attribute
1931
+ TYPE = 2
1932
+ NAME = :"rev"
1933
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: -> { raise ArgumentError, "Value #{it.inspect} is greater than maximum 255" unless it <= 255 })
1934
+ end
1935
+ class Info < Attribute
1936
+ TYPE = 3
1937
+ NAME = :"info"
1938
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
1939
+ end
1940
+ # :nodoc:
1941
+ BY_NAME = Ractor.make_shareable({:"name" => Name, :"rev" => Rev, :"info" => Info}) #: Hash[::Symbol, Attribute]
1942
+ # :nodoc:
1943
+ BY_TYPE = Ractor.make_shareable({1 => Name, 2 => Rev, 3 => Info}) #: Hash[::Integer, Attribute]
1944
+ class << self
1945
+ # Looks up Attribute class by name.
1946
+ #--
1947
+ # @rbs name: Symbol
1948
+ # @rbs return: Attribute
1949
+ def by_name(name); BY_NAME.fetch(name); end
1950
+ # Looks up Attribute class by type value.
1951
+ #--
1952
+ # @rbs type: Integer
1953
+ # @rbs return: Attribute
1954
+ def by_type(type); BY_TYPE.fetch(type); end
1955
+ end
1956
+ end
1957
+ class CompatMatchAttrs < ::Nl::Protocols::Raw::AttributeSet
1958
+ # Abstract class
1959
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1960
+ end
1961
+ class Name < Attribute
1962
+ TYPE = 1
1963
+ NAME = :"name"
1964
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: -> { raise ArgumentError, "Value #{it.inspect} is longer than maximum length 32" unless it.bytesize <= 32 })
1965
+ end
1966
+ class Rev < Attribute
1967
+ TYPE = 2
1968
+ NAME = :"rev"
1969
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: -> { raise ArgumentError, "Value #{it.inspect} is greater than maximum 255" unless it <= 255 })
1970
+ end
1971
+ class Info < Attribute
1972
+ TYPE = 3
1973
+ NAME = :"info"
1974
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Binary.new(check: nil)
1975
+ end
1976
+ # :nodoc:
1977
+ BY_NAME = Ractor.make_shareable({:"name" => Name, :"rev" => Rev, :"info" => Info}) #: Hash[::Symbol, Attribute]
1978
+ # :nodoc:
1979
+ BY_TYPE = Ractor.make_shareable({1 => Name, 2 => Rev, 3 => Info}) #: Hash[::Integer, Attribute]
1980
+ class << self
1981
+ # Looks up Attribute class by name.
1982
+ #--
1983
+ # @rbs name: Symbol
1984
+ # @rbs return: Attribute
1985
+ def by_name(name); BY_NAME.fetch(name); end
1986
+ # Looks up Attribute class by type value.
1987
+ #--
1988
+ # @rbs type: Integer
1989
+ # @rbs return: Attribute
1990
+ def by_type(type); BY_TYPE.fetch(type); end
1991
+ end
1992
+ end
1993
+ class CompatAttrs < ::Nl::Protocols::Raw::AttributeSet
1994
+ # Abstract class
1995
+ class Attribute < ::Nl::Protocols::Raw::AttributeSet::Attribute
1996
+ end
1997
+ class Name < Attribute
1998
+ TYPE = 1
1999
+ NAME = :"name"
2000
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::String.new(check: -> { raise ArgumentError, "Value #{it.inspect} is longer than maximum length 32" unless it.bytesize <= 32 })
2001
+ end
2002
+ class Rev < Attribute
2003
+ TYPE = 2
2004
+ NAME = :"rev"
2005
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: -> { raise ArgumentError, "Value #{it.inspect} is greater than maximum 255" unless it <= 255 })
2006
+ end
2007
+ class Type < Attribute
2008
+ TYPE = 3
2009
+ NAME = :"type"
2010
+ DATATYPE = ::Nl::Protocols::Raw::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil)
2011
+ end
2012
+ # :nodoc:
2013
+ BY_NAME = Ractor.make_shareable({:"name" => Name, :"rev" => Rev, :"type" => Type}) #: Hash[::Symbol, Attribute]
2014
+ # :nodoc:
2015
+ BY_TYPE = Ractor.make_shareable({1 => Name, 2 => Rev, 3 => Type}) #: Hash[::Integer, Attribute]
2016
+ class << self
2017
+ # Looks up Attribute class by name.
2018
+ #--
2019
+ # @rbs name: Symbol
2020
+ # @rbs return: Attribute
2021
+ def by_name(name); BY_NAME.fetch(name); end
2022
+ # Looks up Attribute class by type value.
2023
+ #--
2024
+ # @rbs type: Integer
2025
+ # @rbs return: Attribute
2026
+ def by_type(type); BY_TYPE.fetch(type); end
2027
+ end
2028
+ end
2029
+ RangeAttrs::FromData::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
2030
+ RangeAttrs::ToData::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(DataAttrs)
1743
2031
  ChainAttrs::Hook::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(NftHookAttrs)
1744
2032
  ChainAttrs::Counters::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(NftCounterAttrs)
1745
2033
  NftHookAttrs::Devs::DATATYPE = ::Nl::Protocols::Raw::DataTypes::NestedAttributes.new(HookDevAttrs)
@@ -1843,7 +2131,7 @@ class Nftables < ::Nl::Family
1843
2131
  TYPE = 2560
1844
2132
  FIXED_HEADER = Structs::Nfgenmsg
1845
2133
  ATTRIBUTE_SET = AttributeSets::TableAttrs
1846
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2134
+ ATTRIBUTES = Ractor.make_shareable(%i[name flags userdata])
1847
2135
  # Gets the value of `nfgen-family` field in the message's fixed header.
1848
2136
  #--
1849
2137
  # @rbs return: ::Integer
@@ -1860,6 +2148,14 @@ class Nftables < ::Nl::Family
1860
2148
  #--
1861
2149
  # @rbs return: ::String
1862
2150
  def name; attributes[:"name"]&.value; end
2151
+ # Gets the value of `flags` attribute in the message.
2152
+ #--
2153
+ # @rbs return: ::Integer
2154
+ def flags; attributes[:"flags"]&.value; end
2155
+ # Gets the value of `userdata` attribute in the message.
2156
+ #--
2157
+ # @rbs return: untyped
2158
+ def userdata; attributes[:"userdata"]&.value; end
1863
2159
  end
1864
2160
  # Get / dump tables.
1865
2161
  class DoGettableRequest < ::Nl::Protocols::Raw::Message
@@ -1889,7 +2185,7 @@ class Nftables < ::Nl::Family
1889
2185
  TYPE = 2560
1890
2186
  FIXED_HEADER = Structs::Nfgenmsg
1891
2187
  ATTRIBUTE_SET = AttributeSets::TableAttrs
1892
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2188
+ ATTRIBUTES = Ractor.make_shareable(%i[name flags use handle userdata owner])
1893
2189
  # Gets the value of `nfgen-family` field in the message's fixed header.
1894
2190
  #--
1895
2191
  # @rbs return: ::Integer
@@ -1906,13 +2202,76 @@ class Nftables < ::Nl::Family
1906
2202
  #--
1907
2203
  # @rbs return: ::String
1908
2204
  def name; attributes[:"name"]&.value; end
1909
- end
1910
- # Delete an existing table.
1911
- class DoDeltableRequest < ::Nl::Protocols::Raw::Message
1912
- TYPE = 2562
2205
+ # Gets the value of `flags` attribute in the message.
2206
+ #--
2207
+ # @rbs return: ::Integer
2208
+ def flags; attributes[:"flags"]&.value; end
2209
+ # Gets the value of `use` attribute in the message.
2210
+ #--
2211
+ # @rbs return: ::Integer
2212
+ def use; attributes[:"use"]&.value; end
2213
+ # Gets the value of `handle` attribute in the message.
2214
+ #--
2215
+ # @rbs return: ::Integer
2216
+ def handle; attributes[:"handle"]&.value; end
2217
+ # Gets the value of `userdata` attribute in the message.
2218
+ #--
2219
+ # @rbs return: untyped
2220
+ def userdata; attributes[:"userdata"]&.value; end
2221
+ # Gets the value of `owner` attribute in the message.
2222
+ #--
2223
+ # @rbs return: ::Integer
2224
+ def owner; attributes[:"owner"]&.value; end
2225
+ end
2226
+ # Get / dump tables.
2227
+ class DumpGettableReply < ::Nl::Protocols::Raw::Message
2228
+ TYPE = 2560
1913
2229
  FIXED_HEADER = Structs::Nfgenmsg
1914
2230
  ATTRIBUTE_SET = AttributeSets::TableAttrs
1915
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2231
+ ATTRIBUTES = Ractor.make_shareable(%i[name flags use handle userdata owner])
2232
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2233
+ #--
2234
+ # @rbs return: ::Integer
2235
+ def nfgen_family; fixed_header.nfgen_family; end
2236
+ # Gets the value of `version` field in the message's fixed header.
2237
+ #--
2238
+ # @rbs return: ::Integer
2239
+ def version; fixed_header.version; end
2240
+ # Gets the value of `res-id` field in the message's fixed header.
2241
+ #--
2242
+ # @rbs return: ::Integer
2243
+ def res_id; fixed_header.res_id; end
2244
+ # Gets the value of `name` attribute in the message.
2245
+ #--
2246
+ # @rbs return: ::String
2247
+ def name; attributes[:"name"]&.value; end
2248
+ # Gets the value of `flags` attribute in the message.
2249
+ #--
2250
+ # @rbs return: ::Integer
2251
+ def flags; attributes[:"flags"]&.value; end
2252
+ # Gets the value of `use` attribute in the message.
2253
+ #--
2254
+ # @rbs return: ::Integer
2255
+ def use; attributes[:"use"]&.value; end
2256
+ # Gets the value of `handle` attribute in the message.
2257
+ #--
2258
+ # @rbs return: ::Integer
2259
+ def handle; attributes[:"handle"]&.value; end
2260
+ # Gets the value of `userdata` attribute in the message.
2261
+ #--
2262
+ # @rbs return: untyped
2263
+ def userdata; attributes[:"userdata"]&.value; end
2264
+ # Gets the value of `owner` attribute in the message.
2265
+ #--
2266
+ # @rbs return: ::Integer
2267
+ def owner; attributes[:"owner"]&.value; end
2268
+ end
2269
+ # Delete an existing table.
2270
+ class DoDeltableRequest < ::Nl::Protocols::Raw::Message
2271
+ TYPE = 2562
2272
+ FIXED_HEADER = Structs::Nfgenmsg
2273
+ ATTRIBUTE_SET = AttributeSets::TableAttrs
2274
+ ATTRIBUTES = Ractor.make_shareable(%i[name handle])
1916
2275
  # Gets the value of `nfgen-family` field in the message's fixed header.
1917
2276
  #--
1918
2277
  # @rbs return: ::Integer
@@ -1929,6 +2288,10 @@ class Nftables < ::Nl::Family
1929
2288
  #--
1930
2289
  # @rbs return: ::String
1931
2290
  def name; attributes[:"name"]&.value; end
2291
+ # Gets the value of `handle` attribute in the message.
2292
+ #--
2293
+ # @rbs return: ::Integer
2294
+ def handle; attributes[:"handle"]&.value; end
1932
2295
  end
1933
2296
  # Delete an existing table with destroy semantics (ignoring ENOENT
1934
2297
  # errors).
@@ -1936,7 +2299,7 @@ class Nftables < ::Nl::Family
1936
2299
  TYPE = 2586
1937
2300
  FIXED_HEADER = Structs::Nfgenmsg
1938
2301
  ATTRIBUTE_SET = AttributeSets::TableAttrs
1939
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2302
+ ATTRIBUTES = Ractor.make_shareable(%i[name handle])
1940
2303
  # Gets the value of `nfgen-family` field in the message's fixed header.
1941
2304
  #--
1942
2305
  # @rbs return: ::Integer
@@ -1953,13 +2316,17 @@ class Nftables < ::Nl::Family
1953
2316
  #--
1954
2317
  # @rbs return: ::String
1955
2318
  def name; attributes[:"name"]&.value; end
2319
+ # Gets the value of `handle` attribute in the message.
2320
+ #--
2321
+ # @rbs return: ::Integer
2322
+ def handle; attributes[:"handle"]&.value; end
1956
2323
  end
1957
2324
  # Create a new chain.
1958
2325
  class DoNewchainRequest < ::Nl::Protocols::Raw::Message
1959
2326
  TYPE = 2563
1960
2327
  FIXED_HEADER = Structs::Nfgenmsg
1961
2328
  ATTRIBUTE_SET = AttributeSets::ChainAttrs
1962
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2329
+ ATTRIBUTES = Ractor.make_shareable(%i[table handle name hook policy type counters flags userdata])
1963
2330
  # Gets the value of `nfgen-family` field in the message's fixed header.
1964
2331
  #--
1965
2332
  # @rbs return: ::Integer
@@ -1972,17 +2339,49 @@ class Nftables < ::Nl::Family
1972
2339
  #--
1973
2340
  # @rbs return: ::Integer
1974
2341
  def res_id; fixed_header.res_id; end
2342
+ # Gets the value of `table` attribute in the message.
2343
+ #--
2344
+ # @rbs return: ::String
2345
+ def table; attributes[:"table"]&.value; end
2346
+ # Gets the value of `handle` attribute in the message.
2347
+ #--
2348
+ # @rbs return: ::Integer
2349
+ def handle; attributes[:"handle"]&.value; end
1975
2350
  # Gets the value of `name` attribute in the message.
1976
2351
  #--
1977
2352
  # @rbs return: ::String
1978
2353
  def name; attributes[:"name"]&.value; end
2354
+ # Gets the value of `hook` attribute in the message.
2355
+ #--
2356
+ # @rbs return: AttributeSets::NftHookAttrs
2357
+ def hook; attributes[:"hook"]&.value; end
2358
+ # Gets the value of `policy` attribute in the message.
2359
+ #--
2360
+ # @rbs return: ::Integer
2361
+ def policy; attributes[:"policy"]&.value; end
2362
+ # Gets the value of `type` attribute in the message.
2363
+ #--
2364
+ # @rbs return: ::String
2365
+ def type; attributes[:"type"]&.value; end
2366
+ # Gets the value of `counters` attribute in the message.
2367
+ #--
2368
+ # @rbs return: AttributeSets::NftCounterAttrs
2369
+ def counters; attributes[:"counters"]&.value; end
2370
+ # Gets the value of `flags` attribute in the message.
2371
+ #--
2372
+ # @rbs return: ::Integer
2373
+ def flags; attributes[:"flags"]&.value; end
2374
+ # Gets the value of `userdata` attribute in the message.
2375
+ #--
2376
+ # @rbs return: untyped
2377
+ def userdata; attributes[:"userdata"]&.value; end
1979
2378
  end
1980
2379
  # Get / dump chains.
1981
2380
  class DoGetchainRequest < ::Nl::Protocols::Raw::Message
1982
2381
  TYPE = 2564
1983
2382
  FIXED_HEADER = Structs::Nfgenmsg
1984
2383
  ATTRIBUTE_SET = AttributeSets::ChainAttrs
1985
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2384
+ ATTRIBUTES = Ractor.make_shareable(%i[table name])
1986
2385
  # Gets the value of `nfgen-family` field in the message's fixed header.
1987
2386
  #--
1988
2387
  # @rbs return: ::Integer
@@ -1995,6 +2394,10 @@ class Nftables < ::Nl::Family
1995
2394
  #--
1996
2395
  # @rbs return: ::Integer
1997
2396
  def res_id; fixed_header.res_id; end
2397
+ # Gets the value of `table` attribute in the message.
2398
+ #--
2399
+ # @rbs return: ::String
2400
+ def table; attributes[:"table"]&.value; end
1998
2401
  # Gets the value of `name` attribute in the message.
1999
2402
  #--
2000
2403
  # @rbs return: ::String
@@ -2005,7 +2408,70 @@ class Nftables < ::Nl::Family
2005
2408
  TYPE = 2563
2006
2409
  FIXED_HEADER = Structs::Nfgenmsg
2007
2410
  ATTRIBUTE_SET = AttributeSets::ChainAttrs
2008
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2411
+ ATTRIBUTES = Ractor.make_shareable(%i[table handle name hook policy use type counters flags id userdata])
2412
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2413
+ #--
2414
+ # @rbs return: ::Integer
2415
+ def nfgen_family; fixed_header.nfgen_family; end
2416
+ # Gets the value of `version` field in the message's fixed header.
2417
+ #--
2418
+ # @rbs return: ::Integer
2419
+ def version; fixed_header.version; end
2420
+ # Gets the value of `res-id` field in the message's fixed header.
2421
+ #--
2422
+ # @rbs return: ::Integer
2423
+ def res_id; fixed_header.res_id; end
2424
+ # Gets the value of `table` attribute in the message.
2425
+ #--
2426
+ # @rbs return: ::String
2427
+ def table; attributes[:"table"]&.value; end
2428
+ # Gets the value of `handle` attribute in the message.
2429
+ #--
2430
+ # @rbs return: ::Integer
2431
+ def handle; attributes[:"handle"]&.value; end
2432
+ # Gets the value of `name` attribute in the message.
2433
+ #--
2434
+ # @rbs return: ::String
2435
+ def name; attributes[:"name"]&.value; end
2436
+ # Gets the value of `hook` attribute in the message.
2437
+ #--
2438
+ # @rbs return: AttributeSets::NftHookAttrs
2439
+ def hook; attributes[:"hook"]&.value; end
2440
+ # Gets the value of `policy` attribute in the message.
2441
+ #--
2442
+ # @rbs return: ::Integer
2443
+ def policy; attributes[:"policy"]&.value; end
2444
+ # Gets the value of `use` attribute in the message.
2445
+ #--
2446
+ # @rbs return: ::Integer
2447
+ def use; attributes[:"use"]&.value; end
2448
+ # Gets the value of `type` attribute in the message.
2449
+ #--
2450
+ # @rbs return: ::String
2451
+ def type; attributes[:"type"]&.value; end
2452
+ # Gets the value of `counters` attribute in the message.
2453
+ #--
2454
+ # @rbs return: AttributeSets::NftCounterAttrs
2455
+ def counters; attributes[:"counters"]&.value; end
2456
+ # Gets the value of `flags` attribute in the message.
2457
+ #--
2458
+ # @rbs return: ::Integer
2459
+ def flags; attributes[:"flags"]&.value; end
2460
+ # Gets the value of `id` attribute in the message.
2461
+ #--
2462
+ # @rbs return: ::Integer
2463
+ def id; attributes[:"id"]&.value; end
2464
+ # Gets the value of `userdata` attribute in the message.
2465
+ #--
2466
+ # @rbs return: untyped
2467
+ def userdata; attributes[:"userdata"]&.value; end
2468
+ end
2469
+ # Get / dump chains.
2470
+ class DumpGetchainReply < ::Nl::Protocols::Raw::Message
2471
+ TYPE = 2563
2472
+ FIXED_HEADER = Structs::Nfgenmsg
2473
+ ATTRIBUTE_SET = AttributeSets::ChainAttrs
2474
+ ATTRIBUTES = Ractor.make_shareable(%i[table handle name hook policy use type counters flags id userdata])
2009
2475
  # Gets the value of `nfgen-family` field in the message's fixed header.
2010
2476
  #--
2011
2477
  # @rbs return: ::Integer
@@ -2018,17 +2484,57 @@ class Nftables < ::Nl::Family
2018
2484
  #--
2019
2485
  # @rbs return: ::Integer
2020
2486
  def res_id; fixed_header.res_id; end
2487
+ # Gets the value of `table` attribute in the message.
2488
+ #--
2489
+ # @rbs return: ::String
2490
+ def table; attributes[:"table"]&.value; end
2491
+ # Gets the value of `handle` attribute in the message.
2492
+ #--
2493
+ # @rbs return: ::Integer
2494
+ def handle; attributes[:"handle"]&.value; end
2021
2495
  # Gets the value of `name` attribute in the message.
2022
2496
  #--
2023
2497
  # @rbs return: ::String
2024
2498
  def name; attributes[:"name"]&.value; end
2499
+ # Gets the value of `hook` attribute in the message.
2500
+ #--
2501
+ # @rbs return: AttributeSets::NftHookAttrs
2502
+ def hook; attributes[:"hook"]&.value; end
2503
+ # Gets the value of `policy` attribute in the message.
2504
+ #--
2505
+ # @rbs return: ::Integer
2506
+ def policy; attributes[:"policy"]&.value; end
2507
+ # Gets the value of `use` attribute in the message.
2508
+ #--
2509
+ # @rbs return: ::Integer
2510
+ def use; attributes[:"use"]&.value; end
2511
+ # Gets the value of `type` attribute in the message.
2512
+ #--
2513
+ # @rbs return: ::String
2514
+ def type; attributes[:"type"]&.value; end
2515
+ # Gets the value of `counters` attribute in the message.
2516
+ #--
2517
+ # @rbs return: AttributeSets::NftCounterAttrs
2518
+ def counters; attributes[:"counters"]&.value; end
2519
+ # Gets the value of `flags` attribute in the message.
2520
+ #--
2521
+ # @rbs return: ::Integer
2522
+ def flags; attributes[:"flags"]&.value; end
2523
+ # Gets the value of `id` attribute in the message.
2524
+ #--
2525
+ # @rbs return: ::Integer
2526
+ def id; attributes[:"id"]&.value; end
2527
+ # Gets the value of `userdata` attribute in the message.
2528
+ #--
2529
+ # @rbs return: untyped
2530
+ def userdata; attributes[:"userdata"]&.value; end
2025
2531
  end
2026
2532
  # Delete an existing chain.
2027
2533
  class DoDelchainRequest < ::Nl::Protocols::Raw::Message
2028
2534
  TYPE = 2565
2029
2535
  FIXED_HEADER = Structs::Nfgenmsg
2030
2536
  ATTRIBUTE_SET = AttributeSets::ChainAttrs
2031
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2537
+ ATTRIBUTES = Ractor.make_shareable(%i[table handle name hook])
2032
2538
  # Gets the value of `nfgen-family` field in the message's fixed header.
2033
2539
  #--
2034
2540
  # @rbs return: ::Integer
@@ -2041,10 +2547,22 @@ class Nftables < ::Nl::Family
2041
2547
  #--
2042
2548
  # @rbs return: ::Integer
2043
2549
  def res_id; fixed_header.res_id; end
2550
+ # Gets the value of `table` attribute in the message.
2551
+ #--
2552
+ # @rbs return: ::String
2553
+ def table; attributes[:"table"]&.value; end
2554
+ # Gets the value of `handle` attribute in the message.
2555
+ #--
2556
+ # @rbs return: ::Integer
2557
+ def handle; attributes[:"handle"]&.value; end
2044
2558
  # Gets the value of `name` attribute in the message.
2045
2559
  #--
2046
2560
  # @rbs return: ::String
2047
2561
  def name; attributes[:"name"]&.value; end
2562
+ # Gets the value of `hook` attribute in the message.
2563
+ #--
2564
+ # @rbs return: AttributeSets::NftHookAttrs
2565
+ def hook; attributes[:"hook"]&.value; end
2048
2566
  end
2049
2567
  # Delete an existing chain with destroy semantics (ignoring ENOENT
2050
2568
  # errors).
@@ -2052,7 +2570,7 @@ class Nftables < ::Nl::Family
2052
2570
  TYPE = 2587
2053
2571
  FIXED_HEADER = Structs::Nfgenmsg
2054
2572
  ATTRIBUTE_SET = AttributeSets::ChainAttrs
2055
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2573
+ ATTRIBUTES = Ractor.make_shareable(%i[table handle name hook])
2056
2574
  # Gets the value of `nfgen-family` field in the message's fixed header.
2057
2575
  #--
2058
2576
  # @rbs return: ::Integer
@@ -2065,17 +2583,29 @@ class Nftables < ::Nl::Family
2065
2583
  #--
2066
2584
  # @rbs return: ::Integer
2067
2585
  def res_id; fixed_header.res_id; end
2586
+ # Gets the value of `table` attribute in the message.
2587
+ #--
2588
+ # @rbs return: ::String
2589
+ def table; attributes[:"table"]&.value; end
2590
+ # Gets the value of `handle` attribute in the message.
2591
+ #--
2592
+ # @rbs return: ::Integer
2593
+ def handle; attributes[:"handle"]&.value; end
2068
2594
  # Gets the value of `name` attribute in the message.
2069
2595
  #--
2070
2596
  # @rbs return: ::String
2071
2597
  def name; attributes[:"name"]&.value; end
2598
+ # Gets the value of `hook` attribute in the message.
2599
+ #--
2600
+ # @rbs return: AttributeSets::NftHookAttrs
2601
+ def hook; attributes[:"hook"]&.value; end
2072
2602
  end
2073
2603
  # Create a new rule.
2074
2604
  class DoNewruleRequest < ::Nl::Protocols::Raw::Message
2075
2605
  TYPE = 2566
2076
2606
  FIXED_HEADER = Structs::Nfgenmsg
2077
2607
  ATTRIBUTE_SET = AttributeSets::RuleAttrs
2078
- ATTRIBUTES = Ractor.make_shareable(%i[])
2608
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle expressions compat position userdata position_id chain_id])
2079
2609
  # Gets the value of `nfgen-family` field in the message's fixed header.
2080
2610
  #--
2081
2611
  # @rbs return: ::Integer
@@ -2088,13 +2618,49 @@ class Nftables < ::Nl::Family
2088
2618
  #--
2089
2619
  # @rbs return: ::Integer
2090
2620
  def res_id; fixed_header.res_id; end
2621
+ # Gets the value of `table` attribute in the message.
2622
+ #--
2623
+ # @rbs return: ::String
2624
+ def table; attributes[:"table"]&.value; end
2625
+ # Gets the value of `chain` attribute in the message.
2626
+ #--
2627
+ # @rbs return: ::String
2628
+ def chain; attributes[:"chain"]&.value; end
2629
+ # Gets the value of `handle` attribute in the message.
2630
+ #--
2631
+ # @rbs return: ::Integer
2632
+ def handle; attributes[:"handle"]&.value; end
2633
+ # Gets the value of `expressions` attribute in the message.
2634
+ #--
2635
+ # @rbs return: AttributeSets::ExprListAttrs
2636
+ def expressions; attributes[:"expressions"]&.value; end
2637
+ # Gets the value of `compat` attribute in the message.
2638
+ #--
2639
+ # @rbs return: AttributeSets::RuleCompatAttrs
2640
+ def compat; attributes[:"compat"]&.value; end
2641
+ # Gets the value of `position` attribute in the message.
2642
+ #--
2643
+ # @rbs return: ::Integer
2644
+ def position; attributes[:"position"]&.value; end
2645
+ # Gets the value of `userdata` attribute in the message.
2646
+ #--
2647
+ # @rbs return: untyped
2648
+ def userdata; attributes[:"userdata"]&.value; end
2649
+ # Gets the value of `position-id` attribute in the message.
2650
+ #--
2651
+ # @rbs return: ::Integer
2652
+ def position_id; attributes[:"position_id"]&.value; end
2653
+ # Gets the value of `chain-id` attribute in the message.
2654
+ #--
2655
+ # @rbs return: ::Integer
2656
+ def chain_id; attributes[:"chain_id"]&.value; end
2091
2657
  end
2092
2658
  # Get / dump rules.
2093
2659
  class DoGetruleRequest < ::Nl::Protocols::Raw::Message
2094
2660
  TYPE = 2567
2095
2661
  FIXED_HEADER = Structs::Nfgenmsg
2096
2662
  ATTRIBUTE_SET = AttributeSets::RuleAttrs
2097
- ATTRIBUTES = Ractor.make_shareable(%i[])
2663
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle])
2098
2664
  # Gets the value of `nfgen-family` field in the message's fixed header.
2099
2665
  #--
2100
2666
  # @rbs return: ::Integer
@@ -2107,13 +2673,25 @@ class Nftables < ::Nl::Family
2107
2673
  #--
2108
2674
  # @rbs return: ::Integer
2109
2675
  def res_id; fixed_header.res_id; end
2676
+ # Gets the value of `table` attribute in the message.
2677
+ #--
2678
+ # @rbs return: ::String
2679
+ def table; attributes[:"table"]&.value; end
2680
+ # Gets the value of `chain` attribute in the message.
2681
+ #--
2682
+ # @rbs return: ::String
2683
+ def chain; attributes[:"chain"]&.value; end
2684
+ # Gets the value of `handle` attribute in the message.
2685
+ #--
2686
+ # @rbs return: ::Integer
2687
+ def handle; attributes[:"handle"]&.value; end
2110
2688
  end
2111
2689
  # Get / dump rules.
2112
2690
  class DoGetruleReply < ::Nl::Protocols::Raw::Message
2113
2691
  TYPE = 2566
2114
2692
  FIXED_HEADER = Structs::Nfgenmsg
2115
2693
  ATTRIBUTE_SET = AttributeSets::RuleAttrs
2116
- ATTRIBUTES = Ractor.make_shareable(%i[])
2694
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle expressions position userdata])
2117
2695
  # Gets the value of `nfgen-family` field in the message's fixed header.
2118
2696
  #--
2119
2697
  # @rbs return: ::Integer
@@ -2126,13 +2704,37 @@ class Nftables < ::Nl::Family
2126
2704
  #--
2127
2705
  # @rbs return: ::Integer
2128
2706
  def res_id; fixed_header.res_id; end
2707
+ # Gets the value of `table` attribute in the message.
2708
+ #--
2709
+ # @rbs return: ::String
2710
+ def table; attributes[:"table"]&.value; end
2711
+ # Gets the value of `chain` attribute in the message.
2712
+ #--
2713
+ # @rbs return: ::String
2714
+ def chain; attributes[:"chain"]&.value; end
2715
+ # Gets the value of `handle` attribute in the message.
2716
+ #--
2717
+ # @rbs return: ::Integer
2718
+ def handle; attributes[:"handle"]&.value; end
2719
+ # Gets the value of `expressions` attribute in the message.
2720
+ #--
2721
+ # @rbs return: AttributeSets::ExprListAttrs
2722
+ def expressions; attributes[:"expressions"]&.value; end
2723
+ # Gets the value of `position` attribute in the message.
2724
+ #--
2725
+ # @rbs return: ::Integer
2726
+ def position; attributes[:"position"]&.value; end
2727
+ # Gets the value of `userdata` attribute in the message.
2728
+ #--
2729
+ # @rbs return: untyped
2730
+ def userdata; attributes[:"userdata"]&.value; end
2129
2731
  end
2130
- # Get / dump rules and reset stateful expressions.
2131
- class DoGetruleResetRequest < ::Nl::Protocols::Raw::Message
2132
- TYPE = 2585
2732
+ # Get / dump rules.
2733
+ class DumpGetruleRequest < ::Nl::Protocols::Raw::Message
2734
+ TYPE = 2567
2133
2735
  FIXED_HEADER = Structs::Nfgenmsg
2134
2736
  ATTRIBUTE_SET = AttributeSets::RuleAttrs
2135
- ATTRIBUTES = Ractor.make_shareable(%i[])
2737
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain])
2136
2738
  # Gets the value of `nfgen-family` field in the message's fixed header.
2137
2739
  #--
2138
2740
  # @rbs return: ::Integer
@@ -2145,13 +2747,21 @@ class Nftables < ::Nl::Family
2145
2747
  #--
2146
2748
  # @rbs return: ::Integer
2147
2749
  def res_id; fixed_header.res_id; end
2750
+ # Gets the value of `table` attribute in the message.
2751
+ #--
2752
+ # @rbs return: ::String
2753
+ def table; attributes[:"table"]&.value; end
2754
+ # Gets the value of `chain` attribute in the message.
2755
+ #--
2756
+ # @rbs return: ::String
2757
+ def chain; attributes[:"chain"]&.value; end
2148
2758
  end
2149
- # Get / dump rules and reset stateful expressions.
2150
- class DoGetruleResetReply < ::Nl::Protocols::Raw::Message
2759
+ # Get / dump rules.
2760
+ class DumpGetruleReply < ::Nl::Protocols::Raw::Message
2151
2761
  TYPE = 2566
2152
2762
  FIXED_HEADER = Structs::Nfgenmsg
2153
2763
  ATTRIBUTE_SET = AttributeSets::RuleAttrs
2154
- ATTRIBUTES = Ractor.make_shareable(%i[])
2764
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle expressions position userdata])
2155
2765
  # Gets the value of `nfgen-family` field in the message's fixed header.
2156
2766
  #--
2157
2767
  # @rbs return: ::Integer
@@ -2164,32 +2774,37 @@ class Nftables < ::Nl::Family
2164
2774
  #--
2165
2775
  # @rbs return: ::Integer
2166
2776
  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.
2777
+ # Gets the value of `table` attribute in the message.
2175
2778
  #--
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.
2779
+ # @rbs return: ::String
2780
+ def table; attributes[:"table"]&.value; end
2781
+ # Gets the value of `chain` attribute in the message.
2782
+ #--
2783
+ # @rbs return: ::String
2784
+ def chain; attributes[:"chain"]&.value; end
2785
+ # Gets the value of `handle` attribute in the message.
2179
2786
  #--
2180
2787
  # @rbs return: ::Integer
2181
- def version; fixed_header.version; end
2182
- # Gets the value of `res-id` field in the message's fixed header.
2788
+ def handle; attributes[:"handle"]&.value; end
2789
+ # Gets the value of `expressions` attribute in the message.
2790
+ #--
2791
+ # @rbs return: AttributeSets::ExprListAttrs
2792
+ def expressions; attributes[:"expressions"]&.value; end
2793
+ # Gets the value of `position` attribute in the message.
2183
2794
  #--
2184
2795
  # @rbs return: ::Integer
2185
- def res_id; fixed_header.res_id; end
2796
+ def position; attributes[:"position"]&.value; end
2797
+ # Gets the value of `userdata` attribute in the message.
2798
+ #--
2799
+ # @rbs return: untyped
2800
+ def userdata; attributes[:"userdata"]&.value; end
2186
2801
  end
2187
- # Delete an existing rule with destroy semantics (ignoring ENOENT errors).
2188
- class DoDestroyruleRequest < ::Nl::Protocols::Raw::Message
2189
- TYPE = 2588
2802
+ # Get / dump rules and reset stateful expressions.
2803
+ class DoGetruleResetRequest < ::Nl::Protocols::Raw::Message
2804
+ TYPE = 2585
2190
2805
  FIXED_HEADER = Structs::Nfgenmsg
2191
2806
  ATTRIBUTE_SET = AttributeSets::RuleAttrs
2192
- ATTRIBUTES = Ractor.make_shareable(%i[])
2807
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle])
2193
2808
  # Gets the value of `nfgen-family` field in the message's fixed header.
2194
2809
  #--
2195
2810
  # @rbs return: ::Integer
@@ -2202,13 +2817,25 @@ class Nftables < ::Nl::Family
2202
2817
  #--
2203
2818
  # @rbs return: ::Integer
2204
2819
  def res_id; fixed_header.res_id; end
2820
+ # Gets the value of `table` attribute in the message.
2821
+ #--
2822
+ # @rbs return: ::String
2823
+ def table; attributes[:"table"]&.value; end
2824
+ # Gets the value of `chain` attribute in the message.
2825
+ #--
2826
+ # @rbs return: ::String
2827
+ def chain; attributes[:"chain"]&.value; end
2828
+ # Gets the value of `handle` attribute in the message.
2829
+ #--
2830
+ # @rbs return: ::Integer
2831
+ def handle; attributes[:"handle"]&.value; end
2205
2832
  end
2206
- # Create a new set.
2207
- class DoNewsetRequest < ::Nl::Protocols::Raw::Message
2208
- TYPE = 2569
2833
+ # Get / dump rules and reset stateful expressions.
2834
+ class DoGetruleResetReply < ::Nl::Protocols::Raw::Message
2835
+ TYPE = 2566
2209
2836
  FIXED_HEADER = Structs::Nfgenmsg
2210
- ATTRIBUTE_SET = AttributeSets::SetAttrs
2211
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2837
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2838
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle expressions position userdata])
2212
2839
  # Gets the value of `nfgen-family` field in the message's fixed header.
2213
2840
  #--
2214
2841
  # @rbs return: ::Integer
@@ -2221,17 +2848,37 @@ class Nftables < ::Nl::Family
2221
2848
  #--
2222
2849
  # @rbs return: ::Integer
2223
2850
  def res_id; fixed_header.res_id; end
2224
- # Gets the value of `name` attribute in the message.
2851
+ # Gets the value of `table` attribute in the message.
2225
2852
  #--
2226
2853
  # @rbs return: ::String
2227
- def name; attributes[:"name"]&.value; end
2854
+ def table; attributes[:"table"]&.value; end
2855
+ # Gets the value of `chain` attribute in the message.
2856
+ #--
2857
+ # @rbs return: ::String
2858
+ def chain; attributes[:"chain"]&.value; end
2859
+ # Gets the value of `handle` attribute in the message.
2860
+ #--
2861
+ # @rbs return: ::Integer
2862
+ def handle; attributes[:"handle"]&.value; end
2863
+ # Gets the value of `expressions` attribute in the message.
2864
+ #--
2865
+ # @rbs return: AttributeSets::ExprListAttrs
2866
+ def expressions; attributes[:"expressions"]&.value; end
2867
+ # Gets the value of `position` attribute in the message.
2868
+ #--
2869
+ # @rbs return: ::Integer
2870
+ def position; attributes[:"position"]&.value; end
2871
+ # Gets the value of `userdata` attribute in the message.
2872
+ #--
2873
+ # @rbs return: untyped
2874
+ def userdata; attributes[:"userdata"]&.value; end
2228
2875
  end
2229
- # Get / dump sets.
2230
- class DoGetsetRequest < ::Nl::Protocols::Raw::Message
2231
- TYPE = 2570
2876
+ # Get / dump rules and reset stateful expressions.
2877
+ class DumpGetruleResetRequest < ::Nl::Protocols::Raw::Message
2878
+ TYPE = 2585
2232
2879
  FIXED_HEADER = Structs::Nfgenmsg
2233
- ATTRIBUTE_SET = AttributeSets::SetAttrs
2234
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2880
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2881
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle])
2235
2882
  # Gets the value of `nfgen-family` field in the message's fixed header.
2236
2883
  #--
2237
2884
  # @rbs return: ::Integer
@@ -2244,17 +2891,25 @@ class Nftables < ::Nl::Family
2244
2891
  #--
2245
2892
  # @rbs return: ::Integer
2246
2893
  def res_id; fixed_header.res_id; end
2247
- # Gets the value of `name` attribute in the message.
2894
+ # Gets the value of `table` attribute in the message.
2248
2895
  #--
2249
2896
  # @rbs return: ::String
2250
- def name; attributes[:"name"]&.value; end
2897
+ def table; attributes[:"table"]&.value; end
2898
+ # Gets the value of `chain` attribute in the message.
2899
+ #--
2900
+ # @rbs return: ::String
2901
+ def chain; attributes[:"chain"]&.value; end
2902
+ # Gets the value of `handle` attribute in the message.
2903
+ #--
2904
+ # @rbs return: ::Integer
2905
+ def handle; attributes[:"handle"]&.value; end
2251
2906
  end
2252
- # Get / dump sets.
2253
- class DoGetsetReply < ::Nl::Protocols::Raw::Message
2254
- TYPE = 2569
2907
+ # Get / dump rules and reset stateful expressions.
2908
+ class DumpGetruleResetReply < ::Nl::Protocols::Raw::Message
2909
+ TYPE = 2566
2255
2910
  FIXED_HEADER = Structs::Nfgenmsg
2256
- ATTRIBUTE_SET = AttributeSets::SetAttrs
2257
- ATTRIBUTES = Ractor.make_shareable(%i[name])
2911
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2912
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle expressions position userdata])
2258
2913
  # Gets the value of `nfgen-family` field in the message's fixed header.
2259
2914
  #--
2260
2915
  # @rbs return: ::Integer
@@ -2267,17 +2922,390 @@ class Nftables < ::Nl::Family
2267
2922
  #--
2268
2923
  # @rbs return: ::Integer
2269
2924
  def res_id; fixed_header.res_id; end
2270
- # Gets the value of `name` attribute in the message.
2925
+ # Gets the value of `table` attribute in the message.
2926
+ #--
2927
+ # @rbs return: ::String
2928
+ def table; attributes[:"table"]&.value; end
2929
+ # Gets the value of `chain` attribute in the message.
2930
+ #--
2931
+ # @rbs return: ::String
2932
+ def chain; attributes[:"chain"]&.value; end
2933
+ # Gets the value of `handle` attribute in the message.
2934
+ #--
2935
+ # @rbs return: ::Integer
2936
+ def handle; attributes[:"handle"]&.value; end
2937
+ # Gets the value of `expressions` attribute in the message.
2938
+ #--
2939
+ # @rbs return: AttributeSets::ExprListAttrs
2940
+ def expressions; attributes[:"expressions"]&.value; end
2941
+ # Gets the value of `position` attribute in the message.
2942
+ #--
2943
+ # @rbs return: ::Integer
2944
+ def position; attributes[:"position"]&.value; end
2945
+ # Gets the value of `userdata` attribute in the message.
2946
+ #--
2947
+ # @rbs return: untyped
2948
+ def userdata; attributes[:"userdata"]&.value; end
2949
+ end
2950
+ # Delete an existing rule.
2951
+ class DoDelruleRequest < ::Nl::Protocols::Raw::Message
2952
+ TYPE = 2568
2953
+ FIXED_HEADER = Structs::Nfgenmsg
2954
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2955
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle id])
2956
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2957
+ #--
2958
+ # @rbs return: ::Integer
2959
+ def nfgen_family; fixed_header.nfgen_family; end
2960
+ # Gets the value of `version` field in the message's fixed header.
2961
+ #--
2962
+ # @rbs return: ::Integer
2963
+ def version; fixed_header.version; end
2964
+ # Gets the value of `res-id` field in the message's fixed header.
2965
+ #--
2966
+ # @rbs return: ::Integer
2967
+ def res_id; fixed_header.res_id; end
2968
+ # Gets the value of `table` attribute in the message.
2969
+ #--
2970
+ # @rbs return: ::String
2971
+ def table; attributes[:"table"]&.value; end
2972
+ # Gets the value of `chain` attribute in the message.
2973
+ #--
2974
+ # @rbs return: ::String
2975
+ def chain; attributes[:"chain"]&.value; end
2976
+ # Gets the value of `handle` attribute in the message.
2977
+ #--
2978
+ # @rbs return: ::Integer
2979
+ def handle; attributes[:"handle"]&.value; end
2980
+ # Gets the value of `id` attribute in the message.
2981
+ #--
2982
+ # @rbs return: ::Integer
2983
+ def id; attributes[:"id"]&.value; end
2984
+ end
2985
+ # Delete an existing rule with destroy semantics (ignoring ENOENT errors).
2986
+ class DoDestroyruleRequest < ::Nl::Protocols::Raw::Message
2987
+ TYPE = 2588
2988
+ FIXED_HEADER = Structs::Nfgenmsg
2989
+ ATTRIBUTE_SET = AttributeSets::RuleAttrs
2990
+ ATTRIBUTES = Ractor.make_shareable(%i[table chain handle id])
2991
+ # Gets the value of `nfgen-family` field in the message's fixed header.
2992
+ #--
2993
+ # @rbs return: ::Integer
2994
+ def nfgen_family; fixed_header.nfgen_family; end
2995
+ # Gets the value of `version` field in the message's fixed header.
2996
+ #--
2997
+ # @rbs return: ::Integer
2998
+ def version; fixed_header.version; end
2999
+ # Gets the value of `res-id` field in the message's fixed header.
3000
+ #--
3001
+ # @rbs return: ::Integer
3002
+ def res_id; fixed_header.res_id; end
3003
+ # Gets the value of `table` attribute in the message.
3004
+ #--
3005
+ # @rbs return: ::String
3006
+ def table; attributes[:"table"]&.value; end
3007
+ # Gets the value of `chain` attribute in the message.
3008
+ #--
3009
+ # @rbs return: ::String
3010
+ def chain; attributes[:"chain"]&.value; end
3011
+ # Gets the value of `handle` attribute in the message.
3012
+ #--
3013
+ # @rbs return: ::Integer
3014
+ def handle; attributes[:"handle"]&.value; end
3015
+ # Gets the value of `id` attribute in the message.
3016
+ #--
3017
+ # @rbs return: ::Integer
3018
+ def id; attributes[:"id"]&.value; end
3019
+ end
3020
+ # Create a new set.
3021
+ class DoNewsetRequest < ::Nl::Protocols::Raw::Message
3022
+ TYPE = 2569
3023
+ FIXED_HEADER = Structs::Nfgenmsg
3024
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
3025
+ ATTRIBUTES = Ractor.make_shareable(%i[table name flags key_type key_len data_type data_len policy desc id timeout gc_interval userdata obj_type])
3026
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3027
+ #--
3028
+ # @rbs return: ::Integer
3029
+ def nfgen_family; fixed_header.nfgen_family; end
3030
+ # Gets the value of `version` field in the message's fixed header.
3031
+ #--
3032
+ # @rbs return: ::Integer
3033
+ def version; fixed_header.version; end
3034
+ # Gets the value of `res-id` field in the message's fixed header.
3035
+ #--
3036
+ # @rbs return: ::Integer
3037
+ def res_id; fixed_header.res_id; end
3038
+ # Gets the value of `table` attribute in the message.
3039
+ #--
3040
+ # @rbs return: ::String
3041
+ def table; attributes[:"table"]&.value; end
3042
+ # Gets the value of `name` attribute in the message.
3043
+ #--
3044
+ # @rbs return: ::String
3045
+ def name; attributes[:"name"]&.value; end
3046
+ # Gets the value of `flags` attribute in the message.
3047
+ #--
3048
+ # @rbs return: ::Integer
3049
+ def flags; attributes[:"flags"]&.value; end
3050
+ # Gets the value of `key-type` attribute in the message.
3051
+ #--
3052
+ # @rbs return: ::Integer
3053
+ def key_type; attributes[:"key_type"]&.value; end
3054
+ # Gets the value of `key-len` attribute in the message.
3055
+ #--
3056
+ # @rbs return: ::Integer
3057
+ def key_len; attributes[:"key_len"]&.value; end
3058
+ # Gets the value of `data-type` attribute in the message.
3059
+ #--
3060
+ # @rbs return: ::Integer
3061
+ def data_type; attributes[:"data_type"]&.value; end
3062
+ # Gets the value of `data-len` attribute in the message.
3063
+ #--
3064
+ # @rbs return: ::Integer
3065
+ def data_len; attributes[:"data_len"]&.value; end
3066
+ # Gets the value of `policy` attribute in the message.
3067
+ #--
3068
+ # @rbs return: ::Integer
3069
+ def policy; attributes[:"policy"]&.value; end
3070
+ # Gets the value of `desc` attribute in the message.
3071
+ #--
3072
+ # @rbs return: AttributeSets::SetDescAttrs
3073
+ def desc; attributes[:"desc"]&.value; end
3074
+ # Gets the value of `id` attribute in the message.
3075
+ #--
3076
+ # @rbs return: ::Integer
3077
+ def id; attributes[:"id"]&.value; end
3078
+ # Gets the value of `timeout` attribute in the message.
3079
+ #--
3080
+ # @rbs return: ::Integer
3081
+ def timeout; attributes[:"timeout"]&.value; end
3082
+ # Gets the value of `gc-interval` attribute in the message.
3083
+ #--
3084
+ # @rbs return: ::Integer
3085
+ def gc_interval; attributes[:"gc_interval"]&.value; end
3086
+ # Gets the value of `userdata` attribute in the message.
3087
+ #--
3088
+ # @rbs return: untyped
3089
+ def userdata; attributes[:"userdata"]&.value; end
3090
+ # Gets the value of `obj-type` attribute in the message.
3091
+ #--
3092
+ # @rbs return: ::Integer
3093
+ def obj_type; attributes[:"obj_type"]&.value; end
3094
+ end
3095
+ # Get / dump sets.
3096
+ class DoGetsetRequest < ::Nl::Protocols::Raw::Message
3097
+ TYPE = 2570
3098
+ FIXED_HEADER = Structs::Nfgenmsg
3099
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
3100
+ ATTRIBUTES = Ractor.make_shareable(%i[table name])
3101
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3102
+ #--
3103
+ # @rbs return: ::Integer
3104
+ def nfgen_family; fixed_header.nfgen_family; end
3105
+ # Gets the value of `version` field in the message's fixed header.
3106
+ #--
3107
+ # @rbs return: ::Integer
3108
+ def version; fixed_header.version; end
3109
+ # Gets the value of `res-id` field in the message's fixed header.
3110
+ #--
3111
+ # @rbs return: ::Integer
3112
+ def res_id; fixed_header.res_id; end
3113
+ # Gets the value of `table` attribute in the message.
3114
+ #--
3115
+ # @rbs return: ::String
3116
+ def table; attributes[:"table"]&.value; end
3117
+ # Gets the value of `name` attribute in the message.
2271
3118
  #--
2272
3119
  # @rbs return: ::String
2273
3120
  def name; attributes[:"name"]&.value; end
2274
3121
  end
3122
+ # Get / dump sets.
3123
+ class DoGetsetReply < ::Nl::Protocols::Raw::Message
3124
+ TYPE = 2569
3125
+ FIXED_HEADER = Structs::Nfgenmsg
3126
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
3127
+ ATTRIBUTES = Ractor.make_shareable(%i[table name flags key_type key_len data_type data_len policy desc gc_interval userdata obj_type handle expr expressions])
3128
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3129
+ #--
3130
+ # @rbs return: ::Integer
3131
+ def nfgen_family; fixed_header.nfgen_family; end
3132
+ # Gets the value of `version` field in the message's fixed header.
3133
+ #--
3134
+ # @rbs return: ::Integer
3135
+ def version; fixed_header.version; end
3136
+ # Gets the value of `res-id` field in the message's fixed header.
3137
+ #--
3138
+ # @rbs return: ::Integer
3139
+ def res_id; fixed_header.res_id; end
3140
+ # Gets the value of `table` attribute in the message.
3141
+ #--
3142
+ # @rbs return: ::String
3143
+ def table; attributes[:"table"]&.value; end
3144
+ # Gets the value of `name` attribute in the message.
3145
+ #--
3146
+ # @rbs return: ::String
3147
+ def name; attributes[:"name"]&.value; end
3148
+ # Gets the value of `flags` attribute in the message.
3149
+ #--
3150
+ # @rbs return: ::Integer
3151
+ def flags; attributes[:"flags"]&.value; end
3152
+ # Gets the value of `key-type` attribute in the message.
3153
+ #--
3154
+ # @rbs return: ::Integer
3155
+ def key_type; attributes[:"key_type"]&.value; end
3156
+ # Gets the value of `key-len` attribute in the message.
3157
+ #--
3158
+ # @rbs return: ::Integer
3159
+ def key_len; attributes[:"key_len"]&.value; end
3160
+ # Gets the value of `data-type` attribute in the message.
3161
+ #--
3162
+ # @rbs return: ::Integer
3163
+ def data_type; attributes[:"data_type"]&.value; end
3164
+ # Gets the value of `data-len` attribute in the message.
3165
+ #--
3166
+ # @rbs return: ::Integer
3167
+ def data_len; attributes[:"data_len"]&.value; end
3168
+ # Gets the value of `policy` attribute in the message.
3169
+ #--
3170
+ # @rbs return: ::Integer
3171
+ def policy; attributes[:"policy"]&.value; end
3172
+ # Gets the value of `desc` attribute in the message.
3173
+ #--
3174
+ # @rbs return: AttributeSets::SetDescAttrs
3175
+ def desc; attributes[:"desc"]&.value; end
3176
+ # Gets the value of `gc-interval` attribute in the message.
3177
+ #--
3178
+ # @rbs return: ::Integer
3179
+ def gc_interval; attributes[:"gc_interval"]&.value; end
3180
+ # Gets the value of `userdata` attribute in the message.
3181
+ #--
3182
+ # @rbs return: untyped
3183
+ def userdata; attributes[:"userdata"]&.value; end
3184
+ # Gets the value of `obj-type` attribute in the message.
3185
+ #--
3186
+ # @rbs return: ::Integer
3187
+ def obj_type; attributes[:"obj_type"]&.value; end
3188
+ # Gets the value of `handle` attribute in the message.
3189
+ #--
3190
+ # @rbs return: ::Integer
3191
+ def handle; attributes[:"handle"]&.value; end
3192
+ # Gets the value of `expr` attribute in the message.
3193
+ #--
3194
+ # @rbs return: AttributeSets::ExprAttrs
3195
+ def expr; attributes[:"expr"]&.value; end
3196
+ # Gets the value of `expressions` attribute in the message.
3197
+ #--
3198
+ # @rbs return: AttributeSets::SetListAttrs
3199
+ def expressions; attributes[:"expressions"]&.value; end
3200
+ end
3201
+ # Get / dump sets.
3202
+ class DumpGetsetRequest < ::Nl::Protocols::Raw::Message
3203
+ TYPE = 2570
3204
+ FIXED_HEADER = Structs::Nfgenmsg
3205
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
3206
+ ATTRIBUTES = Ractor.make_shareable(%i[table])
3207
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3208
+ #--
3209
+ # @rbs return: ::Integer
3210
+ def nfgen_family; fixed_header.nfgen_family; end
3211
+ # Gets the value of `version` field in the message's fixed header.
3212
+ #--
3213
+ # @rbs return: ::Integer
3214
+ def version; fixed_header.version; end
3215
+ # Gets the value of `res-id` field in the message's fixed header.
3216
+ #--
3217
+ # @rbs return: ::Integer
3218
+ def res_id; fixed_header.res_id; end
3219
+ # Gets the value of `table` attribute in the message.
3220
+ #--
3221
+ # @rbs return: ::String
3222
+ def table; attributes[:"table"]&.value; end
3223
+ end
3224
+ # Get / dump sets.
3225
+ class DumpGetsetReply < ::Nl::Protocols::Raw::Message
3226
+ TYPE = 2569
3227
+ FIXED_HEADER = Structs::Nfgenmsg
3228
+ ATTRIBUTE_SET = AttributeSets::SetAttrs
3229
+ ATTRIBUTES = Ractor.make_shareable(%i[table name flags key_type key_len data_type data_len policy desc gc_interval userdata obj_type handle expr expressions])
3230
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3231
+ #--
3232
+ # @rbs return: ::Integer
3233
+ def nfgen_family; fixed_header.nfgen_family; end
3234
+ # Gets the value of `version` field in the message's fixed header.
3235
+ #--
3236
+ # @rbs return: ::Integer
3237
+ def version; fixed_header.version; end
3238
+ # Gets the value of `res-id` field in the message's fixed header.
3239
+ #--
3240
+ # @rbs return: ::Integer
3241
+ def res_id; fixed_header.res_id; end
3242
+ # Gets the value of `table` attribute in the message.
3243
+ #--
3244
+ # @rbs return: ::String
3245
+ def table; attributes[:"table"]&.value; end
3246
+ # Gets the value of `name` attribute in the message.
3247
+ #--
3248
+ # @rbs return: ::String
3249
+ def name; attributes[:"name"]&.value; end
3250
+ # Gets the value of `flags` attribute in the message.
3251
+ #--
3252
+ # @rbs return: ::Integer
3253
+ def flags; attributes[:"flags"]&.value; end
3254
+ # Gets the value of `key-type` attribute in the message.
3255
+ #--
3256
+ # @rbs return: ::Integer
3257
+ def key_type; attributes[:"key_type"]&.value; end
3258
+ # Gets the value of `key-len` attribute in the message.
3259
+ #--
3260
+ # @rbs return: ::Integer
3261
+ def key_len; attributes[:"key_len"]&.value; end
3262
+ # Gets the value of `data-type` attribute in the message.
3263
+ #--
3264
+ # @rbs return: ::Integer
3265
+ def data_type; attributes[:"data_type"]&.value; end
3266
+ # Gets the value of `data-len` attribute in the message.
3267
+ #--
3268
+ # @rbs return: ::Integer
3269
+ def data_len; attributes[:"data_len"]&.value; end
3270
+ # Gets the value of `policy` attribute in the message.
3271
+ #--
3272
+ # @rbs return: ::Integer
3273
+ def policy; attributes[:"policy"]&.value; end
3274
+ # Gets the value of `desc` attribute in the message.
3275
+ #--
3276
+ # @rbs return: AttributeSets::SetDescAttrs
3277
+ def desc; attributes[:"desc"]&.value; end
3278
+ # Gets the value of `gc-interval` attribute in the message.
3279
+ #--
3280
+ # @rbs return: ::Integer
3281
+ def gc_interval; attributes[:"gc_interval"]&.value; end
3282
+ # Gets the value of `userdata` attribute in the message.
3283
+ #--
3284
+ # @rbs return: untyped
3285
+ def userdata; attributes[:"userdata"]&.value; end
3286
+ # Gets the value of `obj-type` attribute in the message.
3287
+ #--
3288
+ # @rbs return: ::Integer
3289
+ def obj_type; attributes[:"obj_type"]&.value; end
3290
+ # Gets the value of `handle` attribute in the message.
3291
+ #--
3292
+ # @rbs return: ::Integer
3293
+ def handle; attributes[:"handle"]&.value; end
3294
+ # Gets the value of `expr` attribute in the message.
3295
+ #--
3296
+ # @rbs return: AttributeSets::ExprAttrs
3297
+ def expr; attributes[:"expr"]&.value; end
3298
+ # Gets the value of `expressions` attribute in the message.
3299
+ #--
3300
+ # @rbs return: AttributeSets::SetListAttrs
3301
+ def expressions; attributes[:"expressions"]&.value; end
3302
+ end
2275
3303
  # Delete an existing set.
2276
3304
  class DoDelsetRequest < ::Nl::Protocols::Raw::Message
2277
3305
  TYPE = 2571
2278
3306
  FIXED_HEADER = Structs::Nfgenmsg
2279
3307
  ATTRIBUTE_SET = AttributeSets::SetAttrs
2280
- ATTRIBUTES = Ractor.make_shareable(%i[name])
3308
+ ATTRIBUTES = Ractor.make_shareable(%i[table name handle])
2281
3309
  # Gets the value of `nfgen-family` field in the message's fixed header.
2282
3310
  #--
2283
3311
  # @rbs return: ::Integer
@@ -2290,17 +3318,145 @@ class Nftables < ::Nl::Family
2290
3318
  #--
2291
3319
  # @rbs return: ::Integer
2292
3320
  def res_id; fixed_header.res_id; end
3321
+ # Gets the value of `table` attribute in the message.
3322
+ #--
3323
+ # @rbs return: ::String
3324
+ def table; attributes[:"table"]&.value; end
2293
3325
  # Gets the value of `name` attribute in the message.
2294
3326
  #--
2295
3327
  # @rbs return: ::String
2296
3328
  def name; attributes[:"name"]&.value; end
3329
+ # Gets the value of `handle` attribute in the message.
3330
+ #--
3331
+ # @rbs return: ::Integer
3332
+ def handle; attributes[:"handle"]&.value; end
2297
3333
  end
2298
3334
  # Delete an existing set with destroy semantics (ignoring ENOENT errors).
2299
3335
  class DoDestroysetRequest < ::Nl::Protocols::Raw::Message
2300
3336
  TYPE = 2589
2301
3337
  FIXED_HEADER = Structs::Nfgenmsg
2302
3338
  ATTRIBUTE_SET = AttributeSets::SetAttrs
2303
- ATTRIBUTES = Ractor.make_shareable(%i[name])
3339
+ ATTRIBUTES = Ractor.make_shareable(%i[table name handle])
3340
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3341
+ #--
3342
+ # @rbs return: ::Integer
3343
+ def nfgen_family; fixed_header.nfgen_family; end
3344
+ # Gets the value of `version` field in the message's fixed header.
3345
+ #--
3346
+ # @rbs return: ::Integer
3347
+ def version; fixed_header.version; end
3348
+ # Gets the value of `res-id` field in the message's fixed header.
3349
+ #--
3350
+ # @rbs return: ::Integer
3351
+ def res_id; fixed_header.res_id; end
3352
+ # Gets the value of `table` attribute in the message.
3353
+ #--
3354
+ # @rbs return: ::String
3355
+ def table; attributes[:"table"]&.value; end
3356
+ # Gets the value of `name` attribute in the message.
3357
+ #--
3358
+ # @rbs return: ::String
3359
+ def name; attributes[:"name"]&.value; end
3360
+ # Gets the value of `handle` attribute in the message.
3361
+ #--
3362
+ # @rbs return: ::Integer
3363
+ def handle; attributes[:"handle"]&.value; end
3364
+ end
3365
+ # Create a new set element.
3366
+ class DoNewsetelemRequest < ::Nl::Protocols::Raw::Message
3367
+ TYPE = 2572
3368
+ FIXED_HEADER = Structs::Nfgenmsg
3369
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
3370
+ ATTRIBUTES = Ractor.make_shareable(%i[table set elements set_id])
3371
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3372
+ #--
3373
+ # @rbs return: ::Integer
3374
+ def nfgen_family; fixed_header.nfgen_family; end
3375
+ # Gets the value of `version` field in the message's fixed header.
3376
+ #--
3377
+ # @rbs return: ::Integer
3378
+ def version; fixed_header.version; end
3379
+ # Gets the value of `res-id` field in the message's fixed header.
3380
+ #--
3381
+ # @rbs return: ::Integer
3382
+ def res_id; fixed_header.res_id; end
3383
+ # Gets the value of `table` attribute in the message.
3384
+ #--
3385
+ # @rbs return: ::String
3386
+ def table; attributes[:"table"]&.value; end
3387
+ # Gets the value of `set` attribute in the message.
3388
+ #--
3389
+ # @rbs return: ::String
3390
+ def set; attributes[:"set"]&.value; end
3391
+ # Gets the value of `elements` attribute in the message.
3392
+ #--
3393
+ # @rbs return: AttributeSets::SetelemListElemAttrs
3394
+ def elements; attributes[:"elements"]&.value; end
3395
+ # Gets the value of `set-id` attribute in the message.
3396
+ #--
3397
+ # @rbs return: ::Integer
3398
+ def set_id; attributes[:"set_id"]&.value; end
3399
+ end
3400
+ # Get / dump set elements.
3401
+ class DoGetsetelemRequest < ::Nl::Protocols::Raw::Message
3402
+ TYPE = 2573
3403
+ FIXED_HEADER = Structs::Nfgenmsg
3404
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
3405
+ ATTRIBUTES = Ractor.make_shareable(%i[table set elements])
3406
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3407
+ #--
3408
+ # @rbs return: ::Integer
3409
+ def nfgen_family; fixed_header.nfgen_family; end
3410
+ # Gets the value of `version` field in the message's fixed header.
3411
+ #--
3412
+ # @rbs return: ::Integer
3413
+ def version; fixed_header.version; end
3414
+ # Gets the value of `res-id` field in the message's fixed header.
3415
+ #--
3416
+ # @rbs return: ::Integer
3417
+ def res_id; fixed_header.res_id; end
3418
+ # Gets the value of `table` attribute in the message.
3419
+ #--
3420
+ # @rbs return: ::String
3421
+ def table; attributes[:"table"]&.value; end
3422
+ # Gets the value of `set` attribute in the message.
3423
+ #--
3424
+ # @rbs return: ::String
3425
+ def set; attributes[:"set"]&.value; end
3426
+ # Gets the value of `elements` attribute in the message.
3427
+ #--
3428
+ # @rbs return: AttributeSets::SetelemListElemAttrs
3429
+ def elements; attributes[:"elements"]&.value; end
3430
+ end
3431
+ # Get / dump set elements.
3432
+ class DoGetsetelemReply < ::Nl::Protocols::Raw::Message
3433
+ TYPE = 2572
3434
+ FIXED_HEADER = Structs::Nfgenmsg
3435
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
3436
+ ATTRIBUTES = Ractor.make_shareable(%i[elements])
3437
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3438
+ #--
3439
+ # @rbs return: ::Integer
3440
+ def nfgen_family; fixed_header.nfgen_family; end
3441
+ # Gets the value of `version` field in the message's fixed header.
3442
+ #--
3443
+ # @rbs return: ::Integer
3444
+ def version; fixed_header.version; end
3445
+ # Gets the value of `res-id` field in the message's fixed header.
3446
+ #--
3447
+ # @rbs return: ::Integer
3448
+ def res_id; fixed_header.res_id; end
3449
+ # Gets the value of `elements` attribute in the message.
3450
+ #--
3451
+ # @rbs return: AttributeSets::SetelemListElemAttrs
3452
+ def elements; attributes[:"elements"]&.value; end
3453
+ end
3454
+ # Get / dump set elements.
3455
+ class DumpGetsetelemRequest < ::Nl::Protocols::Raw::Message
3456
+ TYPE = 2573
3457
+ FIXED_HEADER = Structs::Nfgenmsg
3458
+ ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
3459
+ ATTRIBUTES = Ractor.make_shareable(%i[table set])
2304
3460
  # Gets the value of `nfgen-family` field in the message's fixed header.
2305
3461
  #--
2306
3462
  # @rbs return: ::Integer
@@ -2313,17 +3469,21 @@ class Nftables < ::Nl::Family
2313
3469
  #--
2314
3470
  # @rbs return: ::Integer
2315
3471
  def res_id; fixed_header.res_id; end
2316
- # Gets the value of `name` attribute in the message.
3472
+ # Gets the value of `table` attribute in the message.
2317
3473
  #--
2318
3474
  # @rbs return: ::String
2319
- def name; attributes[:"name"]&.value; end
3475
+ def table; attributes[:"table"]&.value; end
3476
+ # Gets the value of `set` attribute in the message.
3477
+ #--
3478
+ # @rbs return: ::String
3479
+ def set; attributes[:"set"]&.value; end
2320
3480
  end
2321
- # Create a new set element.
2322
- class DoNewsetelemRequest < ::Nl::Protocols::Raw::Message
3481
+ # Get / dump set elements.
3482
+ class DumpGetsetelemReply < ::Nl::Protocols::Raw::Message
2323
3483
  TYPE = 2572
2324
3484
  FIXED_HEADER = Structs::Nfgenmsg
2325
3485
  ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2326
- ATTRIBUTES = Ractor.make_shareable(%i[])
3486
+ ATTRIBUTES = Ractor.make_shareable(%i[table set elements])
2327
3487
  # Gets the value of `nfgen-family` field in the message's fixed header.
2328
3488
  #--
2329
3489
  # @rbs return: ::Integer
@@ -2336,13 +3496,25 @@ class Nftables < ::Nl::Family
2336
3496
  #--
2337
3497
  # @rbs return: ::Integer
2338
3498
  def res_id; fixed_header.res_id; end
3499
+ # Gets the value of `table` attribute in the message.
3500
+ #--
3501
+ # @rbs return: ::String
3502
+ def table; attributes[:"table"]&.value; end
3503
+ # Gets the value of `set` attribute in the message.
3504
+ #--
3505
+ # @rbs return: ::String
3506
+ def set; attributes[:"set"]&.value; end
3507
+ # Gets the value of `elements` attribute in the message.
3508
+ #--
3509
+ # @rbs return: AttributeSets::SetelemListElemAttrs
3510
+ def elements; attributes[:"elements"]&.value; end
2339
3511
  end
2340
- # Get / dump set elements.
2341
- class DoGetsetelemRequest < ::Nl::Protocols::Raw::Message
2342
- TYPE = 2573
3512
+ # Get / dump set elements and reset stateful expressions.
3513
+ class DoGetsetelemResetRequest < ::Nl::Protocols::Raw::Message
3514
+ TYPE = 2593
2343
3515
  FIXED_HEADER = Structs::Nfgenmsg
2344
3516
  ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2345
- ATTRIBUTES = Ractor.make_shareable(%i[])
3517
+ ATTRIBUTES = Ractor.make_shareable(%i[elements])
2346
3518
  # Gets the value of `nfgen-family` field in the message's fixed header.
2347
3519
  #--
2348
3520
  # @rbs return: ::Integer
@@ -2355,13 +3527,17 @@ class Nftables < ::Nl::Family
2355
3527
  #--
2356
3528
  # @rbs return: ::Integer
2357
3529
  def res_id; fixed_header.res_id; end
3530
+ # Gets the value of `elements` attribute in the message.
3531
+ #--
3532
+ # @rbs return: AttributeSets::SetelemListElemAttrs
3533
+ def elements; attributes[:"elements"]&.value; end
2358
3534
  end
2359
- # Get / dump set elements.
2360
- class DoGetsetelemReply < ::Nl::Protocols::Raw::Message
3535
+ # Get / dump set elements and reset stateful expressions.
3536
+ class DoGetsetelemResetReply < ::Nl::Protocols::Raw::Message
2361
3537
  TYPE = 2572
2362
3538
  FIXED_HEADER = Structs::Nfgenmsg
2363
3539
  ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2364
- ATTRIBUTES = Ractor.make_shareable(%i[])
3540
+ ATTRIBUTES = Ractor.make_shareable(%i[table set elements])
2365
3541
  # Gets the value of `nfgen-family` field in the message's fixed header.
2366
3542
  #--
2367
3543
  # @rbs return: ::Integer
@@ -2374,13 +3550,25 @@ class Nftables < ::Nl::Family
2374
3550
  #--
2375
3551
  # @rbs return: ::Integer
2376
3552
  def res_id; fixed_header.res_id; end
3553
+ # Gets the value of `table` attribute in the message.
3554
+ #--
3555
+ # @rbs return: ::String
3556
+ def table; attributes[:"table"]&.value; end
3557
+ # Gets the value of `set` attribute in the message.
3558
+ #--
3559
+ # @rbs return: ::String
3560
+ def set; attributes[:"set"]&.value; end
3561
+ # Gets the value of `elements` attribute in the message.
3562
+ #--
3563
+ # @rbs return: AttributeSets::SetelemListElemAttrs
3564
+ def elements; attributes[:"elements"]&.value; end
2377
3565
  end
2378
3566
  # Get / dump set elements and reset stateful expressions.
2379
- class DoGetsetelemResetRequest < ::Nl::Protocols::Raw::Message
3567
+ class DumpGetsetelemResetRequest < ::Nl::Protocols::Raw::Message
2380
3568
  TYPE = 2593
2381
3569
  FIXED_HEADER = Structs::Nfgenmsg
2382
3570
  ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2383
- ATTRIBUTES = Ractor.make_shareable(%i[])
3571
+ ATTRIBUTES = Ractor.make_shareable(%i[table set])
2384
3572
  # Gets the value of `nfgen-family` field in the message's fixed header.
2385
3573
  #--
2386
3574
  # @rbs return: ::Integer
@@ -2393,13 +3581,21 @@ class Nftables < ::Nl::Family
2393
3581
  #--
2394
3582
  # @rbs return: ::Integer
2395
3583
  def res_id; fixed_header.res_id; end
3584
+ # Gets the value of `table` attribute in the message.
3585
+ #--
3586
+ # @rbs return: ::String
3587
+ def table; attributes[:"table"]&.value; end
3588
+ # Gets the value of `set` attribute in the message.
3589
+ #--
3590
+ # @rbs return: ::String
3591
+ def set; attributes[:"set"]&.value; end
2396
3592
  end
2397
3593
  # Get / dump set elements and reset stateful expressions.
2398
- class DoGetsetelemResetReply < ::Nl::Protocols::Raw::Message
3594
+ class DumpGetsetelemResetReply < ::Nl::Protocols::Raw::Message
2399
3595
  TYPE = 2572
2400
3596
  FIXED_HEADER = Structs::Nfgenmsg
2401
3597
  ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2402
- ATTRIBUTES = Ractor.make_shareable(%i[])
3598
+ ATTRIBUTES = Ractor.make_shareable(%i[table set elements])
2403
3599
  # Gets the value of `nfgen-family` field in the message's fixed header.
2404
3600
  #--
2405
3601
  # @rbs return: ::Integer
@@ -2412,13 +3608,25 @@ class Nftables < ::Nl::Family
2412
3608
  #--
2413
3609
  # @rbs return: ::Integer
2414
3610
  def res_id; fixed_header.res_id; end
3611
+ # Gets the value of `table` attribute in the message.
3612
+ #--
3613
+ # @rbs return: ::String
3614
+ def table; attributes[:"table"]&.value; end
3615
+ # Gets the value of `set` attribute in the message.
3616
+ #--
3617
+ # @rbs return: ::String
3618
+ def set; attributes[:"set"]&.value; end
3619
+ # Gets the value of `elements` attribute in the message.
3620
+ #--
3621
+ # @rbs return: AttributeSets::SetelemListElemAttrs
3622
+ def elements; attributes[:"elements"]&.value; end
2415
3623
  end
2416
3624
  # Delete an existing set element.
2417
3625
  class DoDelsetelemRequest < ::Nl::Protocols::Raw::Message
2418
3626
  TYPE = 2574
2419
3627
  FIXED_HEADER = Structs::Nfgenmsg
2420
3628
  ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2421
- ATTRIBUTES = Ractor.make_shareable(%i[])
3629
+ ATTRIBUTES = Ractor.make_shareable(%i[table set elements])
2422
3630
  # Gets the value of `nfgen-family` field in the message's fixed header.
2423
3631
  #--
2424
3632
  # @rbs return: ::Integer
@@ -2431,13 +3639,25 @@ class Nftables < ::Nl::Family
2431
3639
  #--
2432
3640
  # @rbs return: ::Integer
2433
3641
  def res_id; fixed_header.res_id; end
3642
+ # Gets the value of `table` attribute in the message.
3643
+ #--
3644
+ # @rbs return: ::String
3645
+ def table; attributes[:"table"]&.value; end
3646
+ # Gets the value of `set` attribute in the message.
3647
+ #--
3648
+ # @rbs return: ::String
3649
+ def set; attributes[:"set"]&.value; end
3650
+ # Gets the value of `elements` attribute in the message.
3651
+ #--
3652
+ # @rbs return: AttributeSets::SetelemListElemAttrs
3653
+ def elements; attributes[:"elements"]&.value; end
2434
3654
  end
2435
3655
  # Delete an existing set element with destroy semantics.
2436
3656
  class DoDestroysetelemRequest < ::Nl::Protocols::Raw::Message
2437
3657
  TYPE = 2590
2438
3658
  FIXED_HEADER = Structs::Nfgenmsg
2439
3659
  ATTRIBUTE_SET = AttributeSets::SetelemListAttrs
2440
- ATTRIBUTES = Ractor.make_shareable(%i[])
3660
+ ATTRIBUTES = Ractor.make_shareable(%i[table set elements])
2441
3661
  # Gets the value of `nfgen-family` field in the message's fixed header.
2442
3662
  #--
2443
3663
  # @rbs return: ::Integer
@@ -2450,6 +3670,18 @@ class Nftables < ::Nl::Family
2450
3670
  #--
2451
3671
  # @rbs return: ::Integer
2452
3672
  def res_id; fixed_header.res_id; end
3673
+ # Gets the value of `table` attribute in the message.
3674
+ #--
3675
+ # @rbs return: ::String
3676
+ def table; attributes[:"table"]&.value; end
3677
+ # Gets the value of `set` attribute in the message.
3678
+ #--
3679
+ # @rbs return: ::String
3680
+ def set; attributes[:"set"]&.value; end
3681
+ # Gets the value of `elements` attribute in the message.
3682
+ #--
3683
+ # @rbs return: AttributeSets::SetelemListElemAttrs
3684
+ def elements; attributes[:"elements"]&.value; end
2453
3685
  end
2454
3686
  # Get / dump rule-set generation.
2455
3687
  class DoGetgenRequest < ::Nl::Protocols::Raw::Message
@@ -2475,7 +3707,38 @@ class Nftables < ::Nl::Family
2475
3707
  TYPE = 2575
2476
3708
  FIXED_HEADER = Structs::Nfgenmsg
2477
3709
  ATTRIBUTE_SET = AttributeSets::GenAttrs
2478
- ATTRIBUTES = Ractor.make_shareable(%i[])
3710
+ ATTRIBUTES = Ractor.make_shareable(%i[id proc_pid proc_name])
3711
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3712
+ #--
3713
+ # @rbs return: ::Integer
3714
+ def nfgen_family; fixed_header.nfgen_family; end
3715
+ # Gets the value of `version` field in the message's fixed header.
3716
+ #--
3717
+ # @rbs return: ::Integer
3718
+ def version; fixed_header.version; end
3719
+ # Gets the value of `res-id` field in the message's fixed header.
3720
+ #--
3721
+ # @rbs return: ::Integer
3722
+ def res_id; fixed_header.res_id; end
3723
+ # Gets the value of `id` attribute in the message.
3724
+ #--
3725
+ # @rbs return: ::Integer
3726
+ def id; attributes[:"id"]&.value; end
3727
+ # Gets the value of `proc-pid` attribute in the message.
3728
+ #--
3729
+ # @rbs return: ::Integer
3730
+ def proc_pid; attributes[:"proc_pid"]&.value; end
3731
+ # Gets the value of `proc-name` attribute in the message.
3732
+ #--
3733
+ # @rbs return: ::String
3734
+ def proc_name; attributes[:"proc_name"]&.value; end
3735
+ end
3736
+ # Get / dump rule-set generation.
3737
+ class DumpGetgenReply < ::Nl::Protocols::Raw::Message
3738
+ TYPE = 2575
3739
+ FIXED_HEADER = Structs::Nfgenmsg
3740
+ ATTRIBUTE_SET = AttributeSets::GenAttrs
3741
+ ATTRIBUTES = Ractor.make_shareable(%i[id proc_pid proc_name])
2479
3742
  # Gets the value of `nfgen-family` field in the message's fixed header.
2480
3743
  #--
2481
3744
  # @rbs return: ::Integer
@@ -2488,13 +3751,25 @@ class Nftables < ::Nl::Family
2488
3751
  #--
2489
3752
  # @rbs return: ::Integer
2490
3753
  def res_id; fixed_header.res_id; end
3754
+ # Gets the value of `id` attribute in the message.
3755
+ #--
3756
+ # @rbs return: ::Integer
3757
+ def id; attributes[:"id"]&.value; end
3758
+ # Gets the value of `proc-pid` attribute in the message.
3759
+ #--
3760
+ # @rbs return: ::Integer
3761
+ def proc_pid; attributes[:"proc_pid"]&.value; end
3762
+ # Gets the value of `proc-name` attribute in the message.
3763
+ #--
3764
+ # @rbs return: ::String
3765
+ def proc_name; attributes[:"proc_name"]&.value; end
2491
3766
  end
2492
3767
  # Create a new stateful object.
2493
3768
  class DoNewobjRequest < ::Nl::Protocols::Raw::Message
2494
3769
  TYPE = 2578
2495
3770
  FIXED_HEADER = Structs::Nfgenmsg
2496
3771
  ATTRIBUTE_SET = AttributeSets::ObjAttrs
2497
- ATTRIBUTES = Ractor.make_shareable(%i[name])
3772
+ ATTRIBUTES = Ractor.make_shareable(%i[table name type data userdata])
2498
3773
  # Gets the value of `nfgen-family` field in the message's fixed header.
2499
3774
  #--
2500
3775
  # @rbs return: ::Integer
@@ -2507,17 +3782,33 @@ class Nftables < ::Nl::Family
2507
3782
  #--
2508
3783
  # @rbs return: ::Integer
2509
3784
  def res_id; fixed_header.res_id; end
3785
+ # Gets the value of `table` attribute in the message.
3786
+ #--
3787
+ # @rbs return: ::String
3788
+ def table; attributes[:"table"]&.value; end
2510
3789
  # Gets the value of `name` attribute in the message.
2511
3790
  #--
2512
3791
  # @rbs return: ::String
2513
3792
  def name; attributes[:"name"]&.value; end
3793
+ # Gets the value of `type` attribute in the message.
3794
+ #--
3795
+ # @rbs return: ::Integer
3796
+ def type; attributes[:"type"]&.value; end
3797
+ # Gets the value of `data` attribute in the message.
3798
+ #--
3799
+ # @rbs return: untyped
3800
+ def data; attributes[:"data"]&.value; end
3801
+ # Gets the value of `userdata` attribute in the message.
3802
+ #--
3803
+ # @rbs return: untyped
3804
+ def userdata; attributes[:"userdata"]&.value; end
2514
3805
  end
2515
3806
  # Get / dump stateful objects.
2516
3807
  class DoGetobjRequest < ::Nl::Protocols::Raw::Message
2517
3808
  TYPE = 2579
2518
3809
  FIXED_HEADER = Structs::Nfgenmsg
2519
3810
  ATTRIBUTE_SET = AttributeSets::ObjAttrs
2520
- ATTRIBUTES = Ractor.make_shareable(%i[name])
3811
+ ATTRIBUTES = Ractor.make_shareable(%i[table name type])
2521
3812
  # Gets the value of `nfgen-family` field in the message's fixed header.
2522
3813
  #--
2523
3814
  # @rbs return: ::Integer
@@ -2530,17 +3821,99 @@ class Nftables < ::Nl::Family
2530
3821
  #--
2531
3822
  # @rbs return: ::Integer
2532
3823
  def res_id; fixed_header.res_id; end
3824
+ # Gets the value of `table` attribute in the message.
3825
+ #--
3826
+ # @rbs return: ::String
3827
+ def table; attributes[:"table"]&.value; end
2533
3828
  # Gets the value of `name` attribute in the message.
2534
3829
  #--
2535
3830
  # @rbs return: ::String
2536
3831
  def name; attributes[:"name"]&.value; end
3832
+ # Gets the value of `type` attribute in the message.
3833
+ #--
3834
+ # @rbs return: ::Integer
3835
+ def type; attributes[:"type"]&.value; end
2537
3836
  end
2538
3837
  # Get / dump stateful objects.
2539
3838
  class DoGetobjReply < ::Nl::Protocols::Raw::Message
2540
3839
  TYPE = 2578
2541
3840
  FIXED_HEADER = Structs::Nfgenmsg
2542
3841
  ATTRIBUTE_SET = AttributeSets::ObjAttrs
2543
- ATTRIBUTES = Ractor.make_shareable(%i[name])
3842
+ ATTRIBUTES = Ractor.make_shareable(%i[table name type data use handle userdata])
3843
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3844
+ #--
3845
+ # @rbs return: ::Integer
3846
+ def nfgen_family; fixed_header.nfgen_family; end
3847
+ # Gets the value of `version` field in the message's fixed header.
3848
+ #--
3849
+ # @rbs return: ::Integer
3850
+ def version; fixed_header.version; end
3851
+ # Gets the value of `res-id` field in the message's fixed header.
3852
+ #--
3853
+ # @rbs return: ::Integer
3854
+ def res_id; fixed_header.res_id; end
3855
+ # Gets the value of `table` attribute in the message.
3856
+ #--
3857
+ # @rbs return: ::String
3858
+ def table; attributes[:"table"]&.value; end
3859
+ # Gets the value of `name` attribute in the message.
3860
+ #--
3861
+ # @rbs return: ::String
3862
+ def name; attributes[:"name"]&.value; end
3863
+ # Gets the value of `type` attribute in the message.
3864
+ #--
3865
+ # @rbs return: ::Integer
3866
+ def type; attributes[:"type"]&.value; end
3867
+ # Gets the value of `data` attribute in the message.
3868
+ #--
3869
+ # @rbs return: untyped
3870
+ def data; attributes[:"data"]&.value; end
3871
+ # Gets the value of `use` attribute in the message.
3872
+ #--
3873
+ # @rbs return: ::Integer
3874
+ def use; attributes[:"use"]&.value; end
3875
+ # Gets the value of `handle` attribute in the message.
3876
+ #--
3877
+ # @rbs return: ::Integer
3878
+ def handle; attributes[:"handle"]&.value; end
3879
+ # Gets the value of `userdata` attribute in the message.
3880
+ #--
3881
+ # @rbs return: untyped
3882
+ def userdata; attributes[:"userdata"]&.value; end
3883
+ end
3884
+ # Get / dump stateful objects.
3885
+ class DumpGetobjRequest < ::Nl::Protocols::Raw::Message
3886
+ TYPE = 2579
3887
+ FIXED_HEADER = Structs::Nfgenmsg
3888
+ ATTRIBUTE_SET = AttributeSets::ObjAttrs
3889
+ ATTRIBUTES = Ractor.make_shareable(%i[table type])
3890
+ # Gets the value of `nfgen-family` field in the message's fixed header.
3891
+ #--
3892
+ # @rbs return: ::Integer
3893
+ def nfgen_family; fixed_header.nfgen_family; end
3894
+ # Gets the value of `version` field in the message's fixed header.
3895
+ #--
3896
+ # @rbs return: ::Integer
3897
+ def version; fixed_header.version; end
3898
+ # Gets the value of `res-id` field in the message's fixed header.
3899
+ #--
3900
+ # @rbs return: ::Integer
3901
+ def res_id; fixed_header.res_id; end
3902
+ # Gets the value of `table` attribute in the message.
3903
+ #--
3904
+ # @rbs return: ::String
3905
+ def table; attributes[:"table"]&.value; end
3906
+ # Gets the value of `type` attribute in the message.
3907
+ #--
3908
+ # @rbs return: ::Integer
3909
+ def type; attributes[:"type"]&.value; end
3910
+ end
3911
+ # Get / dump stateful objects.
3912
+ class DumpGetobjReply < ::Nl::Protocols::Raw::Message
3913
+ TYPE = 2578
3914
+ FIXED_HEADER = Structs::Nfgenmsg
3915
+ ATTRIBUTE_SET = AttributeSets::ObjAttrs
3916
+ ATTRIBUTES = Ractor.make_shareable(%i[table name type data use handle userdata])
2544
3917
  # Gets the value of `nfgen-family` field in the message's fixed header.
2545
3918
  #--
2546
3919
  # @rbs return: ::Integer
@@ -2553,17 +3926,41 @@ class Nftables < ::Nl::Family
2553
3926
  #--
2554
3927
  # @rbs return: ::Integer
2555
3928
  def res_id; fixed_header.res_id; end
3929
+ # Gets the value of `table` attribute in the message.
3930
+ #--
3931
+ # @rbs return: ::String
3932
+ def table; attributes[:"table"]&.value; end
2556
3933
  # Gets the value of `name` attribute in the message.
2557
3934
  #--
2558
3935
  # @rbs return: ::String
2559
3936
  def name; attributes[:"name"]&.value; end
3937
+ # Gets the value of `type` attribute in the message.
3938
+ #--
3939
+ # @rbs return: ::Integer
3940
+ def type; attributes[:"type"]&.value; end
3941
+ # Gets the value of `data` attribute in the message.
3942
+ #--
3943
+ # @rbs return: untyped
3944
+ def data; attributes[:"data"]&.value; end
3945
+ # Gets the value of `use` attribute in the message.
3946
+ #--
3947
+ # @rbs return: ::Integer
3948
+ def use; attributes[:"use"]&.value; end
3949
+ # Gets the value of `handle` attribute in the message.
3950
+ #--
3951
+ # @rbs return: ::Integer
3952
+ def handle; attributes[:"handle"]&.value; end
3953
+ # Gets the value of `userdata` attribute in the message.
3954
+ #--
3955
+ # @rbs return: untyped
3956
+ def userdata; attributes[:"userdata"]&.value; end
2560
3957
  end
2561
3958
  # Delete an existing stateful object.
2562
3959
  class DoDelobjRequest < ::Nl::Protocols::Raw::Message
2563
3960
  TYPE = 2580
2564
3961
  FIXED_HEADER = Structs::Nfgenmsg
2565
3962
  ATTRIBUTE_SET = AttributeSets::ObjAttrs
2566
- ATTRIBUTES = Ractor.make_shareable(%i[name])
3963
+ ATTRIBUTES = Ractor.make_shareable(%i[table name type handle])
2567
3964
  # Gets the value of `nfgen-family` field in the message's fixed header.
2568
3965
  #--
2569
3966
  # @rbs return: ::Integer
@@ -2576,17 +3973,29 @@ class Nftables < ::Nl::Family
2576
3973
  #--
2577
3974
  # @rbs return: ::Integer
2578
3975
  def res_id; fixed_header.res_id; end
3976
+ # Gets the value of `table` attribute in the message.
3977
+ #--
3978
+ # @rbs return: ::String
3979
+ def table; attributes[:"table"]&.value; end
2579
3980
  # Gets the value of `name` attribute in the message.
2580
3981
  #--
2581
3982
  # @rbs return: ::String
2582
3983
  def name; attributes[:"name"]&.value; end
3984
+ # Gets the value of `type` attribute in the message.
3985
+ #--
3986
+ # @rbs return: ::Integer
3987
+ def type; attributes[:"type"]&.value; end
3988
+ # Gets the value of `handle` attribute in the message.
3989
+ #--
3990
+ # @rbs return: ::Integer
3991
+ def handle; attributes[:"handle"]&.value; end
2583
3992
  end
2584
3993
  # Delete an existing stateful object with destroy semantics.
2585
3994
  class DoDestroyobjRequest < ::Nl::Protocols::Raw::Message
2586
3995
  TYPE = 2591
2587
3996
  FIXED_HEADER = Structs::Nfgenmsg
2588
3997
  ATTRIBUTE_SET = AttributeSets::ObjAttrs
2589
- ATTRIBUTES = Ractor.make_shareable(%i[name])
3998
+ ATTRIBUTES = Ractor.make_shareable(%i[table name type handle])
2590
3999
  # Gets the value of `nfgen-family` field in the message's fixed header.
2591
4000
  #--
2592
4001
  # @rbs return: ::Integer
@@ -2599,17 +4008,29 @@ class Nftables < ::Nl::Family
2599
4008
  #--
2600
4009
  # @rbs return: ::Integer
2601
4010
  def res_id; fixed_header.res_id; end
4011
+ # Gets the value of `table` attribute in the message.
4012
+ #--
4013
+ # @rbs return: ::String
4014
+ def table; attributes[:"table"]&.value; end
2602
4015
  # Gets the value of `name` attribute in the message.
2603
4016
  #--
2604
4017
  # @rbs return: ::String
2605
4018
  def name; attributes[:"name"]&.value; end
4019
+ # Gets the value of `type` attribute in the message.
4020
+ #--
4021
+ # @rbs return: ::Integer
4022
+ def type; attributes[:"type"]&.value; end
4023
+ # Gets the value of `handle` attribute in the message.
4024
+ #--
4025
+ # @rbs return: ::Integer
4026
+ def handle; attributes[:"handle"]&.value; end
2606
4027
  end
2607
4028
  # Create a new flow table.
2608
4029
  class DoNewflowtableRequest < ::Nl::Protocols::Raw::Message
2609
4030
  TYPE = 2582
2610
4031
  FIXED_HEADER = Structs::Nfgenmsg
2611
4032
  ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2612
- ATTRIBUTES = Ractor.make_shareable(%i[name])
4033
+ ATTRIBUTES = Ractor.make_shareable(%i[table name hook flags])
2613
4034
  # Gets the value of `nfgen-family` field in the message's fixed header.
2614
4035
  #--
2615
4036
  # @rbs return: ::Integer
@@ -2622,17 +4043,29 @@ class Nftables < ::Nl::Family
2622
4043
  #--
2623
4044
  # @rbs return: ::Integer
2624
4045
  def res_id; fixed_header.res_id; end
4046
+ # Gets the value of `table` attribute in the message.
4047
+ #--
4048
+ # @rbs return: ::String
4049
+ def table; attributes[:"table"]&.value; end
2625
4050
  # Gets the value of `name` attribute in the message.
2626
4051
  #--
2627
4052
  # @rbs return: ::String
2628
4053
  def name; attributes[:"name"]&.value; end
4054
+ # Gets the value of `hook` attribute in the message.
4055
+ #--
4056
+ # @rbs return: AttributeSets::FlowtableHookAttrs
4057
+ def hook; attributes[:"hook"]&.value; end
4058
+ # Gets the value of `flags` attribute in the message.
4059
+ #--
4060
+ # @rbs return: ::Integer
4061
+ def flags; attributes[:"flags"]&.value; end
2629
4062
  end
2630
4063
  # Get / dump flow tables.
2631
4064
  class DoGetflowtableRequest < ::Nl::Protocols::Raw::Message
2632
4065
  TYPE = 2583
2633
4066
  FIXED_HEADER = Structs::Nfgenmsg
2634
4067
  ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2635
- ATTRIBUTES = Ractor.make_shareable(%i[name])
4068
+ ATTRIBUTES = Ractor.make_shareable(%i[table name])
2636
4069
  # Gets the value of `nfgen-family` field in the message's fixed header.
2637
4070
  #--
2638
4071
  # @rbs return: ::Integer
@@ -2645,6 +4078,10 @@ class Nftables < ::Nl::Family
2645
4078
  #--
2646
4079
  # @rbs return: ::Integer
2647
4080
  def res_id; fixed_header.res_id; end
4081
+ # Gets the value of `table` attribute in the message.
4082
+ #--
4083
+ # @rbs return: ::String
4084
+ def table; attributes[:"table"]&.value; end
2648
4085
  # Gets the value of `name` attribute in the message.
2649
4086
  #--
2650
4087
  # @rbs return: ::String
@@ -2655,7 +4092,50 @@ class Nftables < ::Nl::Family
2655
4092
  TYPE = 2582
2656
4093
  FIXED_HEADER = Structs::Nfgenmsg
2657
4094
  ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2658
- ATTRIBUTES = Ractor.make_shareable(%i[name])
4095
+ ATTRIBUTES = Ractor.make_shareable(%i[table name hook use handle flags])
4096
+ # Gets the value of `nfgen-family` field in the message's fixed header.
4097
+ #--
4098
+ # @rbs return: ::Integer
4099
+ def nfgen_family; fixed_header.nfgen_family; end
4100
+ # Gets the value of `version` field in the message's fixed header.
4101
+ #--
4102
+ # @rbs return: ::Integer
4103
+ def version; fixed_header.version; end
4104
+ # Gets the value of `res-id` field in the message's fixed header.
4105
+ #--
4106
+ # @rbs return: ::Integer
4107
+ def res_id; fixed_header.res_id; end
4108
+ # Gets the value of `table` attribute in the message.
4109
+ #--
4110
+ # @rbs return: ::String
4111
+ def table; attributes[:"table"]&.value; end
4112
+ # Gets the value of `name` attribute in the message.
4113
+ #--
4114
+ # @rbs return: ::String
4115
+ def name; attributes[:"name"]&.value; end
4116
+ # Gets the value of `hook` attribute in the message.
4117
+ #--
4118
+ # @rbs return: AttributeSets::FlowtableHookAttrs
4119
+ def hook; attributes[:"hook"]&.value; end
4120
+ # Gets the value of `use` attribute in the message.
4121
+ #--
4122
+ # @rbs return: ::Integer
4123
+ def use; attributes[:"use"]&.value; end
4124
+ # Gets the value of `handle` attribute in the message.
4125
+ #--
4126
+ # @rbs return: ::Integer
4127
+ def handle; attributes[:"handle"]&.value; end
4128
+ # Gets the value of `flags` attribute in the message.
4129
+ #--
4130
+ # @rbs return: ::Integer
4131
+ def flags; attributes[:"flags"]&.value; end
4132
+ end
4133
+ # Get / dump flow tables.
4134
+ class DumpGetflowtableReply < ::Nl::Protocols::Raw::Message
4135
+ TYPE = 2582
4136
+ FIXED_HEADER = Structs::Nfgenmsg
4137
+ ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
4138
+ ATTRIBUTES = Ractor.make_shareable(%i[table name hook use handle flags])
2659
4139
  # Gets the value of `nfgen-family` field in the message's fixed header.
2660
4140
  #--
2661
4141
  # @rbs return: ::Integer
@@ -2668,17 +4148,37 @@ class Nftables < ::Nl::Family
2668
4148
  #--
2669
4149
  # @rbs return: ::Integer
2670
4150
  def res_id; fixed_header.res_id; end
4151
+ # Gets the value of `table` attribute in the message.
4152
+ #--
4153
+ # @rbs return: ::String
4154
+ def table; attributes[:"table"]&.value; end
2671
4155
  # Gets the value of `name` attribute in the message.
2672
4156
  #--
2673
4157
  # @rbs return: ::String
2674
4158
  def name; attributes[:"name"]&.value; end
4159
+ # Gets the value of `hook` attribute in the message.
4160
+ #--
4161
+ # @rbs return: AttributeSets::FlowtableHookAttrs
4162
+ def hook; attributes[:"hook"]&.value; end
4163
+ # Gets the value of `use` attribute in the message.
4164
+ #--
4165
+ # @rbs return: ::Integer
4166
+ def use; attributes[:"use"]&.value; end
4167
+ # Gets the value of `handle` attribute in the message.
4168
+ #--
4169
+ # @rbs return: ::Integer
4170
+ def handle; attributes[:"handle"]&.value; end
4171
+ # Gets the value of `flags` attribute in the message.
4172
+ #--
4173
+ # @rbs return: ::Integer
4174
+ def flags; attributes[:"flags"]&.value; end
2675
4175
  end
2676
4176
  # Delete an existing flow table.
2677
4177
  class DoDelflowtableRequest < ::Nl::Protocols::Raw::Message
2678
4178
  TYPE = 2584
2679
4179
  FIXED_HEADER = Structs::Nfgenmsg
2680
4180
  ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2681
- ATTRIBUTES = Ractor.make_shareable(%i[name])
4181
+ ATTRIBUTES = Ractor.make_shareable(%i[table name hook handle])
2682
4182
  # Gets the value of `nfgen-family` field in the message's fixed header.
2683
4183
  #--
2684
4184
  # @rbs return: ::Integer
@@ -2691,17 +4191,29 @@ class Nftables < ::Nl::Family
2691
4191
  #--
2692
4192
  # @rbs return: ::Integer
2693
4193
  def res_id; fixed_header.res_id; end
4194
+ # Gets the value of `table` attribute in the message.
4195
+ #--
4196
+ # @rbs return: ::String
4197
+ def table; attributes[:"table"]&.value; end
2694
4198
  # Gets the value of `name` attribute in the message.
2695
4199
  #--
2696
4200
  # @rbs return: ::String
2697
4201
  def name; attributes[:"name"]&.value; end
4202
+ # Gets the value of `hook` attribute in the message.
4203
+ #--
4204
+ # @rbs return: AttributeSets::FlowtableHookAttrs
4205
+ def hook; attributes[:"hook"]&.value; end
4206
+ # Gets the value of `handle` attribute in the message.
4207
+ #--
4208
+ # @rbs return: ::Integer
4209
+ def handle; attributes[:"handle"]&.value; end
2698
4210
  end
2699
4211
  # Delete an existing flow table with destroy semantics.
2700
4212
  class DoDestroyflowtableRequest < ::Nl::Protocols::Raw::Message
2701
4213
  TYPE = 2592
2702
4214
  FIXED_HEADER = Structs::Nfgenmsg
2703
4215
  ATTRIBUTE_SET = AttributeSets::FlowtableAttrs
2704
- ATTRIBUTES = Ractor.make_shareable(%i[name])
4216
+ ATTRIBUTES = Ractor.make_shareable(%i[table name hook handle])
2705
4217
  # Gets the value of `nfgen-family` field in the message's fixed header.
2706
4218
  #--
2707
4219
  # @rbs return: ::Integer
@@ -2714,10 +4226,22 @@ class Nftables < ::Nl::Family
2714
4226
  #--
2715
4227
  # @rbs return: ::Integer
2716
4228
  def res_id; fixed_header.res_id; end
4229
+ # Gets the value of `table` attribute in the message.
4230
+ #--
4231
+ # @rbs return: ::String
4232
+ def table; attributes[:"table"]&.value; end
2717
4233
  # Gets the value of `name` attribute in the message.
2718
4234
  #--
2719
4235
  # @rbs return: ::String
2720
4236
  def name; attributes[:"name"]&.value; end
4237
+ # Gets the value of `hook` attribute in the message.
4238
+ #--
4239
+ # @rbs return: AttributeSets::FlowtableHookAttrs
4240
+ def hook; attributes[:"hook"]&.value; end
4241
+ # Gets the value of `handle` attribute in the message.
4242
+ #--
4243
+ # @rbs return: ::Integer
4244
+ def handle; attributes[:"handle"]&.value; end
2721
4245
  end
2722
4246
  end
2723
4247
  # Start a batch of operations
@@ -2734,7 +4258,7 @@ class Nftables < ::Nl::Family
2734
4258
  end
2735
4259
  # Create a new table.
2736
4260
  #--
2737
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4261
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String, ?flags: ::Integer, ?userdata: untyped) -> void
2738
4262
  def do_newtable(**args)
2739
4263
  exchange_message(:"do", Messages::DoNewtableRequest, nil, args)
2740
4264
  end
@@ -2746,123 +4270,158 @@ class Nftables < ::Nl::Family
2746
4270
  end
2747
4271
  # Delete an existing table.
2748
4272
  #--
2749
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4273
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String, ?handle: ::Integer) -> void
2750
4274
  def do_deltable(**args)
2751
4275
  exchange_message(:"do", Messages::DoDeltableRequest, nil, args)
2752
4276
  end
2753
4277
  # Delete an existing table with destroy semantics (ignoring ENOENT
2754
4278
  # errors).
2755
4279
  #--
2756
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4280
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String, ?handle: ::Integer) -> void
2757
4281
  def do_destroytable(**args)
2758
4282
  exchange_message(:"do", Messages::DoDestroytableRequest, nil, args)
2759
4283
  end
2760
4284
  # Create a new chain.
2761
4285
  #--
2762
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4286
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?handle: ::Integer, ?name: ::String, ?hook: AttributeSets::NftHookAttrs, ?policy: ::Integer, ?type: ::String, ?counters: AttributeSets::NftCounterAttrs, ?flags: ::Integer, ?userdata: untyped) -> void
2763
4287
  def do_newchain(**args)
2764
4288
  exchange_message(:"do", Messages::DoNewchainRequest, nil, args)
2765
4289
  end
2766
4290
  # Get / dump chains.
2767
4291
  #--
2768
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> Messages::DoGetchainReply
4292
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String) -> Messages::DoGetchainReply
2769
4293
  def do_getchain(**args)
2770
4294
  exchange_message(:"do", Messages::DoGetchainRequest, Messages::DoGetchainReply, args)
2771
4295
  end
2772
4296
  # Delete an existing chain.
2773
4297
  #--
2774
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4298
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?handle: ::Integer, ?name: ::String, ?hook: AttributeSets::NftHookAttrs) -> void
2775
4299
  def do_delchain(**args)
2776
4300
  exchange_message(:"do", Messages::DoDelchainRequest, nil, args)
2777
4301
  end
2778
4302
  # Delete an existing chain with destroy semantics (ignoring ENOENT
2779
4303
  # errors).
2780
4304
  #--
2781
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4305
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?handle: ::Integer, ?name: ::String, ?hook: AttributeSets::NftHookAttrs) -> void
2782
4306
  def do_destroychain(**args)
2783
4307
  exchange_message(:"do", Messages::DoDestroychainRequest, nil, args)
2784
4308
  end
2785
4309
  # Create a new rule.
2786
4310
  #--
2787
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
4311
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?chain: ::String, ?handle: ::Integer, ?expressions: AttributeSets::ExprListAttrs, ?compat: AttributeSets::RuleCompatAttrs, ?position: ::Integer, ?userdata: untyped, ?position_id: ::Integer, ?chain_id: ::Integer) -> void
2788
4312
  def do_newrule(**args)
2789
4313
  exchange_message(:"do", Messages::DoNewruleRequest, nil, args)
2790
4314
  end
2791
4315
  # Get / dump rules.
2792
4316
  #--
2793
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> Messages::DoGetruleReply
4317
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?chain: ::String, ?handle: ::Integer) -> Messages::DoGetruleReply
2794
4318
  def do_getrule(**args)
2795
4319
  exchange_message(:"do", Messages::DoGetruleRequest, Messages::DoGetruleReply, args)
2796
4320
  end
4321
+ # Get / dump rules.
4322
+ #--
4323
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?chain: ::String) -> Enumerable[Messages::DumpGetruleReply]
4324
+ # | (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?chain: ::String) { (Messages::DumpGetruleReply) -> void } -> void
4325
+ def dump_getrule(**args, &block)
4326
+ exchange_message(:"dump", Messages::DumpGetruleRequest, Messages::DumpGetruleReply, args, &block)
4327
+ end
2797
4328
  # Get / dump rules and reset stateful expressions.
2798
4329
  #--
2799
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> Messages::DoGetruleResetReply
4330
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?chain: ::String, ?handle: ::Integer) -> Messages::DoGetruleResetReply
2800
4331
  def do_getrule_reset(**args)
2801
4332
  exchange_message(:"do", Messages::DoGetruleResetRequest, Messages::DoGetruleResetReply, args)
2802
4333
  end
4334
+ # Get / dump rules and reset stateful expressions.
4335
+ #--
4336
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?chain: ::String, ?handle: ::Integer) -> Enumerable[Messages::DumpGetruleResetReply]
4337
+ # | (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?chain: ::String, ?handle: ::Integer) { (Messages::DumpGetruleResetReply) -> void } -> void
4338
+ def dump_getrule_reset(**args, &block)
4339
+ exchange_message(:"dump", Messages::DumpGetruleResetRequest, Messages::DumpGetruleResetReply, args, &block)
4340
+ end
2803
4341
  # Delete an existing rule.
2804
4342
  #--
2805
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
4343
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?chain: ::String, ?handle: ::Integer, ?id: ::Integer) -> void
2806
4344
  def do_delrule(**args)
2807
4345
  exchange_message(:"do", Messages::DoDelruleRequest, nil, args)
2808
4346
  end
2809
4347
  # Delete an existing rule with destroy semantics (ignoring ENOENT errors).
2810
4348
  #--
2811
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
4349
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?chain: ::String, ?handle: ::Integer, ?id: ::Integer) -> void
2812
4350
  def do_destroyrule(**args)
2813
4351
  exchange_message(:"do", Messages::DoDestroyruleRequest, nil, args)
2814
4352
  end
2815
4353
  # Create a new set.
2816
4354
  #--
2817
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4355
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?flags: ::Integer, ?key_type: ::Integer, ?key_len: ::Integer, ?data_type: ::Integer, ?data_len: ::Integer, ?policy: ::Integer, ?desc: AttributeSets::SetDescAttrs, ?id: ::Integer, ?timeout: ::Integer, ?gc_interval: ::Integer, ?userdata: untyped, ?obj_type: ::Integer) -> void
2818
4356
  def do_newset(**args)
2819
4357
  exchange_message(:"do", Messages::DoNewsetRequest, nil, args)
2820
4358
  end
2821
4359
  # Get / dump sets.
2822
4360
  #--
2823
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> Messages::DoGetsetReply
4361
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String) -> Messages::DoGetsetReply
2824
4362
  def do_getset(**args)
2825
4363
  exchange_message(:"do", Messages::DoGetsetRequest, Messages::DoGetsetReply, args)
2826
4364
  end
4365
+ # Get / dump sets.
4366
+ #--
4367
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String) -> Enumerable[Messages::DumpGetsetReply]
4368
+ # | (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String) { (Messages::DumpGetsetReply) -> void } -> void
4369
+ def dump_getset(**args, &block)
4370
+ exchange_message(:"dump", Messages::DumpGetsetRequest, Messages::DumpGetsetReply, args, &block)
4371
+ end
2827
4372
  # Delete an existing set.
2828
4373
  #--
2829
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4374
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?handle: ::Integer) -> void
2830
4375
  def do_delset(**args)
2831
4376
  exchange_message(:"do", Messages::DoDelsetRequest, nil, args)
2832
4377
  end
2833
4378
  # Delete an existing set with destroy semantics (ignoring ENOENT errors).
2834
4379
  #--
2835
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4380
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?handle: ::Integer) -> void
2836
4381
  def do_destroyset(**args)
2837
4382
  exchange_message(:"do", Messages::DoDestroysetRequest, nil, args)
2838
4383
  end
2839
4384
  # Create a new set element.
2840
4385
  #--
2841
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
4386
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?set: ::String, ?elements: AttributeSets::SetelemListElemAttrs, ?set_id: ::Integer) -> void
2842
4387
  def do_newsetelem(**args)
2843
4388
  exchange_message(:"do", Messages::DoNewsetelemRequest, nil, args)
2844
4389
  end
2845
4390
  # Get / dump set elements.
2846
4391
  #--
2847
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> Messages::DoGetsetelemReply
4392
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?set: ::String, ?elements: AttributeSets::SetelemListElemAttrs) -> Messages::DoGetsetelemReply
2848
4393
  def do_getsetelem(**args)
2849
4394
  exchange_message(:"do", Messages::DoGetsetelemRequest, Messages::DoGetsetelemReply, args)
2850
4395
  end
4396
+ # Get / dump set elements.
4397
+ #--
4398
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?set: ::String) -> Enumerable[Messages::DumpGetsetelemReply]
4399
+ # | (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?set: ::String) { (Messages::DumpGetsetelemReply) -> void } -> void
4400
+ def dump_getsetelem(**args, &block)
4401
+ exchange_message(:"dump", Messages::DumpGetsetelemRequest, Messages::DumpGetsetelemReply, args, &block)
4402
+ end
2851
4403
  # Get / dump set elements and reset stateful expressions.
2852
4404
  #--
2853
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> Messages::DoGetsetelemResetReply
4405
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?elements: AttributeSets::SetelemListElemAttrs) -> Messages::DoGetsetelemResetReply
2854
4406
  def do_getsetelem_reset(**args)
2855
4407
  exchange_message(:"do", Messages::DoGetsetelemResetRequest, Messages::DoGetsetelemResetReply, args)
2856
4408
  end
4409
+ # Get / dump set elements and reset stateful expressions.
4410
+ #--
4411
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?set: ::String) -> Enumerable[Messages::DumpGetsetelemResetReply]
4412
+ # | (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?set: ::String) { (Messages::DumpGetsetelemResetReply) -> void } -> void
4413
+ def dump_getsetelem_reset(**args, &block)
4414
+ exchange_message(:"dump", Messages::DumpGetsetelemResetRequest, Messages::DumpGetsetelemResetReply, args, &block)
4415
+ end
2857
4416
  # Delete an existing set element.
2858
4417
  #--
2859
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
4418
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?set: ::String, ?elements: AttributeSets::SetelemListElemAttrs) -> void
2860
4419
  def do_delsetelem(**args)
2861
4420
  exchange_message(:"do", Messages::DoDelsetelemRequest, nil, args)
2862
4421
  end
2863
4422
  # Delete an existing set element with destroy semantics.
2864
4423
  #--
2865
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer) -> void
4424
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?set: ::String, ?elements: AttributeSets::SetelemListElemAttrs) -> void
2866
4425
  def do_destroysetelem(**args)
2867
4426
  exchange_message(:"do", Messages::DoDestroysetelemRequest, nil, args)
2868
4427
  end
@@ -2874,49 +4433,56 @@ class Nftables < ::Nl::Family
2874
4433
  end
2875
4434
  # Create a new stateful object.
2876
4435
  #--
2877
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4436
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?type: ::Integer, ?data: untyped, ?userdata: untyped) -> void
2878
4437
  def do_newobj(**args)
2879
4438
  exchange_message(:"do", Messages::DoNewobjRequest, nil, args)
2880
4439
  end
2881
4440
  # Get / dump stateful objects.
2882
4441
  #--
2883
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> Messages::DoGetobjReply
4442
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?type: ::Integer) -> Messages::DoGetobjReply
2884
4443
  def do_getobj(**args)
2885
4444
  exchange_message(:"do", Messages::DoGetobjRequest, Messages::DoGetobjReply, args)
2886
4445
  end
4446
+ # Get / dump stateful objects.
4447
+ #--
4448
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?type: ::Integer) -> Enumerable[Messages::DumpGetobjReply]
4449
+ # | (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?type: ::Integer) { (Messages::DumpGetobjReply) -> void } -> void
4450
+ def dump_getobj(**args, &block)
4451
+ exchange_message(:"dump", Messages::DumpGetobjRequest, Messages::DumpGetobjReply, args, &block)
4452
+ end
2887
4453
  # Delete an existing stateful object.
2888
4454
  #--
2889
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4455
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?type: ::Integer, ?handle: ::Integer) -> void
2890
4456
  def do_delobj(**args)
2891
4457
  exchange_message(:"do", Messages::DoDelobjRequest, nil, args)
2892
4458
  end
2893
4459
  # Delete an existing stateful object with destroy semantics.
2894
4460
  #--
2895
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4461
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?type: ::Integer, ?handle: ::Integer) -> void
2896
4462
  def do_destroyobj(**args)
2897
4463
  exchange_message(:"do", Messages::DoDestroyobjRequest, nil, args)
2898
4464
  end
2899
4465
  # Create a new flow table.
2900
4466
  #--
2901
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4467
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?hook: AttributeSets::FlowtableHookAttrs, ?flags: ::Integer) -> void
2902
4468
  def do_newflowtable(**args)
2903
4469
  exchange_message(:"do", Messages::DoNewflowtableRequest, nil, args)
2904
4470
  end
2905
4471
  # Get / dump flow tables.
2906
4472
  #--
2907
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> Messages::DoGetflowtableReply
4473
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String) -> Messages::DoGetflowtableReply
2908
4474
  def do_getflowtable(**args)
2909
4475
  exchange_message(:"do", Messages::DoGetflowtableRequest, Messages::DoGetflowtableReply, args)
2910
4476
  end
2911
4477
  # Delete an existing flow table.
2912
4478
  #--
2913
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4479
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?hook: AttributeSets::FlowtableHookAttrs, ?handle: ::Integer) -> void
2914
4480
  def do_delflowtable(**args)
2915
4481
  exchange_message(:"do", Messages::DoDelflowtableRequest, nil, args)
2916
4482
  end
2917
4483
  # Delete an existing flow table with destroy semantics.
2918
4484
  #--
2919
- # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?name: ::String) -> void
4485
+ # @rbs (?nfgen_family: ::Integer, ?version: ::Integer, ?res_id: ::Integer, ?table: ::String, ?name: ::String, ?hook: AttributeSets::FlowtableHookAttrs, ?handle: ::Integer) -> void
2920
4486
  def do_destroyflowtable(**args)
2921
4487
  exchange_message(:"do", Messages::DoDestroyflowtableRequest, nil, args)
2922
4488
  end