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
|
@@ -63,331 +63,124 @@ module Nl
|
|
|
63
63
|
|
|
64
64
|
module AttributeSets
|
|
65
65
|
class X509 < ::Nl::AttributeSet
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
module Definitions
|
|
67
|
+
# @rbs return: ::Integer
|
|
68
|
+
# @return [Integer]
|
|
69
|
+
def cert: () -> ::Integer
|
|
70
|
+
|
|
71
|
+
# @rbs return: ::Integer
|
|
72
|
+
# @return [Integer]
|
|
73
|
+
def privkey: () -> ::Integer
|
|
68
74
|
end
|
|
69
75
|
|
|
70
|
-
|
|
71
|
-
TYPE: ::Integer
|
|
76
|
+
include Definitions
|
|
72
77
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
ORDER: ::Integer
|
|
77
|
-
|
|
78
|
-
# @private
|
|
79
|
-
DATATYPE: untyped
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
class Privkey < Attribute
|
|
83
|
-
TYPE: ::Integer
|
|
84
|
-
|
|
85
|
-
NAME: ::Symbol
|
|
86
|
-
|
|
87
|
-
# @private
|
|
88
|
-
ORDER: ::Integer
|
|
89
|
-
|
|
90
|
-
# @private
|
|
91
|
-
DATATYPE: untyped
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
# @private
|
|
95
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
96
|
-
|
|
97
|
-
# @private
|
|
98
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
99
|
-
|
|
100
|
-
# @rbs return: ::Integer
|
|
101
|
-
# @return [Integer]
|
|
102
|
-
# @see Cert
|
|
103
|
-
def cert: () -> ::Integer
|
|
104
|
-
|
|
105
|
-
# @rbs return: ::Integer
|
|
106
|
-
# @return [Integer]
|
|
107
|
-
# @see Privkey
|
|
108
|
-
def privkey: () -> ::Integer
|
|
109
|
-
|
|
110
|
-
# Looks up Attribute class by name.
|
|
111
|
-
# @rbs name: Symbol
|
|
112
|
-
# @rbs return: Attribute
|
|
113
|
-
# @param [Symbol] name
|
|
114
|
-
# @return [Attribute]
|
|
115
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
116
|
-
|
|
117
|
-
# Looks up Attribute class by type value.
|
|
118
|
-
# @rbs type: Integer
|
|
119
|
-
# @rbs return: Attribute
|
|
120
|
-
# @param [Integer] type
|
|
121
|
-
# @return [Attribute]
|
|
122
|
-
def self.by_type: (Integer type) -> Attribute
|
|
78
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
79
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
80
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
123
81
|
end
|
|
124
82
|
|
|
125
83
|
class Accept < ::Nl::AttributeSet
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
# @
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
# @
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
DATATYPE: untyped
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
class Timeout < Attribute
|
|
169
|
-
TYPE: ::Integer
|
|
170
|
-
|
|
171
|
-
NAME: ::Symbol
|
|
172
|
-
|
|
173
|
-
# @private
|
|
174
|
-
ORDER: ::Integer
|
|
175
|
-
|
|
176
|
-
# @private
|
|
177
|
-
DATATYPE: untyped
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
# Known enum values are defined in {Enums::Auth}.
|
|
181
|
-
class AuthMode < Attribute
|
|
182
|
-
TYPE: ::Integer
|
|
183
|
-
|
|
184
|
-
NAME: ::Symbol
|
|
185
|
-
|
|
186
|
-
# @private
|
|
187
|
-
ORDER: ::Integer
|
|
188
|
-
|
|
189
|
-
# @private
|
|
190
|
-
DATATYPE: untyped
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
class PeerIdentity < Attribute
|
|
194
|
-
TYPE: ::Integer
|
|
195
|
-
|
|
196
|
-
NAME: ::Symbol
|
|
197
|
-
|
|
198
|
-
# @private
|
|
199
|
-
MULTI: bool
|
|
200
|
-
|
|
201
|
-
# @private
|
|
202
|
-
ORDER: ::Integer
|
|
203
|
-
|
|
204
|
-
# @private
|
|
205
|
-
DATATYPE: untyped
|
|
84
|
+
module Definitions
|
|
85
|
+
# @rbs return: ::Integer
|
|
86
|
+
# @return [Integer]
|
|
87
|
+
def sockfd: () -> ::Integer
|
|
88
|
+
|
|
89
|
+
# Known enum values are defined in {Enums::HandlerClass}.
|
|
90
|
+
# @rbs return: ::Integer
|
|
91
|
+
# @return [Integer]
|
|
92
|
+
def handler_class: () -> ::Integer
|
|
93
|
+
|
|
94
|
+
# Known enum values are defined in {Enums::MsgType}.
|
|
95
|
+
# @rbs return: ::Integer
|
|
96
|
+
# @return [Integer]
|
|
97
|
+
def message_type: () -> ::Integer
|
|
98
|
+
|
|
99
|
+
# @rbs return: ::Integer
|
|
100
|
+
# @return [Integer]
|
|
101
|
+
def timeout: () -> ::Integer
|
|
102
|
+
|
|
103
|
+
# Known enum values are defined in {Enums::Auth}.
|
|
104
|
+
# @rbs return: ::Integer
|
|
105
|
+
# @return [Integer]
|
|
106
|
+
def auth_mode: () -> ::Integer
|
|
107
|
+
|
|
108
|
+
# @rbs return: ::Array[::Integer]
|
|
109
|
+
# @return [Array<Integer>]
|
|
110
|
+
def peer_identity: () -> ::Array[::Integer]
|
|
111
|
+
|
|
112
|
+
# @rbs return: ::Array[AttributeSets::X509]
|
|
113
|
+
# @return [Array<AttributeSets::X509>]
|
|
114
|
+
def certificate: () -> ::Array[AttributeSets::X509]
|
|
115
|
+
|
|
116
|
+
# @rbs return: ::String
|
|
117
|
+
# @return [String]
|
|
118
|
+
def peername: () -> ::String
|
|
119
|
+
|
|
120
|
+
# @rbs return: ::Integer
|
|
121
|
+
# @return [Integer]
|
|
122
|
+
def keyring: () -> ::Integer
|
|
206
123
|
end
|
|
207
124
|
|
|
208
|
-
|
|
209
|
-
TYPE: ::Integer
|
|
210
|
-
|
|
211
|
-
NAME: ::Symbol
|
|
212
|
-
|
|
213
|
-
# @private
|
|
214
|
-
MULTI: bool
|
|
215
|
-
|
|
216
|
-
# @private
|
|
217
|
-
ORDER: ::Integer
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
class Peername < Attribute
|
|
221
|
-
TYPE: ::Integer
|
|
222
|
-
|
|
223
|
-
NAME: ::Symbol
|
|
224
|
-
|
|
225
|
-
# @private
|
|
226
|
-
ORDER: ::Integer
|
|
227
|
-
|
|
228
|
-
# @private
|
|
229
|
-
DATATYPE: untyped
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
class Keyring < Attribute
|
|
233
|
-
TYPE: ::Integer
|
|
234
|
-
|
|
235
|
-
NAME: ::Symbol
|
|
236
|
-
|
|
237
|
-
# @private
|
|
238
|
-
ORDER: ::Integer
|
|
239
|
-
|
|
240
|
-
# @private
|
|
241
|
-
DATATYPE: untyped
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
# @private
|
|
245
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
246
|
-
|
|
247
|
-
# @private
|
|
248
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
249
|
-
|
|
250
|
-
# @rbs return: ::Integer
|
|
251
|
-
# @return [Integer]
|
|
252
|
-
# @see Sockfd
|
|
253
|
-
def sockfd: () -> ::Integer
|
|
254
|
-
|
|
255
|
-
# Known enum values are defined in {Enums::HandlerClass}.
|
|
256
|
-
# @rbs return: ::Integer
|
|
257
|
-
# @return [Integer]
|
|
258
|
-
# @see HandlerClass
|
|
259
|
-
def handler_class: () -> ::Integer
|
|
260
|
-
|
|
261
|
-
# Known enum values are defined in {Enums::MsgType}.
|
|
262
|
-
# @rbs return: ::Integer
|
|
263
|
-
# @return [Integer]
|
|
264
|
-
# @see MessageType
|
|
265
|
-
def message_type: () -> ::Integer
|
|
266
|
-
|
|
267
|
-
# @rbs return: ::Integer
|
|
268
|
-
# @return [Integer]
|
|
269
|
-
# @see Timeout
|
|
270
|
-
def timeout: () -> ::Integer
|
|
271
|
-
|
|
272
|
-
# Known enum values are defined in {Enums::Auth}.
|
|
273
|
-
# @rbs return: ::Integer
|
|
274
|
-
# @return [Integer]
|
|
275
|
-
# @see AuthMode
|
|
276
|
-
def auth_mode: () -> ::Integer
|
|
277
|
-
|
|
278
|
-
# @rbs return: ::Array[::Integer]
|
|
279
|
-
# @return [Array<Integer>]
|
|
280
|
-
# @see PeerIdentity
|
|
281
|
-
def peer_identity: () -> ::Array[::Integer]
|
|
282
|
-
|
|
283
|
-
# @rbs return: ::Array[AttributeSets::X509]
|
|
284
|
-
# @return [Array<AttributeSets::X509>]
|
|
285
|
-
# @see Certificate
|
|
286
|
-
def certificate: () -> ::Array[AttributeSets::X509]
|
|
125
|
+
include Definitions
|
|
287
126
|
|
|
288
|
-
#
|
|
289
|
-
# @
|
|
290
|
-
|
|
291
|
-
def peername: () -> ::String
|
|
292
|
-
|
|
293
|
-
# @rbs return: ::Integer
|
|
294
|
-
# @return [Integer]
|
|
295
|
-
# @see Keyring
|
|
296
|
-
def keyring: () -> ::Integer
|
|
297
|
-
|
|
298
|
-
# Looks up Attribute class by name.
|
|
299
|
-
# @rbs name: Symbol
|
|
300
|
-
# @rbs return: Attribute
|
|
301
|
-
# @param [Symbol] name
|
|
302
|
-
# @return [Attribute]
|
|
303
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
304
|
-
|
|
305
|
-
# Looks up Attribute class by type value.
|
|
306
|
-
# @rbs type: Integer
|
|
307
|
-
# @rbs return: Attribute
|
|
308
|
-
# @param [Integer] type
|
|
309
|
-
# @return [Attribute]
|
|
310
|
-
def self.by_type: (Integer type) -> Attribute
|
|
127
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
128
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
129
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
311
130
|
end
|
|
312
131
|
|
|
313
132
|
class Done < ::Nl::AttributeSet
|
|
314
|
-
|
|
315
|
-
|
|
133
|
+
module Definitions
|
|
134
|
+
# @rbs return: ::Integer
|
|
135
|
+
# @return [Integer]
|
|
136
|
+
def status: () -> ::Integer
|
|
137
|
+
|
|
138
|
+
# @rbs return: ::Integer
|
|
139
|
+
# @return [Integer]
|
|
140
|
+
def sockfd: () -> ::Integer
|
|
141
|
+
|
|
142
|
+
# @rbs return: ::Array[::Integer]
|
|
143
|
+
# @return [Array<Integer>]
|
|
144
|
+
def remote_auth: () -> ::Array[::Integer]
|
|
316
145
|
end
|
|
317
146
|
|
|
318
|
-
|
|
319
|
-
TYPE: ::Integer
|
|
147
|
+
include Definitions
|
|
320
148
|
|
|
321
|
-
|
|
149
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
150
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
151
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
152
|
+
end
|
|
153
|
+
end
|
|
322
154
|
|
|
155
|
+
module AttributeSets
|
|
156
|
+
class X509
|
|
157
|
+
module Definitions
|
|
323
158
|
# @private
|
|
324
|
-
|
|
159
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
325
160
|
|
|
326
161
|
# @private
|
|
327
|
-
|
|
162
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
328
163
|
end
|
|
164
|
+
end
|
|
329
165
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
NAME: ::Symbol
|
|
334
|
-
|
|
166
|
+
class Accept
|
|
167
|
+
module Definitions
|
|
335
168
|
# @private
|
|
336
|
-
|
|
169
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
337
170
|
|
|
338
171
|
# @private
|
|
339
|
-
|
|
172
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
340
173
|
end
|
|
174
|
+
end
|
|
341
175
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
NAME: ::Symbol
|
|
346
|
-
|
|
347
|
-
# @private
|
|
348
|
-
MULTI: bool
|
|
349
|
-
|
|
176
|
+
class Done
|
|
177
|
+
module Definitions
|
|
350
178
|
# @private
|
|
351
|
-
|
|
179
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
352
180
|
|
|
353
181
|
# @private
|
|
354
|
-
|
|
182
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
355
183
|
end
|
|
356
|
-
|
|
357
|
-
# @private
|
|
358
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
359
|
-
|
|
360
|
-
# @private
|
|
361
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
362
|
-
|
|
363
|
-
# @rbs return: ::Integer
|
|
364
|
-
# @return [Integer]
|
|
365
|
-
# @see Status
|
|
366
|
-
def status: () -> ::Integer
|
|
367
|
-
|
|
368
|
-
# @rbs return: ::Integer
|
|
369
|
-
# @return [Integer]
|
|
370
|
-
# @see Sockfd
|
|
371
|
-
def sockfd: () -> ::Integer
|
|
372
|
-
|
|
373
|
-
# @rbs return: ::Array[::Integer]
|
|
374
|
-
# @return [Array<Integer>]
|
|
375
|
-
# @see RemoteAuth
|
|
376
|
-
def remote_auth: () -> ::Array[::Integer]
|
|
377
|
-
|
|
378
|
-
# Looks up Attribute class by name.
|
|
379
|
-
# @rbs name: Symbol
|
|
380
|
-
# @rbs return: Attribute
|
|
381
|
-
# @param [Symbol] name
|
|
382
|
-
# @return [Attribute]
|
|
383
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
384
|
-
|
|
385
|
-
# Looks up Attribute class by type value.
|
|
386
|
-
# @rbs type: Integer
|
|
387
|
-
# @rbs return: Attribute
|
|
388
|
-
# @param [Integer] type
|
|
389
|
-
# @return [Attribute]
|
|
390
|
-
def self.by_type: (Integer type) -> Attribute
|
|
391
184
|
end
|
|
392
185
|
end
|
|
393
186
|
|
|
@@ -395,7 +188,7 @@ module Nl
|
|
|
395
188
|
# Handler retrieves next queued handshake request
|
|
396
189
|
#
|
|
397
190
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
398
|
-
class DoAcceptRequest < ::Nl::
|
|
191
|
+
class DoAcceptRequest < ::Nl::Message
|
|
399
192
|
TYPE: ::Integer
|
|
400
193
|
|
|
401
194
|
FIXED_HEADER: untyped
|
|
@@ -404,17 +197,29 @@ module Nl
|
|
|
404
197
|
|
|
405
198
|
ATTRIBUTES: untyped
|
|
406
199
|
|
|
200
|
+
include ATTRIBUTE_SET::Definitions
|
|
201
|
+
|
|
202
|
+
def initialize: (?untyped attributes) -> untyped
|
|
203
|
+
|
|
204
|
+
# @private
|
|
205
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
206
|
+
|
|
207
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
208
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
209
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
210
|
+
|
|
211
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
212
|
+
|
|
407
213
|
# Known enum values are defined in {Enums::HandlerClass}.
|
|
408
214
|
# @rbs return: ::Integer
|
|
409
215
|
# @return [Integer]
|
|
410
|
-
# @see AttributeSets::Accept::HandlerClass
|
|
411
216
|
def handler_class: () -> ::Integer
|
|
412
217
|
end
|
|
413
218
|
|
|
414
219
|
# Handler retrieves next queued handshake request
|
|
415
220
|
#
|
|
416
221
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
417
|
-
class DoAcceptReply < ::Nl::
|
|
222
|
+
class DoAcceptReply < ::Nl::Message
|
|
418
223
|
TYPE: ::Integer
|
|
419
224
|
|
|
420
225
|
FIXED_HEADER: untyped
|
|
@@ -423,53 +228,58 @@ module Nl
|
|
|
423
228
|
|
|
424
229
|
ATTRIBUTES: untyped
|
|
425
230
|
|
|
231
|
+
include ATTRIBUTE_SET::Definitions
|
|
232
|
+
|
|
233
|
+
def initialize: (?untyped attributes) -> untyped
|
|
234
|
+
|
|
235
|
+
# @private
|
|
236
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
237
|
+
|
|
238
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
239
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
240
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
241
|
+
|
|
242
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
243
|
+
|
|
426
244
|
# @rbs return: ::Integer
|
|
427
245
|
# @return [Integer]
|
|
428
|
-
# @see AttributeSets::Accept::Sockfd
|
|
429
246
|
def sockfd: () -> ::Integer
|
|
430
247
|
|
|
431
248
|
# Known enum values are defined in {Enums::MsgType}.
|
|
432
249
|
# @rbs return: ::Integer
|
|
433
250
|
# @return [Integer]
|
|
434
|
-
# @see AttributeSets::Accept::MessageType
|
|
435
251
|
def message_type: () -> ::Integer
|
|
436
252
|
|
|
437
253
|
# @rbs return: ::Integer
|
|
438
254
|
# @return [Integer]
|
|
439
|
-
# @see AttributeSets::Accept::Timeout
|
|
440
255
|
def timeout: () -> ::Integer
|
|
441
256
|
|
|
442
257
|
# Known enum values are defined in {Enums::Auth}.
|
|
443
258
|
# @rbs return: ::Integer
|
|
444
259
|
# @return [Integer]
|
|
445
|
-
# @see AttributeSets::Accept::AuthMode
|
|
446
260
|
def auth_mode: () -> ::Integer
|
|
447
261
|
|
|
448
262
|
# @rbs return: ::Array[::Integer]
|
|
449
263
|
# @return [Array<Integer>]
|
|
450
|
-
# @see AttributeSets::Accept::PeerIdentity
|
|
451
264
|
def peer_identity: () -> ::Array[::Integer]
|
|
452
265
|
|
|
453
266
|
# @rbs return: ::Array[AttributeSets::X509]
|
|
454
267
|
# @return [Array<AttributeSets::X509>]
|
|
455
|
-
# @see AttributeSets::Accept::Certificate
|
|
456
268
|
def certificate: () -> ::Array[AttributeSets::X509]
|
|
457
269
|
|
|
458
270
|
# @rbs return: ::String
|
|
459
271
|
# @return [String]
|
|
460
|
-
# @see AttributeSets::Accept::Peername
|
|
461
272
|
def peername: () -> ::String
|
|
462
273
|
|
|
463
274
|
# @rbs return: ::Integer
|
|
464
275
|
# @return [Integer]
|
|
465
|
-
# @see AttributeSets::Accept::Keyring
|
|
466
276
|
def keyring: () -> ::Integer
|
|
467
277
|
end
|
|
468
278
|
|
|
469
279
|
# Handler reports handshake completion
|
|
470
280
|
#
|
|
471
281
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
472
|
-
class DoDoneRequest < ::Nl::
|
|
282
|
+
class DoDoneRequest < ::Nl::Message
|
|
473
283
|
TYPE: ::Integer
|
|
474
284
|
|
|
475
285
|
FIXED_HEADER: untyped
|
|
@@ -478,26 +288,36 @@ module Nl
|
|
|
478
288
|
|
|
479
289
|
ATTRIBUTES: untyped
|
|
480
290
|
|
|
291
|
+
include ATTRIBUTE_SET::Definitions
|
|
292
|
+
|
|
293
|
+
def initialize: (?untyped attributes) -> untyped
|
|
294
|
+
|
|
295
|
+
# @private
|
|
296
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
297
|
+
|
|
298
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
299
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
300
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
301
|
+
|
|
302
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
303
|
+
|
|
481
304
|
# @rbs return: ::Integer
|
|
482
305
|
# @return [Integer]
|
|
483
|
-
# @see AttributeSets::Done::Status
|
|
484
306
|
def status: () -> ::Integer
|
|
485
307
|
|
|
486
308
|
# @rbs return: ::Integer
|
|
487
309
|
# @return [Integer]
|
|
488
|
-
# @see AttributeSets::Done::Sockfd
|
|
489
310
|
def sockfd: () -> ::Integer
|
|
490
311
|
|
|
491
312
|
# @rbs return: ::Array[::Integer]
|
|
492
313
|
# @return [Array<Integer>]
|
|
493
|
-
# @see AttributeSets::Done::RemoteAuth
|
|
494
314
|
def remote_auth: () -> ::Array[::Integer]
|
|
495
315
|
end
|
|
496
316
|
end
|
|
497
317
|
|
|
498
318
|
module Notifications
|
|
499
319
|
# Notify handlers that a new handshake request is waiting
|
|
500
|
-
class Ready < ::Nl::
|
|
320
|
+
class Ready < ::Nl::Message
|
|
501
321
|
TYPE: ::Integer
|
|
502
322
|
|
|
503
323
|
FIXED_HEADER: untyped
|
|
@@ -506,46 +326,51 @@ module Nl
|
|
|
506
326
|
|
|
507
327
|
ATTRIBUTES: untyped
|
|
508
328
|
|
|
329
|
+
include ATTRIBUTE_SET::Definitions
|
|
330
|
+
|
|
331
|
+
def initialize: (?untyped attributes) -> untyped
|
|
332
|
+
|
|
333
|
+
# @private
|
|
334
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
335
|
+
|
|
336
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
337
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
338
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
339
|
+
|
|
340
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
341
|
+
|
|
509
342
|
# @rbs return: ::Integer
|
|
510
343
|
# @return [Integer]
|
|
511
|
-
# @see AttributeSets::Accept::Sockfd
|
|
512
344
|
def sockfd: () -> ::Integer
|
|
513
345
|
|
|
514
346
|
# Known enum values are defined in {Enums::MsgType}.
|
|
515
347
|
# @rbs return: ::Integer
|
|
516
348
|
# @return [Integer]
|
|
517
|
-
# @see AttributeSets::Accept::MessageType
|
|
518
349
|
def message_type: () -> ::Integer
|
|
519
350
|
|
|
520
351
|
# @rbs return: ::Integer
|
|
521
352
|
# @return [Integer]
|
|
522
|
-
# @see AttributeSets::Accept::Timeout
|
|
523
353
|
def timeout: () -> ::Integer
|
|
524
354
|
|
|
525
355
|
# Known enum values are defined in {Enums::Auth}.
|
|
526
356
|
# @rbs return: ::Integer
|
|
527
357
|
# @return [Integer]
|
|
528
|
-
# @see AttributeSets::Accept::AuthMode
|
|
529
358
|
def auth_mode: () -> ::Integer
|
|
530
359
|
|
|
531
360
|
# @rbs return: ::Array[::Integer]
|
|
532
361
|
# @return [Array<Integer>]
|
|
533
|
-
# @see AttributeSets::Accept::PeerIdentity
|
|
534
362
|
def peer_identity: () -> ::Array[::Integer]
|
|
535
363
|
|
|
536
364
|
# @rbs return: ::Array[AttributeSets::X509]
|
|
537
365
|
# @return [Array<AttributeSets::X509>]
|
|
538
|
-
# @see AttributeSets::Accept::Certificate
|
|
539
366
|
def certificate: () -> ::Array[AttributeSets::X509]
|
|
540
367
|
|
|
541
368
|
# @rbs return: ::String
|
|
542
369
|
# @return [String]
|
|
543
|
-
# @see AttributeSets::Accept::Peername
|
|
544
370
|
def peername: () -> ::String
|
|
545
371
|
|
|
546
372
|
# @rbs return: ::Integer
|
|
547
373
|
# @return [Integer]
|
|
548
|
-
# @see AttributeSets::Accept::Keyring
|
|
549
374
|
def keyring: () -> ::Integer
|
|
550
375
|
end
|
|
551
376
|
end
|