nl-linux 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/NLSPEC_VERSION +1 -1
- data/generated/nl/linux/binder.rb +103 -187
- data/generated/nl/linux/conntrack.rb +1053 -1649
- data/generated/nl/linux/dev_energymodel.rb +303 -265
- data/generated/nl/linux/devlink.rb +4904 -5576
- data/generated/nl/linux/dpll.rb +1097 -1467
- data/generated/nl/linux/drm_ras.rb +235 -195
- data/generated/nl/linux/ethtool.rb +6652 -7415
- data/generated/nl/linux/fou.rb +234 -255
- data/generated/nl/linux/handshake.rb +208 -280
- data/generated/nl/linux/lockd.rb +99 -73
- data/generated/nl/linux/mptcp_pm.rb +589 -687
- data/generated/nl/linux/net_shaper.rb +520 -615
- data/generated/nl/linux/netdev.rb +1640 -1987
- data/generated/nl/linux/nfsd.rb +1341 -1215
- data/generated/nl/linux/nftables.rb +5143 -4870
- data/generated/nl/linux/nl80211.rb +2542 -6316
- data/generated/nl/linux/nlctrl.rb +338 -483
- data/generated/nl/linux/ovpn.rb +1006 -1522
- data/generated/nl/linux/ovs_datapath.rb +291 -186
- data/generated/nl/linux/ovs_flow.rb +1393 -2065
- data/generated/nl/linux/ovs_packet.rb +186 -223
- data/generated/nl/linux/ovs_vport.rb +328 -285
- data/generated/nl/linux/psp.rb +812 -717
- data/generated/nl/linux/rt_addr.rb +513 -243
- data/generated/nl/linux/rt_link.rb +4504 -7238
- data/generated/nl/linux/rt_neigh.rb +935 -847
- data/generated/nl/linux/rt_route.rb +1198 -871
- data/generated/nl/linux/rt_rule.rb +680 -659
- data/generated/nl/linux/sunrpc_cache.rb +323 -321
- data/generated/nl/linux/tc.rb +9058 -10454
- data/generated/nl/linux/tcp_metrics.rb +258 -367
- data/generated/nl/linux/team.rb +327 -345
- data/generated/nl/linux/wireguard.rb +270 -434
- data/lib/nl/linux/nlctrl_resolver.rb +1 -1
- data/lib/nl/linux/version.rb +1 -1
- data/linux/conntrack.yaml +18 -3
- data/linux/devlink.yaml +26 -4
- data/linux/dpll.yaml +19 -0
- data/linux/netdev.yaml +21 -0
- data/linux/nfsd.yaml +111 -0
- data/linux/nl80211.yaml +2 -2
- data/linux/rt-addr.yaml +4 -0
- data/linux/rt-link.yaml +7 -0
- data/linux/rt-neigh.yaml +3 -0
- data/linux/rt-route.yaml +83 -2
- data/sig/generated/nl/linux/binder.rbs +77 -220
- data/sig/generated/nl/linux/conntrack.rbs +770 -1954
- data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
- data/sig/generated/nl/linux/devlink.rbs +3318 -6068
- data/sig/generated/nl/linux/dpll.rbs +791 -1589
- data/sig/generated/nl/linux/drm_ras.rbs +160 -208
- data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
- data/sig/generated/nl/linux/fou.rbs +139 -254
- data/sig/generated/nl/linux/handshake.rbs +144 -319
- data/sig/generated/nl/linux/lockd.rbs +64 -74
- data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
- data/sig/generated/nl/linux/net_shaper.rbs +351 -644
- data/sig/generated/nl/linux/netdev.rbs +1151 -2146
- data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
- data/sig/generated/nl/linux/nftables.rbs +2907 -5030
- data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
- data/sig/generated/nl/linux/nlctrl.rbs +220 -544
- data/sig/generated/nl/linux/ovpn.rbs +835 -1859
- data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
- data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
- data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
- data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
- data/sig/generated/nl/linux/psp.rbs +550 -741
- data/sig/generated/nl/linux/rt_addr.rbs +188 -226
- data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
- data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
- data/sig/generated/nl/linux/rt_route.rbs +632 -862
- data/sig/generated/nl/linux/rt_rule.rbs +217 -639
- data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
- data/sig/generated/nl/linux/tc.rbs +6199 -13391
- data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
- data/sig/generated/nl/linux/team.rbs +232 -391
- data/sig/generated/nl/linux/wireguard.rbs +197 -502
- metadata +6 -6
|
@@ -50,6 +50,10 @@ module Nl
|
|
|
50
50
|
# @private
|
|
51
51
|
MEMBERS: Hash[::Symbol, ::Nl::_DataType]
|
|
52
52
|
|
|
53
|
+
# @private
|
|
54
|
+
# @rbs (Hash[Symbol, untyped] params, ?context: untyped) -> instance
|
|
55
|
+
def self.from_params: (Hash[Symbol, untyped] params, ?context: untyped) -> instance
|
|
56
|
+
|
|
53
57
|
# Decodes the struct.
|
|
54
58
|
# @rbs decoder: ::Nl::Decoder
|
|
55
59
|
# @rbs return: instance
|
|
@@ -68,231 +72,84 @@ module Nl
|
|
|
68
72
|
|
|
69
73
|
module AttributeSets
|
|
70
74
|
class Packet < ::Nl::AttributeSet
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
# @
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
#
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
# @
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
#
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
ORDER: ::Integer
|
|
125
|
-
|
|
126
|
-
# @private
|
|
127
|
-
DATATYPE: untyped
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
# Nested OVS_TUNNEL_KEY_ATTR_* for output tunnel metadata.
|
|
131
|
-
class EgressTunKey < Attribute
|
|
132
|
-
TYPE: ::Integer
|
|
133
|
-
|
|
134
|
-
NAME: ::Symbol
|
|
135
|
-
|
|
136
|
-
# @private
|
|
137
|
-
ORDER: ::Integer
|
|
138
|
-
|
|
139
|
-
# @private
|
|
140
|
-
DATATYPE: untyped
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
# Packet operation is a feature probe, error logging suppressed.
|
|
144
|
-
class Probe < Attribute
|
|
145
|
-
TYPE: ::Integer
|
|
146
|
-
|
|
147
|
-
NAME: ::Symbol
|
|
148
|
-
|
|
149
|
-
# @private
|
|
150
|
-
ORDER: ::Integer
|
|
151
|
-
|
|
152
|
-
# @private
|
|
153
|
-
DATATYPE: untyped
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
# Maximum received IP fragment size.
|
|
157
|
-
class Mru < Attribute
|
|
158
|
-
TYPE: ::Integer
|
|
159
|
-
|
|
160
|
-
NAME: ::Symbol
|
|
161
|
-
|
|
162
|
-
# @private
|
|
163
|
-
ORDER: ::Integer
|
|
164
|
-
|
|
165
|
-
# @private
|
|
166
|
-
DATATYPE: untyped
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
# Packet size before truncation.
|
|
170
|
-
class Len < Attribute
|
|
171
|
-
TYPE: ::Integer
|
|
172
|
-
|
|
173
|
-
NAME: ::Symbol
|
|
174
|
-
|
|
175
|
-
# @private
|
|
176
|
-
ORDER: ::Integer
|
|
177
|
-
|
|
178
|
-
# @private
|
|
179
|
-
DATATYPE: untyped
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# Packet hash, low 32 bits are skb hash, upper bits are flags.
|
|
183
|
-
class Hash < Attribute
|
|
184
|
-
TYPE: ::Integer
|
|
185
|
-
|
|
186
|
-
NAME: ::Symbol
|
|
187
|
-
|
|
188
|
-
# @private
|
|
189
|
-
ORDER: ::Integer
|
|
190
|
-
|
|
191
|
-
# @private
|
|
192
|
-
DATATYPE: untyped
|
|
75
|
+
module Definitions
|
|
76
|
+
# Packet data, from the start of the Ethernet header.
|
|
77
|
+
# @rbs return: ::String
|
|
78
|
+
# @return [String]
|
|
79
|
+
def packet: () -> ::String
|
|
80
|
+
|
|
81
|
+
# Nested OVS_KEY_ATTR_* attributes, extracted flow key.
|
|
82
|
+
# Defined as binary because the key attribute-set belongs to the
|
|
83
|
+
# ovs_flow family spec; cross-spec references are not supported.
|
|
84
|
+
# @rbs return: ::String
|
|
85
|
+
# @return [String]
|
|
86
|
+
def key: () -> ::String
|
|
87
|
+
|
|
88
|
+
# Nested OVS_ACTION_ATTR_* attributes.
|
|
89
|
+
# Defined as binary for the same reason as key.
|
|
90
|
+
# @rbs return: ::String
|
|
91
|
+
# @return [String]
|
|
92
|
+
def actions: () -> ::String
|
|
93
|
+
|
|
94
|
+
# Opaque userspace cookie from OVS_USERSPACE_ATTR_USERDATA.
|
|
95
|
+
# @rbs return: ::String
|
|
96
|
+
# @return [String]
|
|
97
|
+
def userdata: () -> ::String
|
|
98
|
+
|
|
99
|
+
# Nested OVS_TUNNEL_KEY_ATTR_* for output tunnel metadata.
|
|
100
|
+
# @rbs return: ::String
|
|
101
|
+
# @return [String]
|
|
102
|
+
def egress_tun_key: () -> ::String
|
|
103
|
+
|
|
104
|
+
# Packet operation is a feature probe, error logging suppressed.
|
|
105
|
+
# @rbs return: ::Integer
|
|
106
|
+
# @return [Integer]
|
|
107
|
+
def probe: () -> ::Integer
|
|
108
|
+
|
|
109
|
+
# Maximum received IP fragment size.
|
|
110
|
+
# @rbs return: ::Integer
|
|
111
|
+
# @return [Integer]
|
|
112
|
+
def mru: () -> ::Integer
|
|
113
|
+
|
|
114
|
+
# Packet size before truncation.
|
|
115
|
+
# @rbs return: ::Integer
|
|
116
|
+
# @return [Integer]
|
|
117
|
+
def len: () -> ::Integer
|
|
118
|
+
|
|
119
|
+
# Packet hash, low 32 bits are skb hash, upper bits are flags.
|
|
120
|
+
# @rbs return: ::Integer
|
|
121
|
+
# @return [Integer]
|
|
122
|
+
def hash: () -> ::Integer
|
|
123
|
+
|
|
124
|
+
# Netlink PID to use for upcalls during EXECUTE processing.
|
|
125
|
+
# @rbs return: ::Integer
|
|
126
|
+
# @return [Integer]
|
|
127
|
+
def upcall_pid: () -> ::Integer
|
|
193
128
|
end
|
|
194
129
|
|
|
195
|
-
|
|
196
|
-
class UpcallPid < Attribute
|
|
197
|
-
TYPE: ::Integer
|
|
130
|
+
include Definitions
|
|
198
131
|
|
|
199
|
-
|
|
132
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
133
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
134
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
135
|
+
end
|
|
136
|
+
end
|
|
200
137
|
|
|
138
|
+
module AttributeSets
|
|
139
|
+
class Packet
|
|
140
|
+
module Definitions
|
|
201
141
|
# @private
|
|
202
|
-
|
|
142
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
203
143
|
|
|
204
144
|
# @private
|
|
205
|
-
|
|
145
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
206
146
|
end
|
|
207
|
-
|
|
208
|
-
# @private
|
|
209
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
210
|
-
|
|
211
|
-
# @private
|
|
212
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
213
|
-
|
|
214
|
-
# Packet data, from the start of the Ethernet header.
|
|
215
|
-
# @rbs return: ::String
|
|
216
|
-
# @return [String]
|
|
217
|
-
# @see Packet
|
|
218
|
-
def packet: () -> ::String
|
|
219
|
-
|
|
220
|
-
# Nested OVS_KEY_ATTR_* attributes, extracted flow key.
|
|
221
|
-
# Defined as binary because the key attribute-set belongs to the
|
|
222
|
-
# ovs_flow family spec; cross-spec references are not supported.
|
|
223
|
-
# @rbs return: ::String
|
|
224
|
-
# @return [String]
|
|
225
|
-
# @see Key
|
|
226
|
-
def key: () -> ::String
|
|
227
|
-
|
|
228
|
-
# Nested OVS_ACTION_ATTR_* attributes.
|
|
229
|
-
# Defined as binary for the same reason as key.
|
|
230
|
-
# @rbs return: ::String
|
|
231
|
-
# @return [String]
|
|
232
|
-
# @see Actions
|
|
233
|
-
def actions: () -> ::String
|
|
234
|
-
|
|
235
|
-
# Opaque userspace cookie from OVS_USERSPACE_ATTR_USERDATA.
|
|
236
|
-
# @rbs return: ::String
|
|
237
|
-
# @return [String]
|
|
238
|
-
# @see Userdata
|
|
239
|
-
def userdata: () -> ::String
|
|
240
|
-
|
|
241
|
-
# Nested OVS_TUNNEL_KEY_ATTR_* for output tunnel metadata.
|
|
242
|
-
# @rbs return: ::String
|
|
243
|
-
# @return [String]
|
|
244
|
-
# @see EgressTunKey
|
|
245
|
-
def egress_tun_key: () -> ::String
|
|
246
|
-
|
|
247
|
-
# Packet operation is a feature probe, error logging suppressed.
|
|
248
|
-
# @rbs return: ::Integer
|
|
249
|
-
# @return [Integer]
|
|
250
|
-
# @see Probe
|
|
251
|
-
def probe: () -> ::Integer
|
|
252
|
-
|
|
253
|
-
# Maximum received IP fragment size.
|
|
254
|
-
# @rbs return: ::Integer
|
|
255
|
-
# @return [Integer]
|
|
256
|
-
# @see Mru
|
|
257
|
-
def mru: () -> ::Integer
|
|
258
|
-
|
|
259
|
-
# Packet size before truncation.
|
|
260
|
-
# @rbs return: ::Integer
|
|
261
|
-
# @return [Integer]
|
|
262
|
-
# @see Len
|
|
263
|
-
def len: () -> ::Integer
|
|
264
|
-
|
|
265
|
-
# Packet hash, low 32 bits are skb hash, upper bits are flags.
|
|
266
|
-
# @rbs return: ::Integer
|
|
267
|
-
# @return [Integer]
|
|
268
|
-
# @see Hash
|
|
269
|
-
def hash: () -> ::Integer
|
|
270
|
-
|
|
271
|
-
# Netlink PID to use for upcalls during EXECUTE processing.
|
|
272
|
-
# @rbs return: ::Integer
|
|
273
|
-
# @return [Integer]
|
|
274
|
-
# @see UpcallPid
|
|
275
|
-
def upcall_pid: () -> ::Integer
|
|
276
|
-
|
|
277
|
-
# Looks up Attribute class by name.
|
|
278
|
-
# @rbs name: Symbol
|
|
279
|
-
# @rbs return: Attribute
|
|
280
|
-
# @param [Symbol] name
|
|
281
|
-
# @return [Attribute]
|
|
282
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
283
|
-
|
|
284
|
-
# Looks up Attribute class by type value.
|
|
285
|
-
# @rbs type: Integer
|
|
286
|
-
# @rbs return: Attribute
|
|
287
|
-
# @param [Integer] type
|
|
288
|
-
# @return [Attribute]
|
|
289
|
-
def self.by_type: (Integer type) -> Attribute
|
|
290
147
|
end
|
|
291
148
|
end
|
|
292
149
|
|
|
293
150
|
module Messages
|
|
294
151
|
# Apply actions to a packet.
|
|
295
|
-
class DoExecuteRequest < ::Nl::
|
|
152
|
+
class DoExecuteRequest < ::Nl::Message
|
|
296
153
|
TYPE: ::Integer
|
|
297
154
|
|
|
298
155
|
FIXED_HEADER: untyped
|
|
@@ -301,6 +158,19 @@ module Nl
|
|
|
301
158
|
|
|
302
159
|
ATTRIBUTES: untyped
|
|
303
160
|
|
|
161
|
+
include ATTRIBUTE_SET::Definitions
|
|
162
|
+
|
|
163
|
+
def initialize: (untyped dp_ifindex, ?untyped attributes) -> untyped
|
|
164
|
+
|
|
165
|
+
# @private
|
|
166
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
167
|
+
|
|
168
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
169
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
170
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
171
|
+
|
|
172
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
173
|
+
|
|
304
174
|
# @rbs return: ::Integer
|
|
305
175
|
# @return [Integer]
|
|
306
176
|
def dp_ifindex: () -> ::Integer
|
|
@@ -308,7 +178,6 @@ module Nl
|
|
|
308
178
|
# Packet data, from the start of the Ethernet header.
|
|
309
179
|
# @rbs return: ::String
|
|
310
180
|
# @return [String]
|
|
311
|
-
# @see AttributeSets::Packet::Packet
|
|
312
181
|
def packet: () -> ::String
|
|
313
182
|
|
|
314
183
|
# Nested OVS_KEY_ATTR_* attributes, extracted flow key.
|
|
@@ -316,45 +185,39 @@ module Nl
|
|
|
316
185
|
# ovs_flow family spec; cross-spec references are not supported.
|
|
317
186
|
# @rbs return: ::String
|
|
318
187
|
# @return [String]
|
|
319
|
-
# @see AttributeSets::Packet::Key
|
|
320
188
|
def key: () -> ::String
|
|
321
189
|
|
|
322
190
|
# Nested OVS_ACTION_ATTR_* attributes.
|
|
323
191
|
# Defined as binary for the same reason as key.
|
|
324
192
|
# @rbs return: ::String
|
|
325
193
|
# @return [String]
|
|
326
|
-
# @see AttributeSets::Packet::Actions
|
|
327
194
|
def actions: () -> ::String
|
|
328
195
|
|
|
329
196
|
# Packet operation is a feature probe, error logging suppressed.
|
|
330
197
|
# @rbs return: ::Integer
|
|
331
198
|
# @return [Integer]
|
|
332
|
-
# @see AttributeSets::Packet::Probe
|
|
333
199
|
def probe: () -> ::Integer
|
|
334
200
|
|
|
335
201
|
# Maximum received IP fragment size.
|
|
336
202
|
# @rbs return: ::Integer
|
|
337
203
|
# @return [Integer]
|
|
338
|
-
# @see AttributeSets::Packet::Mru
|
|
339
204
|
def mru: () -> ::Integer
|
|
340
205
|
|
|
341
206
|
# Packet hash, low 32 bits are skb hash, upper bits are flags.
|
|
342
207
|
# @rbs return: ::Integer
|
|
343
208
|
# @return [Integer]
|
|
344
|
-
# @see AttributeSets::Packet::Hash
|
|
345
209
|
def hash: () -> ::Integer
|
|
346
210
|
|
|
347
211
|
# Netlink PID to use for upcalls during EXECUTE processing.
|
|
348
212
|
# @rbs return: ::Integer
|
|
349
213
|
# @return [Integer]
|
|
350
|
-
# @see AttributeSets::Packet::UpcallPid
|
|
351
214
|
def upcall_pid: () -> ::Integer
|
|
352
215
|
end
|
|
353
216
|
end
|
|
354
217
|
|
|
355
218
|
module Notifications
|
|
356
219
|
# Notify userspace of a flow table miss for a received packet.
|
|
357
|
-
class Miss < ::Nl::
|
|
220
|
+
class Miss < ::Nl::Message
|
|
358
221
|
TYPE: ::Integer
|
|
359
222
|
|
|
360
223
|
FIXED_HEADER: untyped
|
|
@@ -363,6 +226,19 @@ module Nl
|
|
|
363
226
|
|
|
364
227
|
ATTRIBUTES: untyped
|
|
365
228
|
|
|
229
|
+
include ATTRIBUTE_SET::Definitions
|
|
230
|
+
|
|
231
|
+
def initialize: (untyped dp_ifindex, ?untyped attributes) -> untyped
|
|
232
|
+
|
|
233
|
+
# @private
|
|
234
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
235
|
+
|
|
236
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
237
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
238
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
239
|
+
|
|
240
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
241
|
+
|
|
366
242
|
# @rbs return: ::Integer
|
|
367
243
|
# @return [Integer]
|
|
368
244
|
def dp_ifindex: () -> ::Integer
|
|
@@ -370,7 +246,6 @@ module Nl
|
|
|
370
246
|
# Packet data, from the start of the Ethernet header.
|
|
371
247
|
# @rbs return: ::String
|
|
372
248
|
# @return [String]
|
|
373
|
-
# @see AttributeSets::Packet::Packet
|
|
374
249
|
def packet: () -> ::String
|
|
375
250
|
|
|
376
251
|
# Nested OVS_KEY_ATTR_* attributes, extracted flow key.
|
|
@@ -378,49 +253,42 @@ module Nl
|
|
|
378
253
|
# ovs_flow family spec; cross-spec references are not supported.
|
|
379
254
|
# @rbs return: ::String
|
|
380
255
|
# @return [String]
|
|
381
|
-
# @see AttributeSets::Packet::Key
|
|
382
256
|
def key: () -> ::String
|
|
383
257
|
|
|
384
258
|
# Nested OVS_ACTION_ATTR_* attributes.
|
|
385
259
|
# Defined as binary for the same reason as key.
|
|
386
260
|
# @rbs return: ::String
|
|
387
261
|
# @return [String]
|
|
388
|
-
# @see AttributeSets::Packet::Actions
|
|
389
262
|
def actions: () -> ::String
|
|
390
263
|
|
|
391
264
|
# Opaque userspace cookie from OVS_USERSPACE_ATTR_USERDATA.
|
|
392
265
|
# @rbs return: ::String
|
|
393
266
|
# @return [String]
|
|
394
|
-
# @see AttributeSets::Packet::Userdata
|
|
395
267
|
def userdata: () -> ::String
|
|
396
268
|
|
|
397
269
|
# Nested OVS_TUNNEL_KEY_ATTR_* for output tunnel metadata.
|
|
398
270
|
# @rbs return: ::String
|
|
399
271
|
# @return [String]
|
|
400
|
-
# @see AttributeSets::Packet::EgressTunKey
|
|
401
272
|
def egress_tun_key: () -> ::String
|
|
402
273
|
|
|
403
274
|
# Maximum received IP fragment size.
|
|
404
275
|
# @rbs return: ::Integer
|
|
405
276
|
# @return [Integer]
|
|
406
|
-
# @see AttributeSets::Packet::Mru
|
|
407
277
|
def mru: () -> ::Integer
|
|
408
278
|
|
|
409
279
|
# Packet size before truncation.
|
|
410
280
|
# @rbs return: ::Integer
|
|
411
281
|
# @return [Integer]
|
|
412
|
-
# @see AttributeSets::Packet::Len
|
|
413
282
|
def len: () -> ::Integer
|
|
414
283
|
|
|
415
284
|
# Packet hash, low 32 bits are skb hash, upper bits are flags.
|
|
416
285
|
# @rbs return: ::Integer
|
|
417
286
|
# @return [Integer]
|
|
418
|
-
# @see AttributeSets::Packet::Hash
|
|
419
287
|
def hash: () -> ::Integer
|
|
420
288
|
end
|
|
421
289
|
|
|
422
290
|
# Notify userspace as requested by an OVS_ACTION_ATTR_USERSPACE action.
|
|
423
|
-
class Action < ::Nl::
|
|
291
|
+
class Action < ::Nl::Message
|
|
424
292
|
TYPE: ::Integer
|
|
425
293
|
|
|
426
294
|
FIXED_HEADER: untyped
|
|
@@ -429,6 +297,19 @@ module Nl
|
|
|
429
297
|
|
|
430
298
|
ATTRIBUTES: untyped
|
|
431
299
|
|
|
300
|
+
include ATTRIBUTE_SET::Definitions
|
|
301
|
+
|
|
302
|
+
def initialize: (untyped dp_ifindex, ?untyped attributes) -> untyped
|
|
303
|
+
|
|
304
|
+
# @private
|
|
305
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
306
|
+
|
|
307
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
308
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
309
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
310
|
+
|
|
311
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
312
|
+
|
|
432
313
|
# @rbs return: ::Integer
|
|
433
314
|
# @return [Integer]
|
|
434
315
|
def dp_ifindex: () -> ::Integer
|
|
@@ -436,7 +317,6 @@ module Nl
|
|
|
436
317
|
# Packet data, from the start of the Ethernet header.
|
|
437
318
|
# @rbs return: ::String
|
|
438
319
|
# @return [String]
|
|
439
|
-
# @see AttributeSets::Packet::Packet
|
|
440
320
|
def packet: () -> ::String
|
|
441
321
|
|
|
442
322
|
# Nested OVS_KEY_ATTR_* attributes, extracted flow key.
|
|
@@ -444,44 +324,37 @@ module Nl
|
|
|
444
324
|
# ovs_flow family spec; cross-spec references are not supported.
|
|
445
325
|
# @rbs return: ::String
|
|
446
326
|
# @return [String]
|
|
447
|
-
# @see AttributeSets::Packet::Key
|
|
448
327
|
def key: () -> ::String
|
|
449
328
|
|
|
450
329
|
# Nested OVS_ACTION_ATTR_* attributes.
|
|
451
330
|
# Defined as binary for the same reason as key.
|
|
452
331
|
# @rbs return: ::String
|
|
453
332
|
# @return [String]
|
|
454
|
-
# @see AttributeSets::Packet::Actions
|
|
455
333
|
def actions: () -> ::String
|
|
456
334
|
|
|
457
335
|
# Opaque userspace cookie from OVS_USERSPACE_ATTR_USERDATA.
|
|
458
336
|
# @rbs return: ::String
|
|
459
337
|
# @return [String]
|
|
460
|
-
# @see AttributeSets::Packet::Userdata
|
|
461
338
|
def userdata: () -> ::String
|
|
462
339
|
|
|
463
340
|
# Nested OVS_TUNNEL_KEY_ATTR_* for output tunnel metadata.
|
|
464
341
|
# @rbs return: ::String
|
|
465
342
|
# @return [String]
|
|
466
|
-
# @see AttributeSets::Packet::EgressTunKey
|
|
467
343
|
def egress_tun_key: () -> ::String
|
|
468
344
|
|
|
469
345
|
# Maximum received IP fragment size.
|
|
470
346
|
# @rbs return: ::Integer
|
|
471
347
|
# @return [Integer]
|
|
472
|
-
# @see AttributeSets::Packet::Mru
|
|
473
348
|
def mru: () -> ::Integer
|
|
474
349
|
|
|
475
350
|
# Packet size before truncation.
|
|
476
351
|
# @rbs return: ::Integer
|
|
477
352
|
# @return [Integer]
|
|
478
|
-
# @see AttributeSets::Packet::Len
|
|
479
353
|
def len: () -> ::Integer
|
|
480
354
|
|
|
481
355
|
# Packet hash, low 32 bits are skb hash, upper bits are flags.
|
|
482
356
|
# @rbs return: ::Integer
|
|
483
357
|
# @return [Integer]
|
|
484
|
-
# @see AttributeSets::Packet::Hash
|
|
485
358
|
def hash: () -> ::Integer
|
|
486
359
|
end
|
|
487
360
|
end
|