nl-linux 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +5 -0
- data/CHANGELOG.md +6 -0
- data/Rakefile +14 -2
- data/generated/nl/linux/binder.rb +172 -44
- data/generated/nl/linux/conntrack.rb +1293 -370
- data/generated/nl/linux/dev_energymodel.rb +278 -93
- data/generated/nl/linux/devlink.rb +5654 -1954
- data/generated/nl/linux/dpll.rb +1838 -669
- data/generated/nl/linux/drm_ras.rb +234 -72
- data/generated/nl/linux/ethtool.rb +6683 -2885
- data/generated/nl/linux/fou.rb +308 -129
- data/generated/nl/linux/handshake.rb +277 -99
- data/generated/nl/linux/lockd.rb +88 -33
- data/generated/nl/linux/mptcp_pm.rb +639 -186
- data/generated/nl/linux/net_shaper.rb +782 -224
- data/generated/nl/linux/netdev.rb +2105 -631
- data/generated/nl/linux/nfsd.rb +1030 -358
- data/generated/nl/linux/nftables.rb +5041 -1612
- data/generated/nl/linux/nl80211.rb +4531 -871
- data/generated/nl/linux/nlctrl.rb +411 -119
- data/generated/nl/linux/ovpn.rb +1211 -293
- data/generated/nl/linux/ovs_datapath.rb +271 -106
- data/generated/nl/linux/ovs_flow.rb +1819 -354
- data/generated/nl/linux/ovs_packet.rb +257 -82
- data/generated/nl/linux/ovs_vport.rb +334 -132
- data/generated/nl/linux/psp.rb +916 -281
- data/generated/nl/linux/rt_addr.rb +369 -166
- data/generated/nl/linux/rt_link.rb +6708 -1450
- data/generated/nl/linux/rt_neigh.rb +919 -364
- data/generated/nl/linux/rt_route.rb +1034 -448
- data/generated/nl/linux/rt_rule.rb +775 -395
- data/generated/nl/linux/sunrpc_cache.rb +297 -102
- data/generated/nl/linux/tc.rb +9989 -1780
- data/generated/nl/linux/tcp_metrics.rb +327 -105
- data/generated/nl/linux/team.rb +279 -93
- data/generated/nl/linux/wireguard.rb +432 -95
- data/generated/nl/linux.rb +1 -0
- data/lib/nl/linux/nlctrl_resolver.rb +31 -0
- data/lib/nl/linux/version.rb +1 -1
- data/sig/generated/nl/linux/binder.rbs +366 -0
- data/sig/generated/nl/linux/conntrack.rbs +2787 -0
- data/sig/generated/nl/linux/dev_energymodel.rbs +636 -0
- data/sig/generated/nl/linux/devlink.rbs +12496 -0
- data/sig/generated/nl/linux/dpll.rbs +3461 -0
- data/sig/generated/nl/linux/drm_ras.rbs +553 -0
- data/sig/generated/nl/linux/ethtool.rbs +15291 -0
- data/sig/generated/nl/linux/fou.rbs +702 -0
- data/sig/generated/nl/linux/handshake.rbs +622 -0
- data/sig/generated/nl/linux/lockd.rbs +234 -0
- data/sig/generated/nl/linux/mptcp_pm.rbs +1511 -0
- data/sig/generated/nl/linux/net_shaper.rbs +1645 -0
- data/sig/generated/nl/linux/netdev.rbs +4187 -0
- data/sig/generated/nl/linux/nfsd.rbs +2520 -0
- data/sig/generated/nl/linux/nftables.rbs +10304 -0
- data/sig/generated/nl/linux/nl80211.rbs +9786 -0
- data/sig/generated/nl/linux/nlctrl.rbs +944 -0
- data/sig/generated/nl/linux/nlctrl_resolver.rbs +20 -0
- data/sig/generated/nl/linux/ovpn.rbs +2564 -0
- data/sig/generated/nl/linux/ovs_datapath.rbs +640 -0
- data/sig/generated/nl/linux/ovs_flow.rbs +3659 -0
- data/sig/generated/nl/linux/ovs_packet.rbs +540 -0
- data/sig/generated/nl/linux/ovs_vport.rbs +777 -0
- data/sig/generated/nl/linux/psp.rbs +1846 -0
- data/sig/generated/nl/linux/rt_addr.rbs +866 -0
- data/sig/generated/nl/linux/rt_link.rbs +13438 -0
- data/sig/generated/nl/linux/rt_neigh.rbs +2124 -0
- data/sig/generated/nl/linux/rt_route.rbs +2218 -0
- data/sig/generated/nl/linux/rt_rule.rbs +1726 -0
- data/sig/generated/nl/linux/sunrpc_cache.rbs +739 -0
- data/sig/generated/nl/linux/tc.rbs +19931 -0
- data/sig/generated/nl/linux/tcp_metrics.rbs +740 -0
- data/sig/generated/nl/linux/team.rbs +733 -0
- data/sig/generated/nl/linux/version.rbs +7 -0
- data/sig/generated/nl/linux/wireguard.rbs +1006 -0
- data/sig/generated/nl/linux.rbs +6 -0
- data/sig/generated/nl-linux.rbs +2 -0
- metadata +46 -7
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
# Generated from generated/nl/linux/handshake.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module Nl
|
|
4
|
+
module Linux
|
|
5
|
+
# Netlink protocol to request a transport layer security handshake.
|
|
6
|
+
class Handshake < ::Nl::Genl::Family
|
|
7
|
+
NAME: ::String
|
|
8
|
+
|
|
9
|
+
VERSION: ::Integer
|
|
10
|
+
|
|
11
|
+
# @rbs (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
|
|
12
|
+
# @rbs | [R] (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) { (instance) -> R } -> R
|
|
13
|
+
# @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
|
|
14
|
+
# @param [#call] resolver
|
|
15
|
+
# @param [Symbol, nil] executor
|
|
16
|
+
# @param [Integer, nil] notification_capacity
|
|
17
|
+
# @return [Handshake]
|
|
18
|
+
# @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY, &block)
|
|
19
|
+
# @param [#call] resolver
|
|
20
|
+
# @param [Symbol, nil] executor
|
|
21
|
+
# @param [Integer, nil] notification_capacity
|
|
22
|
+
# @yieldparam [Handshake] family
|
|
23
|
+
# @return [Object] the result of the block
|
|
24
|
+
def self.open: (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
|
|
25
|
+
|
|
26
|
+
# @private
|
|
27
|
+
MCAST_GROUPS: Hash[::Symbol, ::Nl::McastGroup]
|
|
28
|
+
|
|
29
|
+
module Constants
|
|
30
|
+
MAX_ERRNO: ::Integer
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
module Enums
|
|
34
|
+
module HandlerClass
|
|
35
|
+
None: ::Integer
|
|
36
|
+
|
|
37
|
+
Tlshd: ::Integer
|
|
38
|
+
|
|
39
|
+
Max: ::Integer
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
module MsgType
|
|
43
|
+
Unspec: ::Integer
|
|
44
|
+
|
|
45
|
+
Clienthello: ::Integer
|
|
46
|
+
|
|
47
|
+
Serverhello: ::Integer
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
module Auth
|
|
51
|
+
Unspec: ::Integer
|
|
52
|
+
|
|
53
|
+
Unauth: ::Integer
|
|
54
|
+
|
|
55
|
+
Psk: ::Integer
|
|
56
|
+
|
|
57
|
+
X509: ::Integer
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
module Structs
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
module AttributeSets
|
|
65
|
+
class X509 < ::Nl::AttributeSet
|
|
66
|
+
# Abstract class
|
|
67
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class Cert < Attribute
|
|
71
|
+
TYPE: ::Integer
|
|
72
|
+
|
|
73
|
+
NAME: ::Symbol
|
|
74
|
+
|
|
75
|
+
# @private
|
|
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
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
class Accept < ::Nl::AttributeSet
|
|
126
|
+
# Abstract class
|
|
127
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
class Sockfd < Attribute
|
|
131
|
+
TYPE: ::Integer
|
|
132
|
+
|
|
133
|
+
NAME: ::Symbol
|
|
134
|
+
|
|
135
|
+
# @private
|
|
136
|
+
ORDER: ::Integer
|
|
137
|
+
|
|
138
|
+
# @private
|
|
139
|
+
DATATYPE: untyped
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Known enum values are defined in {Enums::HandlerClass}.
|
|
143
|
+
class HandlerClass < Attribute
|
|
144
|
+
TYPE: ::Integer
|
|
145
|
+
|
|
146
|
+
NAME: ::Symbol
|
|
147
|
+
|
|
148
|
+
# @private
|
|
149
|
+
ORDER: ::Integer
|
|
150
|
+
|
|
151
|
+
# @private
|
|
152
|
+
DATATYPE: untyped
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Known enum values are defined in {Enums::MsgType}.
|
|
156
|
+
class MessageType < Attribute
|
|
157
|
+
TYPE: ::Integer
|
|
158
|
+
|
|
159
|
+
NAME: ::Symbol
|
|
160
|
+
|
|
161
|
+
# @private
|
|
162
|
+
ORDER: ::Integer
|
|
163
|
+
|
|
164
|
+
# @private
|
|
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
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
class Certificate < Attribute
|
|
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]
|
|
287
|
+
|
|
288
|
+
# @rbs return: ::String
|
|
289
|
+
# @return [String]
|
|
290
|
+
# @see Peername
|
|
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
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
class Done < ::Nl::AttributeSet
|
|
314
|
+
# Abstract class
|
|
315
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
class Status < Attribute
|
|
319
|
+
TYPE: ::Integer
|
|
320
|
+
|
|
321
|
+
NAME: ::Symbol
|
|
322
|
+
|
|
323
|
+
# @private
|
|
324
|
+
ORDER: ::Integer
|
|
325
|
+
|
|
326
|
+
# @private
|
|
327
|
+
DATATYPE: untyped
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
class Sockfd < Attribute
|
|
331
|
+
TYPE: ::Integer
|
|
332
|
+
|
|
333
|
+
NAME: ::Symbol
|
|
334
|
+
|
|
335
|
+
# @private
|
|
336
|
+
ORDER: ::Integer
|
|
337
|
+
|
|
338
|
+
# @private
|
|
339
|
+
DATATYPE: untyped
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
class RemoteAuth < Attribute
|
|
343
|
+
TYPE: ::Integer
|
|
344
|
+
|
|
345
|
+
NAME: ::Symbol
|
|
346
|
+
|
|
347
|
+
# @private
|
|
348
|
+
MULTI: bool
|
|
349
|
+
|
|
350
|
+
# @private
|
|
351
|
+
ORDER: ::Integer
|
|
352
|
+
|
|
353
|
+
# @private
|
|
354
|
+
DATATYPE: untyped
|
|
355
|
+
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
|
+
end
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
module Messages
|
|
395
|
+
# Handler retrieves next queued handshake request
|
|
396
|
+
#
|
|
397
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
398
|
+
class DoAcceptRequest < ::Nl::Genl::Message
|
|
399
|
+
TYPE: ::Integer
|
|
400
|
+
|
|
401
|
+
FIXED_HEADER: untyped
|
|
402
|
+
|
|
403
|
+
ATTRIBUTE_SET: untyped
|
|
404
|
+
|
|
405
|
+
ATTRIBUTES: untyped
|
|
406
|
+
|
|
407
|
+
# Known enum values are defined in {Enums::HandlerClass}.
|
|
408
|
+
# @rbs return: ::Integer
|
|
409
|
+
# @return [Integer]
|
|
410
|
+
# @see AttributeSets::Accept::HandlerClass
|
|
411
|
+
def handler_class: () -> ::Integer
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Handler retrieves next queued handshake request
|
|
415
|
+
#
|
|
416
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
417
|
+
class DoAcceptReply < ::Nl::Genl::Message
|
|
418
|
+
TYPE: ::Integer
|
|
419
|
+
|
|
420
|
+
FIXED_HEADER: untyped
|
|
421
|
+
|
|
422
|
+
ATTRIBUTE_SET: untyped
|
|
423
|
+
|
|
424
|
+
ATTRIBUTES: untyped
|
|
425
|
+
|
|
426
|
+
# @rbs return: ::Integer
|
|
427
|
+
# @return [Integer]
|
|
428
|
+
# @see AttributeSets::Accept::Sockfd
|
|
429
|
+
def sockfd: () -> ::Integer
|
|
430
|
+
|
|
431
|
+
# Known enum values are defined in {Enums::MsgType}.
|
|
432
|
+
# @rbs return: ::Integer
|
|
433
|
+
# @return [Integer]
|
|
434
|
+
# @see AttributeSets::Accept::MessageType
|
|
435
|
+
def message_type: () -> ::Integer
|
|
436
|
+
|
|
437
|
+
# @rbs return: ::Integer
|
|
438
|
+
# @return [Integer]
|
|
439
|
+
# @see AttributeSets::Accept::Timeout
|
|
440
|
+
def timeout: () -> ::Integer
|
|
441
|
+
|
|
442
|
+
# Known enum values are defined in {Enums::Auth}.
|
|
443
|
+
# @rbs return: ::Integer
|
|
444
|
+
# @return [Integer]
|
|
445
|
+
# @see AttributeSets::Accept::AuthMode
|
|
446
|
+
def auth_mode: () -> ::Integer
|
|
447
|
+
|
|
448
|
+
# @rbs return: ::Array[::Integer]
|
|
449
|
+
# @return [Array<Integer>]
|
|
450
|
+
# @see AttributeSets::Accept::PeerIdentity
|
|
451
|
+
def peer_identity: () -> ::Array[::Integer]
|
|
452
|
+
|
|
453
|
+
# @rbs return: ::Array[AttributeSets::X509]
|
|
454
|
+
# @return [Array<AttributeSets::X509>]
|
|
455
|
+
# @see AttributeSets::Accept::Certificate
|
|
456
|
+
def certificate: () -> ::Array[AttributeSets::X509]
|
|
457
|
+
|
|
458
|
+
# @rbs return: ::String
|
|
459
|
+
# @return [String]
|
|
460
|
+
# @see AttributeSets::Accept::Peername
|
|
461
|
+
def peername: () -> ::String
|
|
462
|
+
|
|
463
|
+
# @rbs return: ::Integer
|
|
464
|
+
# @return [Integer]
|
|
465
|
+
# @see AttributeSets::Accept::Keyring
|
|
466
|
+
def keyring: () -> ::Integer
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# Handler reports handshake completion
|
|
470
|
+
#
|
|
471
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
472
|
+
class DoDoneRequest < ::Nl::Genl::Message
|
|
473
|
+
TYPE: ::Integer
|
|
474
|
+
|
|
475
|
+
FIXED_HEADER: untyped
|
|
476
|
+
|
|
477
|
+
ATTRIBUTE_SET: untyped
|
|
478
|
+
|
|
479
|
+
ATTRIBUTES: untyped
|
|
480
|
+
|
|
481
|
+
# @rbs return: ::Integer
|
|
482
|
+
# @return [Integer]
|
|
483
|
+
# @see AttributeSets::Done::Status
|
|
484
|
+
def status: () -> ::Integer
|
|
485
|
+
|
|
486
|
+
# @rbs return: ::Integer
|
|
487
|
+
# @return [Integer]
|
|
488
|
+
# @see AttributeSets::Done::Sockfd
|
|
489
|
+
def sockfd: () -> ::Integer
|
|
490
|
+
|
|
491
|
+
# @rbs return: ::Array[::Integer]
|
|
492
|
+
# @return [Array<Integer>]
|
|
493
|
+
# @see AttributeSets::Done::RemoteAuth
|
|
494
|
+
def remote_auth: () -> ::Array[::Integer]
|
|
495
|
+
end
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
module Notifications
|
|
499
|
+
# Notify handlers that a new handshake request is waiting
|
|
500
|
+
class Ready < ::Nl::Genl::Message
|
|
501
|
+
TYPE: ::Integer
|
|
502
|
+
|
|
503
|
+
FIXED_HEADER: untyped
|
|
504
|
+
|
|
505
|
+
ATTRIBUTE_SET: untyped
|
|
506
|
+
|
|
507
|
+
ATTRIBUTES: untyped
|
|
508
|
+
|
|
509
|
+
# @rbs return: ::Integer
|
|
510
|
+
# @return [Integer]
|
|
511
|
+
# @see AttributeSets::Accept::Sockfd
|
|
512
|
+
def sockfd: () -> ::Integer
|
|
513
|
+
|
|
514
|
+
# Known enum values are defined in {Enums::MsgType}.
|
|
515
|
+
# @rbs return: ::Integer
|
|
516
|
+
# @return [Integer]
|
|
517
|
+
# @see AttributeSets::Accept::MessageType
|
|
518
|
+
def message_type: () -> ::Integer
|
|
519
|
+
|
|
520
|
+
# @rbs return: ::Integer
|
|
521
|
+
# @return [Integer]
|
|
522
|
+
# @see AttributeSets::Accept::Timeout
|
|
523
|
+
def timeout: () -> ::Integer
|
|
524
|
+
|
|
525
|
+
# Known enum values are defined in {Enums::Auth}.
|
|
526
|
+
# @rbs return: ::Integer
|
|
527
|
+
# @return [Integer]
|
|
528
|
+
# @see AttributeSets::Accept::AuthMode
|
|
529
|
+
def auth_mode: () -> ::Integer
|
|
530
|
+
|
|
531
|
+
# @rbs return: ::Array[::Integer]
|
|
532
|
+
# @return [Array<Integer>]
|
|
533
|
+
# @see AttributeSets::Accept::PeerIdentity
|
|
534
|
+
def peer_identity: () -> ::Array[::Integer]
|
|
535
|
+
|
|
536
|
+
# @rbs return: ::Array[AttributeSets::X509]
|
|
537
|
+
# @return [Array<AttributeSets::X509>]
|
|
538
|
+
# @see AttributeSets::Accept::Certificate
|
|
539
|
+
def certificate: () -> ::Array[AttributeSets::X509]
|
|
540
|
+
|
|
541
|
+
# @rbs return: ::String
|
|
542
|
+
# @return [String]
|
|
543
|
+
# @see AttributeSets::Accept::Peername
|
|
544
|
+
def peername: () -> ::String
|
|
545
|
+
|
|
546
|
+
# @rbs return: ::Integer
|
|
547
|
+
# @return [Integer]
|
|
548
|
+
# @see AttributeSets::Accept::Keyring
|
|
549
|
+
def keyring: () -> ::Integer
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# @private
|
|
554
|
+
NOTIFICATIONS: Hash[::Integer, ::Class]
|
|
555
|
+
|
|
556
|
+
# Handler retrieves next queued handshake request
|
|
557
|
+
#
|
|
558
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
559
|
+
# @rbs (?handler_class: ::Integer) -> Messages::DoAcceptReply
|
|
560
|
+
# @param [Hash] args
|
|
561
|
+
# @option args [Integer] handler_class Known enum values are defined in {Enums::HandlerClass}.
|
|
562
|
+
# @return [Messages::DoAcceptReply]
|
|
563
|
+
# @see Messages::DoAcceptRequest
|
|
564
|
+
def do_accept: (?handler_class: ::Integer) -> Messages::DoAcceptReply
|
|
565
|
+
|
|
566
|
+
# Handler reports handshake completion
|
|
567
|
+
#
|
|
568
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
569
|
+
# @rbs (?status: ::Integer, ?sockfd: ::Integer, ?remote_auth: ::Array[::Integer]) -> void
|
|
570
|
+
# @param [Hash] args
|
|
571
|
+
# @option args [Integer] status
|
|
572
|
+
# @option args [Integer] sockfd
|
|
573
|
+
# @option args [Array<Integer>] remote_auth
|
|
574
|
+
# @return [void]
|
|
575
|
+
# @see Messages::DoDoneRequest
|
|
576
|
+
def do_done: (?status: ::Integer, ?sockfd: ::Integer, ?remote_auth: ::Array[::Integer]) -> void
|
|
577
|
+
|
|
578
|
+
class AsyncOperations
|
|
579
|
+
# @private
|
|
580
|
+
def initialize: () ?{ (?) -> untyped } -> untyped
|
|
581
|
+
|
|
582
|
+
# Handler retrieves next queued handshake request
|
|
583
|
+
#
|
|
584
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
585
|
+
# @rbs (?handler_class: ::Integer) -> ::Nl::Async::Future[Messages::DoAcceptReply]
|
|
586
|
+
# @param [Hash] args
|
|
587
|
+
# @option args [Integer] handler_class Known enum values are defined in {Enums::HandlerClass}.
|
|
588
|
+
# @return [Nl::Async::Future<Messages::DoAcceptReply>]
|
|
589
|
+
# @see Messages::DoAcceptRequest
|
|
590
|
+
def do_accept: (?handler_class: ::Integer) -> ::Nl::Async::Future[Messages::DoAcceptReply]
|
|
591
|
+
|
|
592
|
+
# Handler reports handshake completion
|
|
593
|
+
#
|
|
594
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
595
|
+
# @rbs (?status: ::Integer, ?sockfd: ::Integer, ?remote_auth: ::Array[::Integer]) -> ::Nl::Async::Future[void]
|
|
596
|
+
# @param [Hash] args
|
|
597
|
+
# @option args [Integer] status
|
|
598
|
+
# @option args [Integer] sockfd
|
|
599
|
+
# @option args [Array<Integer>] remote_auth
|
|
600
|
+
# @return [Nl::Async::Future<void>]
|
|
601
|
+
# @see Messages::DoDoneRequest
|
|
602
|
+
def do_done: (?status: ::Integer, ?sockfd: ::Integer, ?remote_auth: ::Array[::Integer]) -> ::Nl::Async::Future[void]
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
# Returns the asynchronous operation facade for this family.
|
|
606
|
+
# @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
607
|
+
# @param [::Integer, nil] stream_capacity
|
|
608
|
+
# @return [AsyncOperations]
|
|
609
|
+
def async: (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
610
|
+
|
|
611
|
+
# @rbs (*(:none | :tlshd) groups) -> self
|
|
612
|
+
# @param [Array<:none, :tlshd>] groups
|
|
613
|
+
# @return [self]
|
|
614
|
+
def subscribe: (*:none | :tlshd groups) -> self
|
|
615
|
+
|
|
616
|
+
# @rbs (*(:none | :tlshd) groups) -> self
|
|
617
|
+
# @param [Array<:none, :tlshd>] groups
|
|
618
|
+
# @return [self]
|
|
619
|
+
def unsubscribe: (*:none | :tlshd groups) -> self
|
|
620
|
+
end
|
|
621
|
+
end
|
|
622
|
+
end
|