nl-linux 0.4.2 → 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 +5 -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,1933 +63,737 @@ module Nl
|
|
|
63
63
|
|
|
64
64
|
module AttributeSets
|
|
65
65
|
class Peer < ::Nl::AttributeSet
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
125
|
-
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
# @
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
# @
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
# @private
|
|
197
|
-
DATATYPE: untyped
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
# The local IPv6 to be used to send packets to the peer (UDP only)
|
|
201
|
-
class LocalIpv6 < Attribute
|
|
202
|
-
TYPE: ::Integer
|
|
203
|
-
|
|
204
|
-
NAME: ::Symbol
|
|
205
|
-
|
|
206
|
-
# @private
|
|
207
|
-
ORDER: ::Integer
|
|
208
|
-
|
|
209
|
-
# @private
|
|
210
|
-
DATATYPE: untyped
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
# The local port to be used to send packets to the peer (UDP only)
|
|
214
|
-
class LocalPort < Attribute
|
|
215
|
-
TYPE: ::Integer
|
|
216
|
-
|
|
217
|
-
NAME: ::Symbol
|
|
218
|
-
|
|
219
|
-
# @private
|
|
220
|
-
ORDER: ::Integer
|
|
221
|
-
|
|
222
|
-
# @private
|
|
223
|
-
DATATYPE: untyped
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
# The number of seconds after which a keep alive message is sent to the peer
|
|
227
|
-
class KeepaliveInterval < Attribute
|
|
228
|
-
TYPE: ::Integer
|
|
229
|
-
|
|
230
|
-
NAME: ::Symbol
|
|
231
|
-
|
|
232
|
-
# @private
|
|
233
|
-
ORDER: ::Integer
|
|
234
|
-
|
|
235
|
-
# @private
|
|
236
|
-
DATATYPE: untyped
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
# The number of seconds from the last activity after which the peer is assumed dead
|
|
240
|
-
class KeepaliveTimeout < Attribute
|
|
241
|
-
TYPE: ::Integer
|
|
242
|
-
|
|
243
|
-
NAME: ::Symbol
|
|
244
|
-
|
|
245
|
-
# @private
|
|
246
|
-
ORDER: ::Integer
|
|
247
|
-
|
|
248
|
-
# @private
|
|
249
|
-
DATATYPE: untyped
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
# The reason why a peer was deleted
|
|
253
|
-
#
|
|
254
|
-
# Known enum values are defined in {Enums::DelPeerReason}.
|
|
255
|
-
class DelReason < Attribute
|
|
256
|
-
TYPE: ::Integer
|
|
257
|
-
|
|
258
|
-
NAME: ::Symbol
|
|
259
|
-
|
|
260
|
-
# @private
|
|
261
|
-
ORDER: ::Integer
|
|
262
|
-
|
|
263
|
-
# @private
|
|
264
|
-
DATATYPE: untyped
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
# Number of bytes received over the tunnel
|
|
268
|
-
class VpnRxBytes < Attribute
|
|
269
|
-
TYPE: ::Integer
|
|
270
|
-
|
|
271
|
-
NAME: ::Symbol
|
|
272
|
-
|
|
273
|
-
# @private
|
|
274
|
-
ORDER: ::Integer
|
|
275
|
-
|
|
276
|
-
# @private
|
|
277
|
-
DATATYPE: untyped
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
# Number of bytes transmitted over the tunnel
|
|
281
|
-
class VpnTxBytes < Attribute
|
|
282
|
-
TYPE: ::Integer
|
|
283
|
-
|
|
284
|
-
NAME: ::Symbol
|
|
285
|
-
|
|
286
|
-
# @private
|
|
287
|
-
ORDER: ::Integer
|
|
288
|
-
|
|
289
|
-
# @private
|
|
290
|
-
DATATYPE: untyped
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
# Number of packets received over the tunnel
|
|
294
|
-
class VpnRxPackets < Attribute
|
|
295
|
-
TYPE: ::Integer
|
|
296
|
-
|
|
297
|
-
NAME: ::Symbol
|
|
298
|
-
|
|
299
|
-
# @private
|
|
300
|
-
ORDER: ::Integer
|
|
301
|
-
|
|
302
|
-
# @private
|
|
303
|
-
DATATYPE: untyped
|
|
304
|
-
end
|
|
305
|
-
|
|
306
|
-
# Number of packets transmitted over the tunnel
|
|
307
|
-
class VpnTxPackets < Attribute
|
|
308
|
-
TYPE: ::Integer
|
|
309
|
-
|
|
310
|
-
NAME: ::Symbol
|
|
311
|
-
|
|
312
|
-
# @private
|
|
313
|
-
ORDER: ::Integer
|
|
314
|
-
|
|
315
|
-
# @private
|
|
316
|
-
DATATYPE: untyped
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
# Number of bytes received at the transport level
|
|
320
|
-
class LinkRxBytes < Attribute
|
|
321
|
-
TYPE: ::Integer
|
|
322
|
-
|
|
323
|
-
NAME: ::Symbol
|
|
324
|
-
|
|
325
|
-
# @private
|
|
326
|
-
ORDER: ::Integer
|
|
327
|
-
|
|
328
|
-
# @private
|
|
329
|
-
DATATYPE: untyped
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
# Number of bytes transmitted at the transport level
|
|
333
|
-
class LinkTxBytes < Attribute
|
|
334
|
-
TYPE: ::Integer
|
|
335
|
-
|
|
336
|
-
NAME: ::Symbol
|
|
337
|
-
|
|
338
|
-
# @private
|
|
339
|
-
ORDER: ::Integer
|
|
340
|
-
|
|
341
|
-
# @private
|
|
342
|
-
DATATYPE: untyped
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
# Number of packets received at the transport level
|
|
346
|
-
class LinkRxPackets < Attribute
|
|
347
|
-
TYPE: ::Integer
|
|
348
|
-
|
|
349
|
-
NAME: ::Symbol
|
|
350
|
-
|
|
351
|
-
# @private
|
|
352
|
-
ORDER: ::Integer
|
|
353
|
-
|
|
354
|
-
# @private
|
|
355
|
-
DATATYPE: untyped
|
|
356
|
-
end
|
|
357
|
-
|
|
358
|
-
# Number of packets transmitted at the transport level
|
|
359
|
-
class LinkTxPackets < Attribute
|
|
360
|
-
TYPE: ::Integer
|
|
361
|
-
|
|
362
|
-
NAME: ::Symbol
|
|
363
|
-
|
|
364
|
-
# @private
|
|
365
|
-
ORDER: ::Integer
|
|
366
|
-
|
|
367
|
-
# @private
|
|
368
|
-
DATATYPE: untyped
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
# The ID value used when transmitting packets to this peer. This way outgoing packets can have a different ID than incoming ones. Useful in multipeer-to-multipeer connections, where each peer will advertise the tx-id to be used on the link.
|
|
372
|
-
class TxId < Attribute
|
|
373
|
-
TYPE: ::Integer
|
|
374
|
-
|
|
375
|
-
NAME: ::Symbol
|
|
376
|
-
|
|
377
|
-
# @private
|
|
378
|
-
ORDER: ::Integer
|
|
379
|
-
|
|
380
|
-
# @private
|
|
381
|
-
DATATYPE: untyped
|
|
382
|
-
end
|
|
383
|
-
|
|
384
|
-
# @private
|
|
385
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
386
|
-
|
|
387
|
-
# @private
|
|
388
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
389
|
-
|
|
390
|
-
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
391
|
-
# @rbs return: ::Integer
|
|
392
|
-
# @return [Integer]
|
|
393
|
-
# @see Id
|
|
394
|
-
def id: () -> ::Integer
|
|
395
|
-
|
|
396
|
-
# The remote IPv4 address of the peer
|
|
397
|
-
# @rbs return: ::Integer
|
|
398
|
-
# @return [Integer]
|
|
399
|
-
# @see RemoteIpv4
|
|
400
|
-
def remote_ipv4: () -> ::Integer
|
|
401
|
-
|
|
402
|
-
# The remote IPv6 address of the peer
|
|
403
|
-
# @rbs return: ::String
|
|
404
|
-
# @return [String]
|
|
405
|
-
# @see RemoteIpv6
|
|
406
|
-
def remote_ipv6: () -> ::String
|
|
407
|
-
|
|
408
|
-
# The scope id of the remote IPv6 address of the peer (RFC2553)
|
|
409
|
-
# @rbs return: ::Integer
|
|
410
|
-
# @return [Integer]
|
|
411
|
-
# @see RemoteIpv6ScopeId
|
|
412
|
-
def remote_ipv6_scope_id: () -> ::Integer
|
|
413
|
-
|
|
414
|
-
# The remote port of the peer
|
|
415
|
-
# @rbs return: ::Integer
|
|
416
|
-
# @return [Integer]
|
|
417
|
-
# @see RemotePort
|
|
418
|
-
def remote_port: () -> ::Integer
|
|
419
|
-
|
|
420
|
-
# The socket to be used to communicate with the peer
|
|
421
|
-
# @rbs return: ::Integer
|
|
422
|
-
# @return [Integer]
|
|
423
|
-
# @see Socket
|
|
424
|
-
def socket: () -> ::Integer
|
|
425
|
-
|
|
426
|
-
# The ID of the netns the socket assigned to this peer lives in
|
|
427
|
-
# @rbs return: ::Integer
|
|
428
|
-
# @return [Integer]
|
|
429
|
-
# @see SocketNetnsid
|
|
430
|
-
def socket_netnsid: () -> ::Integer
|
|
431
|
-
|
|
432
|
-
# The IPv4 address assigned to the peer by the server
|
|
433
|
-
# @rbs return: ::Integer
|
|
434
|
-
# @return [Integer]
|
|
435
|
-
# @see VpnIpv4
|
|
436
|
-
def vpn_ipv4: () -> ::Integer
|
|
437
|
-
|
|
438
|
-
# The IPv6 address assigned to the peer by the server
|
|
439
|
-
# @rbs return: ::String
|
|
440
|
-
# @return [String]
|
|
441
|
-
# @see VpnIpv6
|
|
442
|
-
def vpn_ipv6: () -> ::String
|
|
443
|
-
|
|
444
|
-
# The local IPv4 to be used to send packets to the peer (UDP only)
|
|
445
|
-
# @rbs return: ::Integer
|
|
446
|
-
# @return [Integer]
|
|
447
|
-
# @see LocalIpv4
|
|
448
|
-
def local_ipv4: () -> ::Integer
|
|
449
|
-
|
|
450
|
-
# The local IPv6 to be used to send packets to the peer (UDP only)
|
|
451
|
-
# @rbs return: ::String
|
|
452
|
-
# @return [String]
|
|
453
|
-
# @see LocalIpv6
|
|
454
|
-
def local_ipv6: () -> ::String
|
|
455
|
-
|
|
456
|
-
# The local port to be used to send packets to the peer (UDP only)
|
|
457
|
-
# @rbs return: ::Integer
|
|
458
|
-
# @return [Integer]
|
|
459
|
-
# @see LocalPort
|
|
460
|
-
def local_port: () -> ::Integer
|
|
461
|
-
|
|
462
|
-
# The number of seconds after which a keep alive message is sent to the peer
|
|
463
|
-
# @rbs return: ::Integer
|
|
464
|
-
# @return [Integer]
|
|
465
|
-
# @see KeepaliveInterval
|
|
466
|
-
def keepalive_interval: () -> ::Integer
|
|
467
|
-
|
|
468
|
-
# The number of seconds from the last activity after which the peer is assumed dead
|
|
469
|
-
# @rbs return: ::Integer
|
|
470
|
-
# @return [Integer]
|
|
471
|
-
# @see KeepaliveTimeout
|
|
472
|
-
def keepalive_timeout: () -> ::Integer
|
|
473
|
-
|
|
474
|
-
# The reason why a peer was deleted
|
|
475
|
-
#
|
|
476
|
-
# Known enum values are defined in {Enums::DelPeerReason}.
|
|
477
|
-
# @rbs return: ::Integer
|
|
478
|
-
# @return [Integer]
|
|
479
|
-
# @see DelReason
|
|
480
|
-
def del_reason: () -> ::Integer
|
|
481
|
-
|
|
482
|
-
# Number of bytes received over the tunnel
|
|
483
|
-
# @rbs return: ::Integer
|
|
484
|
-
# @return [Integer]
|
|
485
|
-
# @see VpnRxBytes
|
|
486
|
-
def vpn_rx_bytes: () -> ::Integer
|
|
487
|
-
|
|
488
|
-
# Number of bytes transmitted over the tunnel
|
|
489
|
-
# @rbs return: ::Integer
|
|
490
|
-
# @return [Integer]
|
|
491
|
-
# @see VpnTxBytes
|
|
492
|
-
def vpn_tx_bytes: () -> ::Integer
|
|
493
|
-
|
|
494
|
-
# Number of packets received over the tunnel
|
|
495
|
-
# @rbs return: ::Integer
|
|
496
|
-
# @return [Integer]
|
|
497
|
-
# @see VpnRxPackets
|
|
498
|
-
def vpn_rx_packets: () -> ::Integer
|
|
499
|
-
|
|
500
|
-
# Number of packets transmitted over the tunnel
|
|
501
|
-
# @rbs return: ::Integer
|
|
502
|
-
# @return [Integer]
|
|
503
|
-
# @see VpnTxPackets
|
|
504
|
-
def vpn_tx_packets: () -> ::Integer
|
|
505
|
-
|
|
506
|
-
# Number of bytes received at the transport level
|
|
507
|
-
# @rbs return: ::Integer
|
|
508
|
-
# @return [Integer]
|
|
509
|
-
# @see LinkRxBytes
|
|
510
|
-
def link_rx_bytes: () -> ::Integer
|
|
511
|
-
|
|
512
|
-
# Number of bytes transmitted at the transport level
|
|
513
|
-
# @rbs return: ::Integer
|
|
514
|
-
# @return [Integer]
|
|
515
|
-
# @see LinkTxBytes
|
|
516
|
-
def link_tx_bytes: () -> ::Integer
|
|
517
|
-
|
|
518
|
-
# Number of packets received at the transport level
|
|
519
|
-
# @rbs return: ::Integer
|
|
520
|
-
# @return [Integer]
|
|
521
|
-
# @see LinkRxPackets
|
|
522
|
-
def link_rx_packets: () -> ::Integer
|
|
523
|
-
|
|
524
|
-
# Number of packets transmitted at the transport level
|
|
525
|
-
# @rbs return: ::Integer
|
|
526
|
-
# @return [Integer]
|
|
527
|
-
# @see LinkTxPackets
|
|
528
|
-
def link_tx_packets: () -> ::Integer
|
|
529
|
-
|
|
530
|
-
# The ID value used when transmitting packets to this peer. This way outgoing packets can have a different ID than incoming ones. Useful in multipeer-to-multipeer connections, where each peer will advertise the tx-id to be used on the link.
|
|
531
|
-
# @rbs return: ::Integer
|
|
532
|
-
# @return [Integer]
|
|
533
|
-
# @see TxId
|
|
534
|
-
def tx_id: () -> ::Integer
|
|
535
|
-
|
|
536
|
-
# Looks up Attribute class by name.
|
|
537
|
-
# @rbs name: Symbol
|
|
538
|
-
# @rbs return: Attribute
|
|
539
|
-
# @param [Symbol] name
|
|
540
|
-
# @return [Attribute]
|
|
541
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
542
|
-
|
|
543
|
-
# Looks up Attribute class by type value.
|
|
544
|
-
# @rbs type: Integer
|
|
545
|
-
# @rbs return: Attribute
|
|
546
|
-
# @param [Integer] type
|
|
547
|
-
# @return [Attribute]
|
|
548
|
-
def self.by_type: (Integer type) -> Attribute
|
|
549
|
-
end
|
|
550
|
-
|
|
551
|
-
class PeerNewInput < ::Nl::AttributeSet
|
|
552
|
-
# Abstract class
|
|
553
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
554
|
-
end
|
|
555
|
-
|
|
556
|
-
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
557
|
-
class Id < Attribute
|
|
558
|
-
TYPE: ::Integer
|
|
559
|
-
|
|
560
|
-
NAME: ::Symbol
|
|
561
|
-
|
|
562
|
-
# @private
|
|
563
|
-
ORDER: ::Integer
|
|
564
|
-
|
|
565
|
-
# @private
|
|
566
|
-
DATATYPE: untyped
|
|
567
|
-
end
|
|
568
|
-
|
|
569
|
-
# The remote IPv4 address of the peer
|
|
570
|
-
class RemoteIpv4 < Attribute
|
|
571
|
-
TYPE: ::Integer
|
|
572
|
-
|
|
573
|
-
NAME: ::Symbol
|
|
574
|
-
|
|
575
|
-
# @private
|
|
576
|
-
ORDER: ::Integer
|
|
577
|
-
|
|
578
|
-
# @private
|
|
579
|
-
DATATYPE: untyped
|
|
580
|
-
end
|
|
581
|
-
|
|
582
|
-
# The remote IPv6 address of the peer
|
|
583
|
-
class RemoteIpv6 < Attribute
|
|
584
|
-
TYPE: ::Integer
|
|
585
|
-
|
|
586
|
-
NAME: ::Symbol
|
|
587
|
-
|
|
588
|
-
# @private
|
|
589
|
-
ORDER: ::Integer
|
|
590
|
-
|
|
591
|
-
# @private
|
|
592
|
-
DATATYPE: untyped
|
|
593
|
-
end
|
|
594
|
-
|
|
595
|
-
# The scope id of the remote IPv6 address of the peer (RFC2553)
|
|
596
|
-
class RemoteIpv6ScopeId < Attribute
|
|
597
|
-
TYPE: ::Integer
|
|
598
|
-
|
|
599
|
-
NAME: ::Symbol
|
|
600
|
-
|
|
601
|
-
# @private
|
|
602
|
-
ORDER: ::Integer
|
|
603
|
-
|
|
604
|
-
# @private
|
|
605
|
-
DATATYPE: untyped
|
|
606
|
-
end
|
|
607
|
-
|
|
608
|
-
# The remote port of the peer
|
|
609
|
-
class RemotePort < Attribute
|
|
610
|
-
TYPE: ::Integer
|
|
611
|
-
|
|
612
|
-
NAME: ::Symbol
|
|
613
|
-
|
|
614
|
-
# @private
|
|
615
|
-
ORDER: ::Integer
|
|
616
|
-
|
|
617
|
-
# @private
|
|
618
|
-
DATATYPE: untyped
|
|
619
|
-
end
|
|
620
|
-
|
|
621
|
-
# The socket to be used to communicate with the peer
|
|
622
|
-
class Socket < Attribute
|
|
623
|
-
TYPE: ::Integer
|
|
624
|
-
|
|
625
|
-
NAME: ::Symbol
|
|
626
|
-
|
|
627
|
-
# @private
|
|
628
|
-
ORDER: ::Integer
|
|
629
|
-
|
|
630
|
-
# @private
|
|
631
|
-
DATATYPE: untyped
|
|
632
|
-
end
|
|
633
|
-
|
|
634
|
-
# The IPv4 address assigned to the peer by the server
|
|
635
|
-
class VpnIpv4 < Attribute
|
|
636
|
-
TYPE: ::Integer
|
|
637
|
-
|
|
638
|
-
NAME: ::Symbol
|
|
639
|
-
|
|
640
|
-
# @private
|
|
641
|
-
ORDER: ::Integer
|
|
642
|
-
|
|
643
|
-
# @private
|
|
644
|
-
DATATYPE: untyped
|
|
645
|
-
end
|
|
646
|
-
|
|
647
|
-
# The IPv6 address assigned to the peer by the server
|
|
648
|
-
class VpnIpv6 < Attribute
|
|
649
|
-
TYPE: ::Integer
|
|
650
|
-
|
|
651
|
-
NAME: ::Symbol
|
|
652
|
-
|
|
653
|
-
# @private
|
|
654
|
-
ORDER: ::Integer
|
|
655
|
-
|
|
656
|
-
# @private
|
|
657
|
-
DATATYPE: untyped
|
|
658
|
-
end
|
|
659
|
-
|
|
660
|
-
# The local IPv4 to be used to send packets to the peer (UDP only)
|
|
661
|
-
class LocalIpv4 < Attribute
|
|
662
|
-
TYPE: ::Integer
|
|
663
|
-
|
|
664
|
-
NAME: ::Symbol
|
|
665
|
-
|
|
666
|
-
# @private
|
|
667
|
-
ORDER: ::Integer
|
|
668
|
-
|
|
669
|
-
# @private
|
|
670
|
-
DATATYPE: untyped
|
|
671
|
-
end
|
|
672
|
-
|
|
673
|
-
# The local IPv6 to be used to send packets to the peer (UDP only)
|
|
674
|
-
class LocalIpv6 < Attribute
|
|
675
|
-
TYPE: ::Integer
|
|
676
|
-
|
|
677
|
-
NAME: ::Symbol
|
|
678
|
-
|
|
679
|
-
# @private
|
|
680
|
-
ORDER: ::Integer
|
|
681
|
-
|
|
682
|
-
# @private
|
|
683
|
-
DATATYPE: untyped
|
|
684
|
-
end
|
|
685
|
-
|
|
686
|
-
# The number of seconds after which a keep alive message is sent to the peer
|
|
687
|
-
class KeepaliveInterval < Attribute
|
|
688
|
-
TYPE: ::Integer
|
|
689
|
-
|
|
690
|
-
NAME: ::Symbol
|
|
691
|
-
|
|
692
|
-
# @private
|
|
693
|
-
ORDER: ::Integer
|
|
694
|
-
|
|
695
|
-
# @private
|
|
696
|
-
DATATYPE: untyped
|
|
697
|
-
end
|
|
698
|
-
|
|
699
|
-
# The number of seconds from the last activity after which the peer is assumed dead
|
|
700
|
-
class KeepaliveTimeout < Attribute
|
|
701
|
-
TYPE: ::Integer
|
|
702
|
-
|
|
703
|
-
NAME: ::Symbol
|
|
704
|
-
|
|
705
|
-
# @private
|
|
706
|
-
ORDER: ::Integer
|
|
707
|
-
|
|
708
|
-
# @private
|
|
709
|
-
DATATYPE: untyped
|
|
710
|
-
end
|
|
711
|
-
|
|
712
|
-
# The ID value used when transmitting packets to this peer. This way outgoing packets can have a different ID than incoming ones. Useful in multipeer-to-multipeer connections, where each peer will advertise the tx-id to be used on the link.
|
|
713
|
-
class TxId < Attribute
|
|
714
|
-
TYPE: ::Integer
|
|
715
|
-
|
|
716
|
-
NAME: ::Symbol
|
|
717
|
-
|
|
718
|
-
# @private
|
|
719
|
-
ORDER: ::Integer
|
|
720
|
-
|
|
721
|
-
# @private
|
|
722
|
-
DATATYPE: untyped
|
|
723
|
-
end
|
|
724
|
-
|
|
725
|
-
# @private
|
|
726
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
727
|
-
|
|
728
|
-
# @private
|
|
729
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
730
|
-
|
|
731
|
-
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
732
|
-
# @rbs return: ::Integer
|
|
733
|
-
# @return [Integer]
|
|
734
|
-
# @see Id
|
|
735
|
-
def id: () -> ::Integer
|
|
736
|
-
|
|
737
|
-
# The remote IPv4 address of the peer
|
|
738
|
-
# @rbs return: ::Integer
|
|
739
|
-
# @return [Integer]
|
|
740
|
-
# @see RemoteIpv4
|
|
741
|
-
def remote_ipv4: () -> ::Integer
|
|
742
|
-
|
|
743
|
-
# The remote IPv6 address of the peer
|
|
744
|
-
# @rbs return: ::String
|
|
745
|
-
# @return [String]
|
|
746
|
-
# @see RemoteIpv6
|
|
747
|
-
def remote_ipv6: () -> ::String
|
|
748
|
-
|
|
749
|
-
# The scope id of the remote IPv6 address of the peer (RFC2553)
|
|
750
|
-
# @rbs return: ::Integer
|
|
751
|
-
# @return [Integer]
|
|
752
|
-
# @see RemoteIpv6ScopeId
|
|
753
|
-
def remote_ipv6_scope_id: () -> ::Integer
|
|
754
|
-
|
|
755
|
-
# The remote port of the peer
|
|
756
|
-
# @rbs return: ::Integer
|
|
757
|
-
# @return [Integer]
|
|
758
|
-
# @see RemotePort
|
|
759
|
-
def remote_port: () -> ::Integer
|
|
760
|
-
|
|
761
|
-
# The socket to be used to communicate with the peer
|
|
762
|
-
# @rbs return: ::Integer
|
|
763
|
-
# @return [Integer]
|
|
764
|
-
# @see Socket
|
|
765
|
-
def socket: () -> ::Integer
|
|
766
|
-
|
|
767
|
-
# The IPv4 address assigned to the peer by the server
|
|
768
|
-
# @rbs return: ::Integer
|
|
769
|
-
# @return [Integer]
|
|
770
|
-
# @see VpnIpv4
|
|
771
|
-
def vpn_ipv4: () -> ::Integer
|
|
772
|
-
|
|
773
|
-
# The IPv6 address assigned to the peer by the server
|
|
774
|
-
# @rbs return: ::String
|
|
775
|
-
# @return [String]
|
|
776
|
-
# @see VpnIpv6
|
|
777
|
-
def vpn_ipv6: () -> ::String
|
|
778
|
-
|
|
779
|
-
# The local IPv4 to be used to send packets to the peer (UDP only)
|
|
780
|
-
# @rbs return: ::Integer
|
|
781
|
-
# @return [Integer]
|
|
782
|
-
# @see LocalIpv4
|
|
783
|
-
def local_ipv4: () -> ::Integer
|
|
784
|
-
|
|
785
|
-
# The local IPv6 to be used to send packets to the peer (UDP only)
|
|
786
|
-
# @rbs return: ::String
|
|
787
|
-
# @return [String]
|
|
788
|
-
# @see LocalIpv6
|
|
789
|
-
def local_ipv6: () -> ::String
|
|
790
|
-
|
|
791
|
-
# The number of seconds after which a keep alive message is sent to the peer
|
|
792
|
-
# @rbs return: ::Integer
|
|
793
|
-
# @return [Integer]
|
|
794
|
-
# @see KeepaliveInterval
|
|
795
|
-
def keepalive_interval: () -> ::Integer
|
|
796
|
-
|
|
797
|
-
# The number of seconds from the last activity after which the peer is assumed dead
|
|
798
|
-
# @rbs return: ::Integer
|
|
799
|
-
# @return [Integer]
|
|
800
|
-
# @see KeepaliveTimeout
|
|
801
|
-
def keepalive_timeout: () -> ::Integer
|
|
802
|
-
|
|
803
|
-
# The ID value used when transmitting packets to this peer. This way outgoing packets can have a different ID than incoming ones. Useful in multipeer-to-multipeer connections, where each peer will advertise the tx-id to be used on the link.
|
|
804
|
-
# @rbs return: ::Integer
|
|
805
|
-
# @return [Integer]
|
|
806
|
-
# @see TxId
|
|
807
|
-
def tx_id: () -> ::Integer
|
|
808
|
-
|
|
809
|
-
# Looks up Attribute class by name.
|
|
810
|
-
# @rbs name: Symbol
|
|
811
|
-
# @rbs return: Attribute
|
|
812
|
-
# @param [Symbol] name
|
|
813
|
-
# @return [Attribute]
|
|
814
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
815
|
-
|
|
816
|
-
# Looks up Attribute class by type value.
|
|
817
|
-
# @rbs type: Integer
|
|
818
|
-
# @rbs return: Attribute
|
|
819
|
-
# @param [Integer] type
|
|
820
|
-
# @return [Attribute]
|
|
821
|
-
def self.by_type: (Integer type) -> Attribute
|
|
822
|
-
end
|
|
823
|
-
|
|
824
|
-
class PeerSetInput < ::Nl::AttributeSet
|
|
825
|
-
# Abstract class
|
|
826
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
827
|
-
end
|
|
828
|
-
|
|
829
|
-
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
830
|
-
class Id < Attribute
|
|
831
|
-
TYPE: ::Integer
|
|
832
|
-
|
|
833
|
-
NAME: ::Symbol
|
|
834
|
-
|
|
835
|
-
# @private
|
|
836
|
-
ORDER: ::Integer
|
|
837
|
-
|
|
838
|
-
# @private
|
|
839
|
-
DATATYPE: untyped
|
|
840
|
-
end
|
|
841
|
-
|
|
842
|
-
# The remote IPv4 address of the peer
|
|
843
|
-
class RemoteIpv4 < Attribute
|
|
844
|
-
TYPE: ::Integer
|
|
845
|
-
|
|
846
|
-
NAME: ::Symbol
|
|
847
|
-
|
|
848
|
-
# @private
|
|
849
|
-
ORDER: ::Integer
|
|
850
|
-
|
|
851
|
-
# @private
|
|
852
|
-
DATATYPE: untyped
|
|
853
|
-
end
|
|
854
|
-
|
|
855
|
-
# The remote IPv6 address of the peer
|
|
856
|
-
class RemoteIpv6 < Attribute
|
|
857
|
-
TYPE: ::Integer
|
|
858
|
-
|
|
859
|
-
NAME: ::Symbol
|
|
860
|
-
|
|
861
|
-
# @private
|
|
862
|
-
ORDER: ::Integer
|
|
863
|
-
|
|
864
|
-
# @private
|
|
865
|
-
DATATYPE: untyped
|
|
866
|
-
end
|
|
867
|
-
|
|
868
|
-
# The scope id of the remote IPv6 address of the peer (RFC2553)
|
|
869
|
-
class RemoteIpv6ScopeId < Attribute
|
|
870
|
-
TYPE: ::Integer
|
|
871
|
-
|
|
872
|
-
NAME: ::Symbol
|
|
873
|
-
|
|
874
|
-
# @private
|
|
875
|
-
ORDER: ::Integer
|
|
876
|
-
|
|
877
|
-
# @private
|
|
878
|
-
DATATYPE: untyped
|
|
879
|
-
end
|
|
880
|
-
|
|
881
|
-
# The remote port of the peer
|
|
882
|
-
class RemotePort < Attribute
|
|
883
|
-
TYPE: ::Integer
|
|
884
|
-
|
|
885
|
-
NAME: ::Symbol
|
|
886
|
-
|
|
887
|
-
# @private
|
|
888
|
-
ORDER: ::Integer
|
|
889
|
-
|
|
890
|
-
# @private
|
|
891
|
-
DATATYPE: untyped
|
|
892
|
-
end
|
|
893
|
-
|
|
894
|
-
# The IPv4 address assigned to the peer by the server
|
|
895
|
-
class VpnIpv4 < Attribute
|
|
896
|
-
TYPE: ::Integer
|
|
897
|
-
|
|
898
|
-
NAME: ::Symbol
|
|
899
|
-
|
|
900
|
-
# @private
|
|
901
|
-
ORDER: ::Integer
|
|
902
|
-
|
|
903
|
-
# @private
|
|
904
|
-
DATATYPE: untyped
|
|
905
|
-
end
|
|
906
|
-
|
|
907
|
-
# The IPv6 address assigned to the peer by the server
|
|
908
|
-
class VpnIpv6 < Attribute
|
|
909
|
-
TYPE: ::Integer
|
|
910
|
-
|
|
911
|
-
NAME: ::Symbol
|
|
912
|
-
|
|
913
|
-
# @private
|
|
914
|
-
ORDER: ::Integer
|
|
915
|
-
|
|
916
|
-
# @private
|
|
917
|
-
DATATYPE: untyped
|
|
918
|
-
end
|
|
919
|
-
|
|
920
|
-
# The local IPv4 to be used to send packets to the peer (UDP only)
|
|
921
|
-
class LocalIpv4 < Attribute
|
|
922
|
-
TYPE: ::Integer
|
|
923
|
-
|
|
924
|
-
NAME: ::Symbol
|
|
925
|
-
|
|
926
|
-
# @private
|
|
927
|
-
ORDER: ::Integer
|
|
928
|
-
|
|
929
|
-
# @private
|
|
930
|
-
DATATYPE: untyped
|
|
931
|
-
end
|
|
932
|
-
|
|
933
|
-
# The local IPv6 to be used to send packets to the peer (UDP only)
|
|
934
|
-
class LocalIpv6 < Attribute
|
|
935
|
-
TYPE: ::Integer
|
|
936
|
-
|
|
937
|
-
NAME: ::Symbol
|
|
938
|
-
|
|
939
|
-
# @private
|
|
940
|
-
ORDER: ::Integer
|
|
941
|
-
|
|
942
|
-
# @private
|
|
943
|
-
DATATYPE: untyped
|
|
944
|
-
end
|
|
945
|
-
|
|
946
|
-
# The number of seconds after which a keep alive message is sent to the peer
|
|
947
|
-
class KeepaliveInterval < Attribute
|
|
948
|
-
TYPE: ::Integer
|
|
949
|
-
|
|
950
|
-
NAME: ::Symbol
|
|
951
|
-
|
|
952
|
-
# @private
|
|
953
|
-
ORDER: ::Integer
|
|
954
|
-
|
|
955
|
-
# @private
|
|
956
|
-
DATATYPE: untyped
|
|
957
|
-
end
|
|
958
|
-
|
|
959
|
-
# The number of seconds from the last activity after which the peer is assumed dead
|
|
960
|
-
class KeepaliveTimeout < Attribute
|
|
961
|
-
TYPE: ::Integer
|
|
962
|
-
|
|
963
|
-
NAME: ::Symbol
|
|
964
|
-
|
|
965
|
-
# @private
|
|
966
|
-
ORDER: ::Integer
|
|
967
|
-
|
|
968
|
-
# @private
|
|
969
|
-
DATATYPE: untyped
|
|
970
|
-
end
|
|
971
|
-
|
|
972
|
-
# The ID value used when transmitting packets to this peer. This way outgoing packets can have a different ID than incoming ones. Useful in multipeer-to-multipeer connections, where each peer will advertise the tx-id to be used on the link.
|
|
973
|
-
class TxId < Attribute
|
|
974
|
-
TYPE: ::Integer
|
|
975
|
-
|
|
976
|
-
NAME: ::Symbol
|
|
977
|
-
|
|
978
|
-
# @private
|
|
979
|
-
ORDER: ::Integer
|
|
980
|
-
|
|
981
|
-
# @private
|
|
982
|
-
DATATYPE: untyped
|
|
983
|
-
end
|
|
984
|
-
|
|
985
|
-
# @private
|
|
986
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
987
|
-
|
|
988
|
-
# @private
|
|
989
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
990
|
-
|
|
991
|
-
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
992
|
-
# @rbs return: ::Integer
|
|
993
|
-
# @return [Integer]
|
|
994
|
-
# @see Id
|
|
995
|
-
def id: () -> ::Integer
|
|
996
|
-
|
|
997
|
-
# The remote IPv4 address of the peer
|
|
998
|
-
# @rbs return: ::Integer
|
|
999
|
-
# @return [Integer]
|
|
1000
|
-
# @see RemoteIpv4
|
|
1001
|
-
def remote_ipv4: () -> ::Integer
|
|
1002
|
-
|
|
1003
|
-
# The remote IPv6 address of the peer
|
|
1004
|
-
# @rbs return: ::String
|
|
1005
|
-
# @return [String]
|
|
1006
|
-
# @see RemoteIpv6
|
|
1007
|
-
def remote_ipv6: () -> ::String
|
|
1008
|
-
|
|
1009
|
-
# The scope id of the remote IPv6 address of the peer (RFC2553)
|
|
1010
|
-
# @rbs return: ::Integer
|
|
1011
|
-
# @return [Integer]
|
|
1012
|
-
# @see RemoteIpv6ScopeId
|
|
1013
|
-
def remote_ipv6_scope_id: () -> ::Integer
|
|
1014
|
-
|
|
1015
|
-
# The remote port of the peer
|
|
1016
|
-
# @rbs return: ::Integer
|
|
1017
|
-
# @return [Integer]
|
|
1018
|
-
# @see RemotePort
|
|
1019
|
-
def remote_port: () -> ::Integer
|
|
1020
|
-
|
|
1021
|
-
# The IPv4 address assigned to the peer by the server
|
|
1022
|
-
# @rbs return: ::Integer
|
|
1023
|
-
# @return [Integer]
|
|
1024
|
-
# @see VpnIpv4
|
|
1025
|
-
def vpn_ipv4: () -> ::Integer
|
|
1026
|
-
|
|
1027
|
-
# The IPv6 address assigned to the peer by the server
|
|
1028
|
-
# @rbs return: ::String
|
|
1029
|
-
# @return [String]
|
|
1030
|
-
# @see VpnIpv6
|
|
1031
|
-
def vpn_ipv6: () -> ::String
|
|
1032
|
-
|
|
1033
|
-
# The local IPv4 to be used to send packets to the peer (UDP only)
|
|
1034
|
-
# @rbs return: ::Integer
|
|
1035
|
-
# @return [Integer]
|
|
1036
|
-
# @see LocalIpv4
|
|
1037
|
-
def local_ipv4: () -> ::Integer
|
|
1038
|
-
|
|
1039
|
-
# The local IPv6 to be used to send packets to the peer (UDP only)
|
|
1040
|
-
# @rbs return: ::String
|
|
1041
|
-
# @return [String]
|
|
1042
|
-
# @see LocalIpv6
|
|
1043
|
-
def local_ipv6: () -> ::String
|
|
1044
|
-
|
|
1045
|
-
# The number of seconds after which a keep alive message is sent to the peer
|
|
1046
|
-
# @rbs return: ::Integer
|
|
1047
|
-
# @return [Integer]
|
|
1048
|
-
# @see KeepaliveInterval
|
|
1049
|
-
def keepalive_interval: () -> ::Integer
|
|
1050
|
-
|
|
1051
|
-
# The number of seconds from the last activity after which the peer is assumed dead
|
|
1052
|
-
# @rbs return: ::Integer
|
|
1053
|
-
# @return [Integer]
|
|
1054
|
-
# @see KeepaliveTimeout
|
|
1055
|
-
def keepalive_timeout: () -> ::Integer
|
|
1056
|
-
|
|
1057
|
-
# The ID value used when transmitting packets to this peer. This way outgoing packets can have a different ID than incoming ones. Useful in multipeer-to-multipeer connections, where each peer will advertise the tx-id to be used on the link.
|
|
1058
|
-
# @rbs return: ::Integer
|
|
1059
|
-
# @return [Integer]
|
|
1060
|
-
# @see TxId
|
|
1061
|
-
def tx_id: () -> ::Integer
|
|
1062
|
-
|
|
1063
|
-
# Looks up Attribute class by name.
|
|
1064
|
-
# @rbs name: Symbol
|
|
1065
|
-
# @rbs return: Attribute
|
|
1066
|
-
# @param [Symbol] name
|
|
1067
|
-
# @return [Attribute]
|
|
1068
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1069
|
-
|
|
1070
|
-
# Looks up Attribute class by type value.
|
|
1071
|
-
# @rbs type: Integer
|
|
1072
|
-
# @rbs return: Attribute
|
|
1073
|
-
# @param [Integer] type
|
|
1074
|
-
# @return [Attribute]
|
|
1075
|
-
def self.by_type: (Integer type) -> Attribute
|
|
1076
|
-
end
|
|
1077
|
-
|
|
1078
|
-
class PeerDelInput < ::Nl::AttributeSet
|
|
1079
|
-
# Abstract class
|
|
1080
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
1081
|
-
end
|
|
1082
|
-
|
|
1083
|
-
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
1084
|
-
class Id < Attribute
|
|
1085
|
-
TYPE: ::Integer
|
|
1086
|
-
|
|
1087
|
-
NAME: ::Symbol
|
|
1088
|
-
|
|
1089
|
-
# @private
|
|
1090
|
-
ORDER: ::Integer
|
|
1091
|
-
|
|
1092
|
-
# @private
|
|
1093
|
-
DATATYPE: untyped
|
|
1094
|
-
end
|
|
1095
|
-
|
|
1096
|
-
# @private
|
|
1097
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
1098
|
-
|
|
1099
|
-
# @private
|
|
1100
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
1101
|
-
|
|
1102
|
-
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
1103
|
-
# @rbs return: ::Integer
|
|
1104
|
-
# @return [Integer]
|
|
1105
|
-
# @see Id
|
|
1106
|
-
def id: () -> ::Integer
|
|
1107
|
-
|
|
1108
|
-
# Looks up Attribute class by name.
|
|
1109
|
-
# @rbs name: Symbol
|
|
1110
|
-
# @rbs return: Attribute
|
|
1111
|
-
# @param [Symbol] name
|
|
1112
|
-
# @return [Attribute]
|
|
1113
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1114
|
-
|
|
1115
|
-
# Looks up Attribute class by type value.
|
|
1116
|
-
# @rbs type: Integer
|
|
1117
|
-
# @rbs return: Attribute
|
|
1118
|
-
# @param [Integer] type
|
|
1119
|
-
# @return [Attribute]
|
|
1120
|
-
def self.by_type: (Integer type) -> Attribute
|
|
1121
|
-
end
|
|
1122
|
-
|
|
1123
|
-
class Keyconf < ::Nl::AttributeSet
|
|
1124
|
-
# Abstract class
|
|
1125
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
1126
|
-
end
|
|
1127
|
-
|
|
1128
|
-
# The unique ID of the peer in the device context. To be used to identify peers during key operations
|
|
1129
|
-
class PeerId < Attribute
|
|
1130
|
-
TYPE: ::Integer
|
|
1131
|
-
|
|
1132
|
-
NAME: ::Symbol
|
|
1133
|
-
|
|
1134
|
-
# @private
|
|
1135
|
-
ORDER: ::Integer
|
|
1136
|
-
|
|
1137
|
-
# @private
|
|
1138
|
-
DATATYPE: untyped
|
|
1139
|
-
end
|
|
1140
|
-
|
|
1141
|
-
# The slot where the key should be stored
|
|
1142
|
-
#
|
|
1143
|
-
# Known enum values are defined in {Enums::KeySlot}.
|
|
1144
|
-
class Slot < Attribute
|
|
1145
|
-
TYPE: ::Integer
|
|
1146
|
-
|
|
1147
|
-
NAME: ::Symbol
|
|
1148
|
-
|
|
1149
|
-
# @private
|
|
1150
|
-
ORDER: ::Integer
|
|
1151
|
-
|
|
1152
|
-
# @private
|
|
1153
|
-
DATATYPE: untyped
|
|
1154
|
-
end
|
|
1155
|
-
|
|
1156
|
-
# The unique ID of the key in the peer context. Used to fetch the correct key upon decryption
|
|
1157
|
-
class KeyId < Attribute
|
|
1158
|
-
TYPE: ::Integer
|
|
1159
|
-
|
|
1160
|
-
NAME: ::Symbol
|
|
1161
|
-
|
|
1162
|
-
# @private
|
|
1163
|
-
ORDER: ::Integer
|
|
1164
|
-
|
|
1165
|
-
# @private
|
|
1166
|
-
DATATYPE: untyped
|
|
1167
|
-
end
|
|
1168
|
-
|
|
1169
|
-
# The cipher to be used when communicating with the peer
|
|
1170
|
-
#
|
|
1171
|
-
# Known enum values are defined in {Enums::CipherAlg}.
|
|
1172
|
-
class CipherAlg < Attribute
|
|
1173
|
-
TYPE: ::Integer
|
|
1174
|
-
|
|
1175
|
-
NAME: ::Symbol
|
|
1176
|
-
|
|
1177
|
-
# @private
|
|
1178
|
-
ORDER: ::Integer
|
|
1179
|
-
|
|
1180
|
-
# @private
|
|
1181
|
-
DATATYPE: untyped
|
|
1182
|
-
end
|
|
1183
|
-
|
|
1184
|
-
# Key material for encrypt direction
|
|
1185
|
-
class EncryptDir < Attribute
|
|
1186
|
-
TYPE: ::Integer
|
|
1187
|
-
|
|
1188
|
-
NAME: ::Symbol
|
|
1189
|
-
|
|
1190
|
-
# @private
|
|
1191
|
-
ORDER: ::Integer
|
|
1192
|
-
end
|
|
1193
|
-
|
|
1194
|
-
# Key material for decrypt direction
|
|
1195
|
-
class DecryptDir < Attribute
|
|
1196
|
-
TYPE: ::Integer
|
|
1197
|
-
|
|
1198
|
-
NAME: ::Symbol
|
|
1199
|
-
|
|
1200
|
-
# @private
|
|
1201
|
-
ORDER: ::Integer
|
|
1202
|
-
end
|
|
1203
|
-
|
|
1204
|
-
# @private
|
|
1205
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
1206
|
-
|
|
1207
|
-
# @private
|
|
1208
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
1209
|
-
|
|
1210
|
-
# The unique ID of the peer in the device context. To be used to identify peers during key operations
|
|
1211
|
-
# @rbs return: ::Integer
|
|
1212
|
-
# @return [Integer]
|
|
1213
|
-
# @see PeerId
|
|
1214
|
-
def peer_id: () -> ::Integer
|
|
1215
|
-
|
|
1216
|
-
# The slot where the key should be stored
|
|
1217
|
-
#
|
|
1218
|
-
# Known enum values are defined in {Enums::KeySlot}.
|
|
1219
|
-
# @rbs return: ::Integer
|
|
1220
|
-
# @return [Integer]
|
|
1221
|
-
# @see Slot
|
|
1222
|
-
def slot: () -> ::Integer
|
|
1223
|
-
|
|
1224
|
-
# The unique ID of the key in the peer context. Used to fetch the correct key upon decryption
|
|
1225
|
-
# @rbs return: ::Integer
|
|
1226
|
-
# @return [Integer]
|
|
1227
|
-
# @see KeyId
|
|
1228
|
-
def key_id: () -> ::Integer
|
|
1229
|
-
|
|
1230
|
-
# The cipher to be used when communicating with the peer
|
|
1231
|
-
#
|
|
1232
|
-
# Known enum values are defined in {Enums::CipherAlg}.
|
|
1233
|
-
# @rbs return: ::Integer
|
|
1234
|
-
# @return [Integer]
|
|
1235
|
-
# @see CipherAlg
|
|
1236
|
-
def cipher_alg: () -> ::Integer
|
|
1237
|
-
|
|
1238
|
-
# Key material for encrypt direction
|
|
1239
|
-
# @rbs return: AttributeSets::Keydir
|
|
1240
|
-
# @return [AttributeSets::Keydir]
|
|
1241
|
-
# @see EncryptDir
|
|
1242
|
-
def encrypt_dir: () -> AttributeSets::Keydir
|
|
1243
|
-
|
|
1244
|
-
# Key material for decrypt direction
|
|
1245
|
-
# @rbs return: AttributeSets::Keydir
|
|
1246
|
-
# @return [AttributeSets::Keydir]
|
|
1247
|
-
# @see DecryptDir
|
|
1248
|
-
def decrypt_dir: () -> AttributeSets::Keydir
|
|
1249
|
-
|
|
1250
|
-
# Looks up Attribute class by name.
|
|
1251
|
-
# @rbs name: Symbol
|
|
1252
|
-
# @rbs return: Attribute
|
|
1253
|
-
# @param [Symbol] name
|
|
1254
|
-
# @return [Attribute]
|
|
1255
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1256
|
-
|
|
1257
|
-
# Looks up Attribute class by type value.
|
|
1258
|
-
# @rbs type: Integer
|
|
1259
|
-
# @rbs return: Attribute
|
|
1260
|
-
# @param [Integer] type
|
|
1261
|
-
# @return [Attribute]
|
|
1262
|
-
def self.by_type: (Integer type) -> Attribute
|
|
1263
|
-
end
|
|
1264
|
-
|
|
1265
|
-
class Keydir < ::Nl::AttributeSet
|
|
1266
|
-
# Abstract class
|
|
1267
|
-
class Attribute < ::Nl::AttributeSet::Attribute
|
|
1268
|
-
end
|
|
1269
|
-
|
|
1270
|
-
# The actual key to be used by the cipher
|
|
1271
|
-
class CipherKey < Attribute
|
|
1272
|
-
TYPE: ::Integer
|
|
1273
|
-
|
|
1274
|
-
NAME: ::Symbol
|
|
1275
|
-
|
|
1276
|
-
# @private
|
|
1277
|
-
ORDER: ::Integer
|
|
1278
|
-
|
|
1279
|
-
# @private
|
|
1280
|
-
DATATYPE: untyped
|
|
1281
|
-
end
|
|
1282
|
-
|
|
1283
|
-
# Random nonce to be concatenated to the packet ID, in order to obtain the actual cipher IV
|
|
1284
|
-
class NonceTail < Attribute
|
|
1285
|
-
TYPE: ::Integer
|
|
1286
|
-
|
|
1287
|
-
NAME: ::Symbol
|
|
1288
|
-
|
|
1289
|
-
# @private
|
|
1290
|
-
ORDER: ::Integer
|
|
1291
|
-
|
|
1292
|
-
# @private
|
|
1293
|
-
DATATYPE: untyped
|
|
1294
|
-
end
|
|
1295
|
-
|
|
1296
|
-
# @private
|
|
1297
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
1298
|
-
|
|
1299
|
-
# @private
|
|
1300
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
1301
|
-
|
|
1302
|
-
# The actual key to be used by the cipher
|
|
1303
|
-
# @rbs return: ::String
|
|
1304
|
-
# @return [String]
|
|
1305
|
-
# @see CipherKey
|
|
1306
|
-
def cipher_key: () -> ::String
|
|
1307
|
-
|
|
1308
|
-
# Random nonce to be concatenated to the packet ID, in order to obtain the actual cipher IV
|
|
1309
|
-
# @rbs return: ::String
|
|
1310
|
-
# @return [String]
|
|
1311
|
-
# @see NonceTail
|
|
1312
|
-
def nonce_tail: () -> ::String
|
|
1313
|
-
|
|
1314
|
-
# Looks up Attribute class by name.
|
|
1315
|
-
# @rbs name: Symbol
|
|
1316
|
-
# @rbs return: Attribute
|
|
1317
|
-
# @param [Symbol] name
|
|
1318
|
-
# @return [Attribute]
|
|
1319
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1320
|
-
|
|
1321
|
-
# Looks up Attribute class by type value.
|
|
1322
|
-
# @rbs type: Integer
|
|
1323
|
-
# @rbs return: Attribute
|
|
1324
|
-
# @param [Integer] type
|
|
1325
|
-
# @return [Attribute]
|
|
1326
|
-
def self.by_type: (Integer type) -> Attribute
|
|
66
|
+
module Definitions
|
|
67
|
+
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
68
|
+
# @rbs return: ::Integer
|
|
69
|
+
# @return [Integer]
|
|
70
|
+
def id: () -> ::Integer
|
|
71
|
+
|
|
72
|
+
# The remote IPv4 address of the peer
|
|
73
|
+
# @rbs return: ::Integer
|
|
74
|
+
# @return [Integer]
|
|
75
|
+
def remote_ipv4: () -> ::Integer
|
|
76
|
+
|
|
77
|
+
# The remote IPv6 address of the peer
|
|
78
|
+
# @rbs return: ::String
|
|
79
|
+
# @return [String]
|
|
80
|
+
def remote_ipv6: () -> ::String
|
|
81
|
+
|
|
82
|
+
# The scope id of the remote IPv6 address of the peer (RFC2553)
|
|
83
|
+
# @rbs return: ::Integer
|
|
84
|
+
# @return [Integer]
|
|
85
|
+
def remote_ipv6_scope_id: () -> ::Integer
|
|
86
|
+
|
|
87
|
+
# The remote port of the peer
|
|
88
|
+
# @rbs return: ::Integer
|
|
89
|
+
# @return [Integer]
|
|
90
|
+
def remote_port: () -> ::Integer
|
|
91
|
+
|
|
92
|
+
# The socket to be used to communicate with the peer
|
|
93
|
+
# @rbs return: ::Integer
|
|
94
|
+
# @return [Integer]
|
|
95
|
+
def socket: () -> ::Integer
|
|
96
|
+
|
|
97
|
+
# The ID of the netns the socket assigned to this peer lives in
|
|
98
|
+
# @rbs return: ::Integer
|
|
99
|
+
# @return [Integer]
|
|
100
|
+
def socket_netnsid: () -> ::Integer
|
|
101
|
+
|
|
102
|
+
# The IPv4 address assigned to the peer by the server
|
|
103
|
+
# @rbs return: ::Integer
|
|
104
|
+
# @return [Integer]
|
|
105
|
+
def vpn_ipv4: () -> ::Integer
|
|
106
|
+
|
|
107
|
+
# The IPv6 address assigned to the peer by the server
|
|
108
|
+
# @rbs return: ::String
|
|
109
|
+
# @return [String]
|
|
110
|
+
def vpn_ipv6: () -> ::String
|
|
111
|
+
|
|
112
|
+
# The local IPv4 to be used to send packets to the peer (UDP only)
|
|
113
|
+
# @rbs return: ::Integer
|
|
114
|
+
# @return [Integer]
|
|
115
|
+
def local_ipv4: () -> ::Integer
|
|
116
|
+
|
|
117
|
+
# The local IPv6 to be used to send packets to the peer (UDP only)
|
|
118
|
+
# @rbs return: ::String
|
|
119
|
+
# @return [String]
|
|
120
|
+
def local_ipv6: () -> ::String
|
|
121
|
+
|
|
122
|
+
# The local port to be used to send packets to the peer (UDP only)
|
|
123
|
+
# @rbs return: ::Integer
|
|
124
|
+
# @return [Integer]
|
|
125
|
+
def local_port: () -> ::Integer
|
|
126
|
+
|
|
127
|
+
# The number of seconds after which a keep alive message is sent to the peer
|
|
128
|
+
# @rbs return: ::Integer
|
|
129
|
+
# @return [Integer]
|
|
130
|
+
def keepalive_interval: () -> ::Integer
|
|
131
|
+
|
|
132
|
+
# The number of seconds from the last activity after which the peer is assumed dead
|
|
133
|
+
# @rbs return: ::Integer
|
|
134
|
+
# @return [Integer]
|
|
135
|
+
def keepalive_timeout: () -> ::Integer
|
|
136
|
+
|
|
137
|
+
# The reason why a peer was deleted
|
|
138
|
+
#
|
|
139
|
+
# Known enum values are defined in {Enums::DelPeerReason}.
|
|
140
|
+
# @rbs return: ::Integer
|
|
141
|
+
# @return [Integer]
|
|
142
|
+
def del_reason: () -> ::Integer
|
|
143
|
+
|
|
144
|
+
# Number of bytes received over the tunnel
|
|
145
|
+
# @rbs return: ::Integer
|
|
146
|
+
# @return [Integer]
|
|
147
|
+
def vpn_rx_bytes: () -> ::Integer
|
|
148
|
+
|
|
149
|
+
# Number of bytes transmitted over the tunnel
|
|
150
|
+
# @rbs return: ::Integer
|
|
151
|
+
# @return [Integer]
|
|
152
|
+
def vpn_tx_bytes: () -> ::Integer
|
|
153
|
+
|
|
154
|
+
# Number of packets received over the tunnel
|
|
155
|
+
# @rbs return: ::Integer
|
|
156
|
+
# @return [Integer]
|
|
157
|
+
def vpn_rx_packets: () -> ::Integer
|
|
158
|
+
|
|
159
|
+
# Number of packets transmitted over the tunnel
|
|
160
|
+
# @rbs return: ::Integer
|
|
161
|
+
# @return [Integer]
|
|
162
|
+
def vpn_tx_packets: () -> ::Integer
|
|
163
|
+
|
|
164
|
+
# Number of bytes received at the transport level
|
|
165
|
+
# @rbs return: ::Integer
|
|
166
|
+
# @return [Integer]
|
|
167
|
+
def link_rx_bytes: () -> ::Integer
|
|
168
|
+
|
|
169
|
+
# Number of bytes transmitted at the transport level
|
|
170
|
+
# @rbs return: ::Integer
|
|
171
|
+
# @return [Integer]
|
|
172
|
+
def link_tx_bytes: () -> ::Integer
|
|
173
|
+
|
|
174
|
+
# Number of packets received at the transport level
|
|
175
|
+
# @rbs return: ::Integer
|
|
176
|
+
# @return [Integer]
|
|
177
|
+
def link_rx_packets: () -> ::Integer
|
|
178
|
+
|
|
179
|
+
# Number of packets transmitted at the transport level
|
|
180
|
+
# @rbs return: ::Integer
|
|
181
|
+
# @return [Integer]
|
|
182
|
+
def link_tx_packets: () -> ::Integer
|
|
183
|
+
|
|
184
|
+
# The ID value used when transmitting packets to this peer. This way outgoing packets can have a different ID than incoming ones. Useful in multipeer-to-multipeer connections, where each peer will advertise the tx-id to be used on the link.
|
|
185
|
+
# @rbs return: ::Integer
|
|
186
|
+
# @return [Integer]
|
|
187
|
+
def tx_id: () -> ::Integer
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
include Definitions
|
|
191
|
+
|
|
192
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
193
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
194
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
1327
195
|
end
|
|
1328
196
|
|
|
1329
|
-
class
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
# @
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
# @
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
# @
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
#
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
# @
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
#
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
#
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
# The slot where the key should be stored
|
|
1403
|
-
#
|
|
1404
|
-
# Known enum values are defined in {Enums::KeySlot}.
|
|
1405
|
-
# @rbs return: ::Integer
|
|
1406
|
-
# @return [Integer]
|
|
1407
|
-
# @see Slot
|
|
1408
|
-
def slot: () -> ::Integer
|
|
1409
|
-
|
|
1410
|
-
# The unique ID of the key in the peer context. Used to fetch the correct key upon decryption
|
|
1411
|
-
# @rbs return: ::Integer
|
|
1412
|
-
# @return [Integer]
|
|
1413
|
-
# @see KeyId
|
|
1414
|
-
def key_id: () -> ::Integer
|
|
1415
|
-
|
|
1416
|
-
# The cipher to be used when communicating with the peer
|
|
1417
|
-
#
|
|
1418
|
-
# Known enum values are defined in {Enums::CipherAlg}.
|
|
1419
|
-
# @rbs return: ::Integer
|
|
1420
|
-
# @return [Integer]
|
|
1421
|
-
# @see CipherAlg
|
|
1422
|
-
def cipher_alg: () -> ::Integer
|
|
1423
|
-
|
|
1424
|
-
# Looks up Attribute class by name.
|
|
1425
|
-
# @rbs name: Symbol
|
|
1426
|
-
# @rbs return: Attribute
|
|
1427
|
-
# @param [Symbol] name
|
|
1428
|
-
# @return [Attribute]
|
|
1429
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1430
|
-
|
|
1431
|
-
# Looks up Attribute class by type value.
|
|
1432
|
-
# @rbs type: Integer
|
|
1433
|
-
# @rbs return: Attribute
|
|
1434
|
-
# @param [Integer] type
|
|
1435
|
-
# @return [Attribute]
|
|
1436
|
-
def self.by_type: (Integer type) -> Attribute
|
|
197
|
+
class PeerNewInput < ::Nl::AttributeSet
|
|
198
|
+
module Definitions
|
|
199
|
+
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
200
|
+
# @rbs return: ::Integer
|
|
201
|
+
# @return [Integer]
|
|
202
|
+
def id: () -> ::Integer
|
|
203
|
+
|
|
204
|
+
# The remote IPv4 address of the peer
|
|
205
|
+
# @rbs return: ::Integer
|
|
206
|
+
# @return [Integer]
|
|
207
|
+
def remote_ipv4: () -> ::Integer
|
|
208
|
+
|
|
209
|
+
# The remote IPv6 address of the peer
|
|
210
|
+
# @rbs return: ::String
|
|
211
|
+
# @return [String]
|
|
212
|
+
def remote_ipv6: () -> ::String
|
|
213
|
+
|
|
214
|
+
# The scope id of the remote IPv6 address of the peer (RFC2553)
|
|
215
|
+
# @rbs return: ::Integer
|
|
216
|
+
# @return [Integer]
|
|
217
|
+
def remote_ipv6_scope_id: () -> ::Integer
|
|
218
|
+
|
|
219
|
+
# The remote port of the peer
|
|
220
|
+
# @rbs return: ::Integer
|
|
221
|
+
# @return [Integer]
|
|
222
|
+
def remote_port: () -> ::Integer
|
|
223
|
+
|
|
224
|
+
# The socket to be used to communicate with the peer
|
|
225
|
+
# @rbs return: ::Integer
|
|
226
|
+
# @return [Integer]
|
|
227
|
+
def socket: () -> ::Integer
|
|
228
|
+
|
|
229
|
+
# The IPv4 address assigned to the peer by the server
|
|
230
|
+
# @rbs return: ::Integer
|
|
231
|
+
# @return [Integer]
|
|
232
|
+
def vpn_ipv4: () -> ::Integer
|
|
233
|
+
|
|
234
|
+
# The IPv6 address assigned to the peer by the server
|
|
235
|
+
# @rbs return: ::String
|
|
236
|
+
# @return [String]
|
|
237
|
+
def vpn_ipv6: () -> ::String
|
|
238
|
+
|
|
239
|
+
# The local IPv4 to be used to send packets to the peer (UDP only)
|
|
240
|
+
# @rbs return: ::Integer
|
|
241
|
+
# @return [Integer]
|
|
242
|
+
def local_ipv4: () -> ::Integer
|
|
243
|
+
|
|
244
|
+
# The local IPv6 to be used to send packets to the peer (UDP only)
|
|
245
|
+
# @rbs return: ::String
|
|
246
|
+
# @return [String]
|
|
247
|
+
def local_ipv6: () -> ::String
|
|
248
|
+
|
|
249
|
+
# The number of seconds after which a keep alive message is sent to the peer
|
|
250
|
+
# @rbs return: ::Integer
|
|
251
|
+
# @return [Integer]
|
|
252
|
+
def keepalive_interval: () -> ::Integer
|
|
253
|
+
|
|
254
|
+
# The number of seconds from the last activity after which the peer is assumed dead
|
|
255
|
+
# @rbs return: ::Integer
|
|
256
|
+
# @return [Integer]
|
|
257
|
+
def keepalive_timeout: () -> ::Integer
|
|
258
|
+
|
|
259
|
+
# The ID value used when transmitting packets to this peer. This way outgoing packets can have a different ID than incoming ones. Useful in multipeer-to-multipeer connections, where each peer will advertise the tx-id to be used on the link.
|
|
260
|
+
# @rbs return: ::Integer
|
|
261
|
+
# @return [Integer]
|
|
262
|
+
def tx_id: () -> ::Integer
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
include Definitions
|
|
266
|
+
|
|
267
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
268
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
269
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
1437
270
|
end
|
|
1438
271
|
|
|
1439
|
-
class
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
# @
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
272
|
+
class PeerSetInput < ::Nl::AttributeSet
|
|
273
|
+
module Definitions
|
|
274
|
+
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
275
|
+
# @rbs return: ::Integer
|
|
276
|
+
# @return [Integer]
|
|
277
|
+
def id: () -> ::Integer
|
|
278
|
+
|
|
279
|
+
# The remote IPv4 address of the peer
|
|
280
|
+
# @rbs return: ::Integer
|
|
281
|
+
# @return [Integer]
|
|
282
|
+
def remote_ipv4: () -> ::Integer
|
|
283
|
+
|
|
284
|
+
# The remote IPv6 address of the peer
|
|
285
|
+
# @rbs return: ::String
|
|
286
|
+
# @return [String]
|
|
287
|
+
def remote_ipv6: () -> ::String
|
|
288
|
+
|
|
289
|
+
# The scope id of the remote IPv6 address of the peer (RFC2553)
|
|
290
|
+
# @rbs return: ::Integer
|
|
291
|
+
# @return [Integer]
|
|
292
|
+
def remote_ipv6_scope_id: () -> ::Integer
|
|
293
|
+
|
|
294
|
+
# The remote port of the peer
|
|
295
|
+
# @rbs return: ::Integer
|
|
296
|
+
# @return [Integer]
|
|
297
|
+
def remote_port: () -> ::Integer
|
|
298
|
+
|
|
299
|
+
# The IPv4 address assigned to the peer by the server
|
|
300
|
+
# @rbs return: ::Integer
|
|
301
|
+
# @return [Integer]
|
|
302
|
+
def vpn_ipv4: () -> ::Integer
|
|
303
|
+
|
|
304
|
+
# The IPv6 address assigned to the peer by the server
|
|
305
|
+
# @rbs return: ::String
|
|
306
|
+
# @return [String]
|
|
307
|
+
def vpn_ipv6: () -> ::String
|
|
308
|
+
|
|
309
|
+
# The local IPv4 to be used to send packets to the peer (UDP only)
|
|
310
|
+
# @rbs return: ::Integer
|
|
311
|
+
# @return [Integer]
|
|
312
|
+
def local_ipv4: () -> ::Integer
|
|
313
|
+
|
|
314
|
+
# The local IPv6 to be used to send packets to the peer (UDP only)
|
|
315
|
+
# @rbs return: ::String
|
|
316
|
+
# @return [String]
|
|
317
|
+
def local_ipv6: () -> ::String
|
|
318
|
+
|
|
319
|
+
# The number of seconds after which a keep alive message is sent to the peer
|
|
320
|
+
# @rbs return: ::Integer
|
|
321
|
+
# @return [Integer]
|
|
322
|
+
def keepalive_interval: () -> ::Integer
|
|
323
|
+
|
|
324
|
+
# The number of seconds from the last activity after which the peer is assumed dead
|
|
325
|
+
# @rbs return: ::Integer
|
|
326
|
+
# @return [Integer]
|
|
327
|
+
def keepalive_timeout: () -> ::Integer
|
|
328
|
+
|
|
329
|
+
# The ID value used when transmitting packets to this peer. This way outgoing packets can have a different ID than incoming ones. Useful in multipeer-to-multipeer connections, where each peer will advertise the tx-id to be used on the link.
|
|
330
|
+
# @rbs return: ::Integer
|
|
331
|
+
# @return [Integer]
|
|
332
|
+
def tx_id: () -> ::Integer
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
include Definitions
|
|
336
|
+
|
|
337
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
338
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
339
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
1482
340
|
end
|
|
1483
341
|
|
|
1484
|
-
class
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
class PeerId < Attribute
|
|
1491
|
-
TYPE: ::Integer
|
|
1492
|
-
|
|
1493
|
-
NAME: ::Symbol
|
|
1494
|
-
|
|
1495
|
-
# @private
|
|
1496
|
-
ORDER: ::Integer
|
|
1497
|
-
|
|
1498
|
-
# @private
|
|
1499
|
-
DATATYPE: untyped
|
|
1500
|
-
end
|
|
1501
|
-
|
|
1502
|
-
# The slot where the key should be stored
|
|
1503
|
-
#
|
|
1504
|
-
# Known enum values are defined in {Enums::KeySlot}.
|
|
1505
|
-
class Slot < Attribute
|
|
1506
|
-
TYPE: ::Integer
|
|
1507
|
-
|
|
1508
|
-
NAME: ::Symbol
|
|
1509
|
-
|
|
1510
|
-
# @private
|
|
1511
|
-
ORDER: ::Integer
|
|
1512
|
-
|
|
1513
|
-
# @private
|
|
1514
|
-
DATATYPE: untyped
|
|
342
|
+
class PeerDelInput < ::Nl::AttributeSet
|
|
343
|
+
module Definitions
|
|
344
|
+
# The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device. Also used to match packets received from this peer.
|
|
345
|
+
# @rbs return: ::Integer
|
|
346
|
+
# @return [Integer]
|
|
347
|
+
def id: () -> ::Integer
|
|
1515
348
|
end
|
|
1516
349
|
|
|
1517
|
-
|
|
1518
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
1519
|
-
|
|
1520
|
-
# @private
|
|
1521
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
1522
|
-
|
|
1523
|
-
# The unique ID of the peer in the device context. To be used to identify peers during key operations
|
|
1524
|
-
# @rbs return: ::Integer
|
|
1525
|
-
# @return [Integer]
|
|
1526
|
-
# @see PeerId
|
|
1527
|
-
def peer_id: () -> ::Integer
|
|
350
|
+
include Definitions
|
|
1528
351
|
|
|
1529
|
-
#
|
|
1530
|
-
#
|
|
1531
|
-
|
|
1532
|
-
# @rbs return: ::Integer
|
|
1533
|
-
# @return [Integer]
|
|
1534
|
-
# @see Slot
|
|
1535
|
-
def slot: () -> ::Integer
|
|
1536
|
-
|
|
1537
|
-
# Looks up Attribute class by name.
|
|
1538
|
-
# @rbs name: Symbol
|
|
1539
|
-
# @rbs return: Attribute
|
|
1540
|
-
# @param [Symbol] name
|
|
1541
|
-
# @return [Attribute]
|
|
1542
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1543
|
-
|
|
1544
|
-
# Looks up Attribute class by type value.
|
|
1545
|
-
# @rbs type: Integer
|
|
1546
|
-
# @rbs return: Attribute
|
|
1547
|
-
# @param [Integer] type
|
|
1548
|
-
# @return [Attribute]
|
|
1549
|
-
def self.by_type: (Integer type) -> Attribute
|
|
352
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
353
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
354
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
1550
355
|
end
|
|
1551
356
|
|
|
1552
|
-
class
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
# @
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
#
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
1595
|
-
|
|
1596
|
-
# Index of the ovpn interface to operate on
|
|
1597
|
-
# @rbs return: ::Integer
|
|
1598
|
-
# @return [Integer]
|
|
1599
|
-
# @see Ifindex
|
|
1600
|
-
def ifindex: () -> ::Integer
|
|
1601
|
-
|
|
1602
|
-
# The peer object containing the attributed of interest for the specific operation
|
|
1603
|
-
# @rbs return: AttributeSets::Peer
|
|
1604
|
-
# @return [AttributeSets::Peer]
|
|
1605
|
-
# @see Peer
|
|
1606
|
-
def peer: () -> AttributeSets::Peer
|
|
1607
|
-
|
|
1608
|
-
# Peer specific cipher configuration
|
|
1609
|
-
# @rbs return: AttributeSets::Keyconf
|
|
1610
|
-
# @return [AttributeSets::Keyconf]
|
|
1611
|
-
# @see Keyconf
|
|
1612
|
-
def keyconf: () -> AttributeSets::Keyconf
|
|
1613
|
-
|
|
1614
|
-
# Looks up Attribute class by name.
|
|
1615
|
-
# @rbs name: Symbol
|
|
1616
|
-
# @rbs return: Attribute
|
|
1617
|
-
# @param [Symbol] name
|
|
1618
|
-
# @return [Attribute]
|
|
1619
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1620
|
-
|
|
1621
|
-
# Looks up Attribute class by type value.
|
|
1622
|
-
# @rbs type: Integer
|
|
1623
|
-
# @rbs return: Attribute
|
|
1624
|
-
# @param [Integer] type
|
|
1625
|
-
# @return [Attribute]
|
|
1626
|
-
def self.by_type: (Integer type) -> Attribute
|
|
357
|
+
class Keyconf < ::Nl::AttributeSet
|
|
358
|
+
module Definitions
|
|
359
|
+
# The unique ID of the peer in the device context. To be used to identify peers during key operations
|
|
360
|
+
# @rbs return: ::Integer
|
|
361
|
+
# @return [Integer]
|
|
362
|
+
def peer_id: () -> ::Integer
|
|
363
|
+
|
|
364
|
+
# The slot where the key should be stored
|
|
365
|
+
#
|
|
366
|
+
# Known enum values are defined in {Enums::KeySlot}.
|
|
367
|
+
# @rbs return: ::Integer
|
|
368
|
+
# @return [Integer]
|
|
369
|
+
def slot: () -> ::Integer
|
|
370
|
+
|
|
371
|
+
# The unique ID of the key in the peer context. Used to fetch the correct key upon decryption
|
|
372
|
+
# @rbs return: ::Integer
|
|
373
|
+
# @return [Integer]
|
|
374
|
+
def key_id: () -> ::Integer
|
|
375
|
+
|
|
376
|
+
# The cipher to be used when communicating with the peer
|
|
377
|
+
#
|
|
378
|
+
# Known enum values are defined in {Enums::CipherAlg}.
|
|
379
|
+
# @rbs return: ::Integer
|
|
380
|
+
# @return [Integer]
|
|
381
|
+
def cipher_alg: () -> ::Integer
|
|
382
|
+
|
|
383
|
+
# Key material for encrypt direction
|
|
384
|
+
# @rbs return: AttributeSets::Keydir
|
|
385
|
+
# @return [AttributeSets::Keydir]
|
|
386
|
+
def encrypt_dir: () -> AttributeSets::Keydir
|
|
387
|
+
|
|
388
|
+
# Key material for decrypt direction
|
|
389
|
+
# @rbs return: AttributeSets::Keydir
|
|
390
|
+
# @return [AttributeSets::Keydir]
|
|
391
|
+
def decrypt_dir: () -> AttributeSets::Keydir
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
include Definitions
|
|
395
|
+
|
|
396
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
397
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
398
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
1627
399
|
end
|
|
1628
400
|
|
|
1629
|
-
class
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
class Ifindex < Attribute
|
|
1636
|
-
TYPE: ::Integer
|
|
1637
|
-
|
|
1638
|
-
NAME: ::Symbol
|
|
1639
|
-
|
|
1640
|
-
# @private
|
|
1641
|
-
ORDER: ::Integer
|
|
1642
|
-
|
|
1643
|
-
# @private
|
|
1644
|
-
DATATYPE: untyped
|
|
1645
|
-
end
|
|
1646
|
-
|
|
1647
|
-
# The peer object containing the attributed of interest for the specific operation
|
|
1648
|
-
class Peer < Attribute
|
|
1649
|
-
TYPE: ::Integer
|
|
1650
|
-
|
|
1651
|
-
NAME: ::Symbol
|
|
401
|
+
class Keydir < ::Nl::AttributeSet
|
|
402
|
+
module Definitions
|
|
403
|
+
# The actual key to be used by the cipher
|
|
404
|
+
# @rbs return: ::String
|
|
405
|
+
# @return [String]
|
|
406
|
+
def cipher_key: () -> ::String
|
|
1652
407
|
|
|
1653
|
-
#
|
|
1654
|
-
|
|
408
|
+
# Random nonce to be concatenated to the packet ID, in order to obtain the actual cipher IV
|
|
409
|
+
# @rbs return: ::String
|
|
410
|
+
# @return [String]
|
|
411
|
+
def nonce_tail: () -> ::String
|
|
1655
412
|
end
|
|
1656
413
|
|
|
1657
|
-
|
|
1658
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
1659
|
-
|
|
1660
|
-
# @private
|
|
1661
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
1662
|
-
|
|
1663
|
-
# Index of the ovpn interface to operate on
|
|
1664
|
-
# @rbs return: ::Integer
|
|
1665
|
-
# @return [Integer]
|
|
1666
|
-
# @see Ifindex
|
|
1667
|
-
def ifindex: () -> ::Integer
|
|
414
|
+
include Definitions
|
|
1668
415
|
|
|
1669
|
-
#
|
|
1670
|
-
# @rbs
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
def peer: () -> AttributeSets::PeerNewInput
|
|
416
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
417
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
418
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
419
|
+
end
|
|
1674
420
|
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
421
|
+
class KeyconfGet < ::Nl::AttributeSet
|
|
422
|
+
module Definitions
|
|
423
|
+
# The unique ID of the peer in the device context. To be used to identify peers during key operations
|
|
424
|
+
# @rbs return: ::Integer
|
|
425
|
+
# @return [Integer]
|
|
426
|
+
def peer_id: () -> ::Integer
|
|
427
|
+
|
|
428
|
+
# The slot where the key should be stored
|
|
429
|
+
#
|
|
430
|
+
# Known enum values are defined in {Enums::KeySlot}.
|
|
431
|
+
# @rbs return: ::Integer
|
|
432
|
+
# @return [Integer]
|
|
433
|
+
def slot: () -> ::Integer
|
|
434
|
+
|
|
435
|
+
# The unique ID of the key in the peer context. Used to fetch the correct key upon decryption
|
|
436
|
+
# @rbs return: ::Integer
|
|
437
|
+
# @return [Integer]
|
|
438
|
+
def key_id: () -> ::Integer
|
|
439
|
+
|
|
440
|
+
# The cipher to be used when communicating with the peer
|
|
441
|
+
#
|
|
442
|
+
# Known enum values are defined in {Enums::CipherAlg}.
|
|
443
|
+
# @rbs return: ::Integer
|
|
444
|
+
# @return [Integer]
|
|
445
|
+
def cipher_alg: () -> ::Integer
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
include Definitions
|
|
449
|
+
|
|
450
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
451
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
452
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
1688
453
|
end
|
|
1689
454
|
|
|
1690
|
-
class
|
|
1691
|
-
|
|
1692
|
-
|
|
455
|
+
class KeyconfSwapInput < ::Nl::AttributeSet
|
|
456
|
+
module Definitions
|
|
457
|
+
# The unique ID of the peer in the device context. To be used to identify peers during key operations
|
|
458
|
+
# @rbs return: ::Integer
|
|
459
|
+
# @return [Integer]
|
|
460
|
+
def peer_id: () -> ::Integer
|
|
1693
461
|
end
|
|
1694
462
|
|
|
1695
|
-
|
|
1696
|
-
class Ifindex < Attribute
|
|
1697
|
-
TYPE: ::Integer
|
|
463
|
+
include Definitions
|
|
1698
464
|
|
|
1699
|
-
|
|
465
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
466
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
467
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
468
|
+
end
|
|
1700
469
|
|
|
1701
|
-
|
|
1702
|
-
|
|
470
|
+
class KeyconfDelInput < ::Nl::AttributeSet
|
|
471
|
+
module Definitions
|
|
472
|
+
# The unique ID of the peer in the device context. To be used to identify peers during key operations
|
|
473
|
+
# @rbs return: ::Integer
|
|
474
|
+
# @return [Integer]
|
|
475
|
+
def peer_id: () -> ::Integer
|
|
1703
476
|
|
|
1704
|
-
#
|
|
1705
|
-
|
|
477
|
+
# The slot where the key should be stored
|
|
478
|
+
#
|
|
479
|
+
# Known enum values are defined in {Enums::KeySlot}.
|
|
480
|
+
# @rbs return: ::Integer
|
|
481
|
+
# @return [Integer]
|
|
482
|
+
def slot: () -> ::Integer
|
|
1706
483
|
end
|
|
1707
484
|
|
|
1708
|
-
|
|
1709
|
-
class Peer < Attribute
|
|
1710
|
-
TYPE: ::Integer
|
|
485
|
+
include Definitions
|
|
1711
486
|
|
|
1712
|
-
|
|
487
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
488
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
489
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
490
|
+
end
|
|
1713
491
|
|
|
1714
|
-
|
|
1715
|
-
|
|
492
|
+
class Ovpn < ::Nl::AttributeSet
|
|
493
|
+
module Definitions
|
|
494
|
+
# Index of the ovpn interface to operate on
|
|
495
|
+
# @rbs return: ::Integer
|
|
496
|
+
# @return [Integer]
|
|
497
|
+
def ifindex: () -> ::Integer
|
|
498
|
+
|
|
499
|
+
# The peer object containing the attributed of interest for the specific operation
|
|
500
|
+
# @rbs return: AttributeSets::Peer
|
|
501
|
+
# @return [AttributeSets::Peer]
|
|
502
|
+
def peer: () -> AttributeSets::Peer
|
|
503
|
+
|
|
504
|
+
# Peer specific cipher configuration
|
|
505
|
+
# @rbs return: AttributeSets::Keyconf
|
|
506
|
+
# @return [AttributeSets::Keyconf]
|
|
507
|
+
def keyconf: () -> AttributeSets::Keyconf
|
|
1716
508
|
end
|
|
1717
509
|
|
|
1718
|
-
|
|
1719
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
510
|
+
include Definitions
|
|
1720
511
|
|
|
1721
|
-
#
|
|
1722
|
-
|
|
512
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
513
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
514
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
515
|
+
end
|
|
1723
516
|
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
517
|
+
class OvpnPeerNewInput < ::Nl::AttributeSet
|
|
518
|
+
module Definitions
|
|
519
|
+
# Index of the ovpn interface to operate on
|
|
520
|
+
# @rbs return: ::Integer
|
|
521
|
+
# @return [Integer]
|
|
522
|
+
def ifindex: () -> ::Integer
|
|
1729
523
|
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
524
|
+
# The peer object containing the attributed of interest for the specific operation
|
|
525
|
+
# @rbs return: AttributeSets::PeerNewInput
|
|
526
|
+
# @return [AttributeSets::PeerNewInput]
|
|
527
|
+
def peer: () -> AttributeSets::PeerNewInput
|
|
528
|
+
end
|
|
1735
529
|
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
#
|
|
1739
|
-
# @
|
|
1740
|
-
|
|
1741
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1742
|
-
|
|
1743
|
-
# Looks up Attribute class by type value.
|
|
1744
|
-
# @rbs type: Integer
|
|
1745
|
-
# @rbs return: Attribute
|
|
1746
|
-
# @param [Integer] type
|
|
1747
|
-
# @return [Attribute]
|
|
1748
|
-
def self.by_type: (Integer type) -> Attribute
|
|
530
|
+
include Definitions
|
|
531
|
+
|
|
532
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
533
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
534
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
1749
535
|
end
|
|
1750
536
|
|
|
1751
|
-
class
|
|
1752
|
-
|
|
1753
|
-
|
|
537
|
+
class OvpnPeerSetInput < ::Nl::AttributeSet
|
|
538
|
+
module Definitions
|
|
539
|
+
# Index of the ovpn interface to operate on
|
|
540
|
+
# @rbs return: ::Integer
|
|
541
|
+
# @return [Integer]
|
|
542
|
+
def ifindex: () -> ::Integer
|
|
543
|
+
|
|
544
|
+
# The peer object containing the attributed of interest for the specific operation
|
|
545
|
+
# @rbs return: AttributeSets::PeerSetInput
|
|
546
|
+
# @return [AttributeSets::PeerSetInput]
|
|
547
|
+
def peer: () -> AttributeSets::PeerSetInput
|
|
1754
548
|
end
|
|
1755
549
|
|
|
1756
|
-
|
|
1757
|
-
class Ifindex < Attribute
|
|
1758
|
-
TYPE: ::Integer
|
|
550
|
+
include Definitions
|
|
1759
551
|
|
|
1760
|
-
|
|
552
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
553
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
554
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
555
|
+
end
|
|
1761
556
|
|
|
1762
|
-
|
|
1763
|
-
|
|
557
|
+
class OvpnPeerDelInput < ::Nl::AttributeSet
|
|
558
|
+
module Definitions
|
|
559
|
+
# Index of the ovpn interface to operate on
|
|
560
|
+
# @rbs return: ::Integer
|
|
561
|
+
# @return [Integer]
|
|
562
|
+
def ifindex: () -> ::Integer
|
|
1764
563
|
|
|
1765
|
-
#
|
|
1766
|
-
|
|
564
|
+
# The peer object containing the attributed of interest for the specific operation
|
|
565
|
+
# @rbs return: AttributeSets::PeerDelInput
|
|
566
|
+
# @return [AttributeSets::PeerDelInput]
|
|
567
|
+
def peer: () -> AttributeSets::PeerDelInput
|
|
1767
568
|
end
|
|
1768
569
|
|
|
1769
|
-
|
|
1770
|
-
class Peer < Attribute
|
|
1771
|
-
TYPE: ::Integer
|
|
570
|
+
include Definitions
|
|
1772
571
|
|
|
1773
|
-
|
|
572
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
573
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
574
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
575
|
+
end
|
|
1774
576
|
|
|
1775
|
-
|
|
1776
|
-
|
|
577
|
+
class OvpnKeyconfGet < ::Nl::AttributeSet
|
|
578
|
+
module Definitions
|
|
579
|
+
# Index of the ovpn interface to operate on
|
|
580
|
+
# @rbs return: ::Integer
|
|
581
|
+
# @return [Integer]
|
|
582
|
+
def ifindex: () -> ::Integer
|
|
583
|
+
|
|
584
|
+
# Peer specific cipher configuration
|
|
585
|
+
# @rbs return: AttributeSets::KeyconfGet
|
|
586
|
+
# @return [AttributeSets::KeyconfGet]
|
|
587
|
+
def keyconf: () -> AttributeSets::KeyconfGet
|
|
1777
588
|
end
|
|
1778
589
|
|
|
1779
|
-
|
|
1780
|
-
BY_NAME: Hash[::Symbol, Attribute]
|
|
590
|
+
include Definitions
|
|
1781
591
|
|
|
1782
|
-
#
|
|
1783
|
-
|
|
592
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
593
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
594
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
595
|
+
end
|
|
1784
596
|
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
597
|
+
class OvpnKeyconfSwapInput < ::Nl::AttributeSet
|
|
598
|
+
module Definitions
|
|
599
|
+
# Index of the ovpn interface to operate on
|
|
600
|
+
# @rbs return: ::Integer
|
|
601
|
+
# @return [Integer]
|
|
602
|
+
def ifindex: () -> ::Integer
|
|
1790
603
|
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
604
|
+
# Peer specific cipher configuration
|
|
605
|
+
# @rbs return: AttributeSets::KeyconfSwapInput
|
|
606
|
+
# @return [AttributeSets::KeyconfSwapInput]
|
|
607
|
+
def keyconf: () -> AttributeSets::KeyconfSwapInput
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
include Definitions
|
|
1796
611
|
|
|
1797
|
-
#
|
|
1798
|
-
# @rbs
|
|
1799
|
-
|
|
1800
|
-
# @param [Symbol] name
|
|
1801
|
-
# @return [Attribute]
|
|
1802
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1803
|
-
|
|
1804
|
-
# Looks up Attribute class by type value.
|
|
1805
|
-
# @rbs type: Integer
|
|
1806
|
-
# @rbs return: Attribute
|
|
1807
|
-
# @param [Integer] type
|
|
1808
|
-
# @return [Attribute]
|
|
1809
|
-
def self.by_type: (Integer type) -> Attribute
|
|
612
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
613
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
614
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
1810
615
|
end
|
|
1811
616
|
|
|
1812
|
-
class
|
|
1813
|
-
|
|
1814
|
-
|
|
617
|
+
class OvpnKeyconfDelInput < ::Nl::AttributeSet
|
|
618
|
+
module Definitions
|
|
619
|
+
# Index of the ovpn interface to operate on
|
|
620
|
+
# @rbs return: ::Integer
|
|
621
|
+
# @return [Integer]
|
|
622
|
+
def ifindex: () -> ::Integer
|
|
623
|
+
|
|
624
|
+
# Peer specific cipher configuration
|
|
625
|
+
# @rbs return: AttributeSets::KeyconfDelInput
|
|
626
|
+
# @return [AttributeSets::KeyconfDelInput]
|
|
627
|
+
def keyconf: () -> AttributeSets::KeyconfDelInput
|
|
1815
628
|
end
|
|
1816
629
|
|
|
1817
|
-
|
|
1818
|
-
class Ifindex < Attribute
|
|
1819
|
-
TYPE: ::Integer
|
|
630
|
+
include Definitions
|
|
1820
631
|
|
|
1821
|
-
|
|
632
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
633
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
634
|
+
def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
635
|
+
end
|
|
636
|
+
end
|
|
1822
637
|
|
|
638
|
+
module AttributeSets
|
|
639
|
+
class Peer
|
|
640
|
+
module Definitions
|
|
1823
641
|
# @private
|
|
1824
|
-
|
|
642
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1825
643
|
|
|
1826
644
|
# @private
|
|
1827
|
-
|
|
645
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1828
646
|
end
|
|
647
|
+
end
|
|
1829
648
|
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
NAME: ::Symbol
|
|
649
|
+
class PeerNewInput
|
|
650
|
+
module Definitions
|
|
651
|
+
# @private
|
|
652
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1835
653
|
|
|
1836
654
|
# @private
|
|
1837
|
-
|
|
655
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1838
656
|
end
|
|
657
|
+
end
|
|
1839
658
|
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
659
|
+
class PeerSetInput
|
|
660
|
+
module Definitions
|
|
661
|
+
# @private
|
|
662
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1845
663
|
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
def ifindex: () -> ::Integer
|
|
664
|
+
# @private
|
|
665
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
666
|
+
end
|
|
667
|
+
end
|
|
1851
668
|
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
def keyconf: () -> AttributeSets::KeyconfGet
|
|
669
|
+
class PeerDelInput
|
|
670
|
+
module Definitions
|
|
671
|
+
# @private
|
|
672
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1857
673
|
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
# @param [Symbol] name
|
|
1862
|
-
# @return [Attribute]
|
|
1863
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1864
|
-
|
|
1865
|
-
# Looks up Attribute class by type value.
|
|
1866
|
-
# @rbs type: Integer
|
|
1867
|
-
# @rbs return: Attribute
|
|
1868
|
-
# @param [Integer] type
|
|
1869
|
-
# @return [Attribute]
|
|
1870
|
-
def self.by_type: (Integer type) -> Attribute
|
|
674
|
+
# @private
|
|
675
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
676
|
+
end
|
|
1871
677
|
end
|
|
1872
678
|
|
|
1873
|
-
class
|
|
1874
|
-
|
|
1875
|
-
|
|
679
|
+
class Keyconf
|
|
680
|
+
module Definitions
|
|
681
|
+
# @private
|
|
682
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
683
|
+
|
|
684
|
+
# @private
|
|
685
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1876
686
|
end
|
|
687
|
+
end
|
|
1877
688
|
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
689
|
+
class Keydir
|
|
690
|
+
module Definitions
|
|
691
|
+
# @private
|
|
692
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1881
693
|
|
|
1882
|
-
|
|
694
|
+
# @private
|
|
695
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
696
|
+
end
|
|
697
|
+
end
|
|
1883
698
|
|
|
699
|
+
class KeyconfGet
|
|
700
|
+
module Definitions
|
|
1884
701
|
# @private
|
|
1885
|
-
|
|
702
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1886
703
|
|
|
1887
704
|
# @private
|
|
1888
|
-
|
|
705
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1889
706
|
end
|
|
707
|
+
end
|
|
1890
708
|
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
NAME: ::Symbol
|
|
709
|
+
class KeyconfSwapInput
|
|
710
|
+
module Definitions
|
|
711
|
+
# @private
|
|
712
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1896
713
|
|
|
1897
714
|
# @private
|
|
1898
|
-
|
|
715
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1899
716
|
end
|
|
717
|
+
end
|
|
1900
718
|
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
719
|
+
class KeyconfDelInput
|
|
720
|
+
module Definitions
|
|
721
|
+
# @private
|
|
722
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1906
723
|
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
def ifindex: () -> ::Integer
|
|
724
|
+
# @private
|
|
725
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
726
|
+
end
|
|
727
|
+
end
|
|
1912
728
|
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
def keyconf: () -> AttributeSets::KeyconfSwapInput
|
|
729
|
+
class Ovpn
|
|
730
|
+
module Definitions
|
|
731
|
+
# @private
|
|
732
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1918
733
|
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
# @param [Symbol] name
|
|
1923
|
-
# @return [Attribute]
|
|
1924
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1925
|
-
|
|
1926
|
-
# Looks up Attribute class by type value.
|
|
1927
|
-
# @rbs type: Integer
|
|
1928
|
-
# @rbs return: Attribute
|
|
1929
|
-
# @param [Integer] type
|
|
1930
|
-
# @return [Attribute]
|
|
1931
|
-
def self.by_type: (Integer type) -> Attribute
|
|
734
|
+
# @private
|
|
735
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
736
|
+
end
|
|
1932
737
|
end
|
|
1933
738
|
|
|
1934
|
-
class
|
|
1935
|
-
|
|
1936
|
-
|
|
739
|
+
class OvpnPeerNewInput
|
|
740
|
+
module Definitions
|
|
741
|
+
# @private
|
|
742
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
743
|
+
|
|
744
|
+
# @private
|
|
745
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1937
746
|
end
|
|
747
|
+
end
|
|
1938
748
|
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
749
|
+
class OvpnPeerSetInput
|
|
750
|
+
module Definitions
|
|
751
|
+
# @private
|
|
752
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1942
753
|
|
|
1943
|
-
|
|
754
|
+
# @private
|
|
755
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
756
|
+
end
|
|
757
|
+
end
|
|
1944
758
|
|
|
759
|
+
class OvpnPeerDelInput
|
|
760
|
+
module Definitions
|
|
1945
761
|
# @private
|
|
1946
|
-
|
|
762
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1947
763
|
|
|
1948
764
|
# @private
|
|
1949
|
-
|
|
765
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1950
766
|
end
|
|
767
|
+
end
|
|
1951
768
|
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
NAME: ::Symbol
|
|
769
|
+
class OvpnKeyconfGet
|
|
770
|
+
module Definitions
|
|
771
|
+
# @private
|
|
772
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1957
773
|
|
|
1958
774
|
# @private
|
|
1959
|
-
|
|
775
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
1960
776
|
end
|
|
777
|
+
end
|
|
1961
778
|
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
BY_TYPE: Hash[::Integer, Attribute]
|
|
779
|
+
class OvpnKeyconfSwapInput
|
|
780
|
+
module Definitions
|
|
781
|
+
# @private
|
|
782
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1967
783
|
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
def ifindex: () -> ::Integer
|
|
784
|
+
# @private
|
|
785
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
786
|
+
end
|
|
787
|
+
end
|
|
1973
788
|
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
def keyconf: () -> AttributeSets::KeyconfDelInput
|
|
789
|
+
class OvpnKeyconfDelInput
|
|
790
|
+
module Definitions
|
|
791
|
+
# @private
|
|
792
|
+
BY_TYPE: Array[::Nl::AttributeSet::Definition?]
|
|
1979
793
|
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
# @param [Symbol] name
|
|
1984
|
-
# @return [Attribute]
|
|
1985
|
-
def self.by_name: (Symbol name) -> Attribute
|
|
1986
|
-
|
|
1987
|
-
# Looks up Attribute class by type value.
|
|
1988
|
-
# @rbs type: Integer
|
|
1989
|
-
# @rbs return: Attribute
|
|
1990
|
-
# @param [Integer] type
|
|
1991
|
-
# @return [Attribute]
|
|
1992
|
-
def self.by_type: (Integer type) -> Attribute
|
|
794
|
+
# @private
|
|
795
|
+
BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
796
|
+
end
|
|
1993
797
|
end
|
|
1994
798
|
end
|
|
1995
799
|
|
|
@@ -1997,7 +801,7 @@ module Nl
|
|
|
1997
801
|
# Add a remote peer
|
|
1998
802
|
#
|
|
1999
803
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2000
|
-
class DoPeerNewRequest < ::Nl::
|
|
804
|
+
class DoPeerNewRequest < ::Nl::Message
|
|
2001
805
|
TYPE: ::Integer
|
|
2002
806
|
|
|
2003
807
|
FIXED_HEADER: untyped
|
|
@@ -2006,23 +810,34 @@ module Nl
|
|
|
2006
810
|
|
|
2007
811
|
ATTRIBUTES: untyped
|
|
2008
812
|
|
|
813
|
+
include ATTRIBUTE_SET::Definitions
|
|
814
|
+
|
|
815
|
+
def initialize: (?untyped attributes) -> untyped
|
|
816
|
+
|
|
817
|
+
# @private
|
|
818
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
819
|
+
|
|
820
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
821
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
822
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
823
|
+
|
|
824
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
825
|
+
|
|
2009
826
|
# Index of the ovpn interface to operate on
|
|
2010
827
|
# @rbs return: ::Integer
|
|
2011
828
|
# @return [Integer]
|
|
2012
|
-
# @see AttributeSets::OvpnPeerNewInput::Ifindex
|
|
2013
829
|
def ifindex: () -> ::Integer
|
|
2014
830
|
|
|
2015
831
|
# The peer object containing the attributed of interest for the specific operation
|
|
2016
832
|
# @rbs return: AttributeSets::PeerNewInput
|
|
2017
833
|
# @return [AttributeSets::PeerNewInput]
|
|
2018
|
-
# @see AttributeSets::OvpnPeerNewInput::Peer
|
|
2019
834
|
def peer: () -> AttributeSets::PeerNewInput
|
|
2020
835
|
end
|
|
2021
836
|
|
|
2022
837
|
# modify a remote peer
|
|
2023
838
|
#
|
|
2024
839
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2025
|
-
class DoPeerSetRequest < ::Nl::
|
|
840
|
+
class DoPeerSetRequest < ::Nl::Message
|
|
2026
841
|
TYPE: ::Integer
|
|
2027
842
|
|
|
2028
843
|
FIXED_HEADER: untyped
|
|
@@ -2031,23 +846,34 @@ module Nl
|
|
|
2031
846
|
|
|
2032
847
|
ATTRIBUTES: untyped
|
|
2033
848
|
|
|
849
|
+
include ATTRIBUTE_SET::Definitions
|
|
850
|
+
|
|
851
|
+
def initialize: (?untyped attributes) -> untyped
|
|
852
|
+
|
|
853
|
+
# @private
|
|
854
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
855
|
+
|
|
856
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
857
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
858
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
859
|
+
|
|
860
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
861
|
+
|
|
2034
862
|
# Index of the ovpn interface to operate on
|
|
2035
863
|
# @rbs return: ::Integer
|
|
2036
864
|
# @return [Integer]
|
|
2037
|
-
# @see AttributeSets::OvpnPeerSetInput::Ifindex
|
|
2038
865
|
def ifindex: () -> ::Integer
|
|
2039
866
|
|
|
2040
867
|
# The peer object containing the attributed of interest for the specific operation
|
|
2041
868
|
# @rbs return: AttributeSets::PeerSetInput
|
|
2042
869
|
# @return [AttributeSets::PeerSetInput]
|
|
2043
|
-
# @see AttributeSets::OvpnPeerSetInput::Peer
|
|
2044
870
|
def peer: () -> AttributeSets::PeerSetInput
|
|
2045
871
|
end
|
|
2046
872
|
|
|
2047
873
|
# Retrieve data about existing remote peers (or a specific one)
|
|
2048
874
|
#
|
|
2049
875
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2050
|
-
class DoPeerGetRequest < ::Nl::
|
|
876
|
+
class DoPeerGetRequest < ::Nl::Message
|
|
2051
877
|
TYPE: ::Integer
|
|
2052
878
|
|
|
2053
879
|
FIXED_HEADER: untyped
|
|
@@ -2056,23 +882,34 @@ module Nl
|
|
|
2056
882
|
|
|
2057
883
|
ATTRIBUTES: untyped
|
|
2058
884
|
|
|
885
|
+
include ATTRIBUTE_SET::Definitions
|
|
886
|
+
|
|
887
|
+
def initialize: (?untyped attributes) -> untyped
|
|
888
|
+
|
|
889
|
+
# @private
|
|
890
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
891
|
+
|
|
892
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
893
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
894
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
895
|
+
|
|
896
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
897
|
+
|
|
2059
898
|
# Index of the ovpn interface to operate on
|
|
2060
899
|
# @rbs return: ::Integer
|
|
2061
900
|
# @return [Integer]
|
|
2062
|
-
# @see AttributeSets::Ovpn::Ifindex
|
|
2063
901
|
def ifindex: () -> ::Integer
|
|
2064
902
|
|
|
2065
903
|
# The peer object containing the attributed of interest for the specific operation
|
|
2066
904
|
# @rbs return: AttributeSets::Peer
|
|
2067
905
|
# @return [AttributeSets::Peer]
|
|
2068
|
-
# @see AttributeSets::Ovpn::Peer
|
|
2069
906
|
def peer: () -> AttributeSets::Peer
|
|
2070
907
|
end
|
|
2071
908
|
|
|
2072
909
|
# Retrieve data about existing remote peers (or a specific one)
|
|
2073
910
|
#
|
|
2074
911
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2075
|
-
class DoPeerGetReply < ::Nl::
|
|
912
|
+
class DoPeerGetReply < ::Nl::Message
|
|
2076
913
|
TYPE: ::Integer
|
|
2077
914
|
|
|
2078
915
|
FIXED_HEADER: untyped
|
|
@@ -2081,17 +918,29 @@ module Nl
|
|
|
2081
918
|
|
|
2082
919
|
ATTRIBUTES: untyped
|
|
2083
920
|
|
|
921
|
+
include ATTRIBUTE_SET::Definitions
|
|
922
|
+
|
|
923
|
+
def initialize: (?untyped attributes) -> untyped
|
|
924
|
+
|
|
925
|
+
# @private
|
|
926
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
927
|
+
|
|
928
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
929
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
930
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
931
|
+
|
|
932
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
933
|
+
|
|
2084
934
|
# The peer object containing the attributed of interest for the specific operation
|
|
2085
935
|
# @rbs return: AttributeSets::Peer
|
|
2086
936
|
# @return [AttributeSets::Peer]
|
|
2087
|
-
# @see AttributeSets::Ovpn::Peer
|
|
2088
937
|
def peer: () -> AttributeSets::Peer
|
|
2089
938
|
end
|
|
2090
939
|
|
|
2091
940
|
# Retrieve data about existing remote peers (or a specific one)
|
|
2092
941
|
#
|
|
2093
942
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2094
|
-
class DumpPeerGetRequest < ::Nl::
|
|
943
|
+
class DumpPeerGetRequest < ::Nl::Message
|
|
2095
944
|
TYPE: ::Integer
|
|
2096
945
|
|
|
2097
946
|
FIXED_HEADER: untyped
|
|
@@ -2100,17 +949,29 @@ module Nl
|
|
|
2100
949
|
|
|
2101
950
|
ATTRIBUTES: untyped
|
|
2102
951
|
|
|
952
|
+
include ATTRIBUTE_SET::Definitions
|
|
953
|
+
|
|
954
|
+
def initialize: (?untyped attributes) -> untyped
|
|
955
|
+
|
|
956
|
+
# @private
|
|
957
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
958
|
+
|
|
959
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
960
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
961
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
962
|
+
|
|
963
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
964
|
+
|
|
2103
965
|
# Index of the ovpn interface to operate on
|
|
2104
966
|
# @rbs return: ::Integer
|
|
2105
967
|
# @return [Integer]
|
|
2106
|
-
# @see AttributeSets::Ovpn::Ifindex
|
|
2107
968
|
def ifindex: () -> ::Integer
|
|
2108
969
|
end
|
|
2109
970
|
|
|
2110
971
|
# Retrieve data about existing remote peers (or a specific one)
|
|
2111
972
|
#
|
|
2112
973
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2113
|
-
class DumpPeerGetReply < ::Nl::
|
|
974
|
+
class DumpPeerGetReply < ::Nl::Message
|
|
2114
975
|
TYPE: ::Integer
|
|
2115
976
|
|
|
2116
977
|
FIXED_HEADER: untyped
|
|
@@ -2119,17 +980,29 @@ module Nl
|
|
|
2119
980
|
|
|
2120
981
|
ATTRIBUTES: untyped
|
|
2121
982
|
|
|
983
|
+
include ATTRIBUTE_SET::Definitions
|
|
984
|
+
|
|
985
|
+
def initialize: (?untyped attributes) -> untyped
|
|
986
|
+
|
|
987
|
+
# @private
|
|
988
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
989
|
+
|
|
990
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
991
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
992
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
993
|
+
|
|
994
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
995
|
+
|
|
2122
996
|
# The peer object containing the attributed of interest for the specific operation
|
|
2123
997
|
# @rbs return: AttributeSets::Peer
|
|
2124
998
|
# @return [AttributeSets::Peer]
|
|
2125
|
-
# @see AttributeSets::Ovpn::Peer
|
|
2126
999
|
def peer: () -> AttributeSets::Peer
|
|
2127
1000
|
end
|
|
2128
1001
|
|
|
2129
1002
|
# Delete existing remote peer
|
|
2130
1003
|
#
|
|
2131
1004
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2132
|
-
class DoPeerDelRequest < ::Nl::
|
|
1005
|
+
class DoPeerDelRequest < ::Nl::Message
|
|
2133
1006
|
TYPE: ::Integer
|
|
2134
1007
|
|
|
2135
1008
|
FIXED_HEADER: untyped
|
|
@@ -2138,23 +1011,34 @@ module Nl
|
|
|
2138
1011
|
|
|
2139
1012
|
ATTRIBUTES: untyped
|
|
2140
1013
|
|
|
1014
|
+
include ATTRIBUTE_SET::Definitions
|
|
1015
|
+
|
|
1016
|
+
def initialize: (?untyped attributes) -> untyped
|
|
1017
|
+
|
|
1018
|
+
# @private
|
|
1019
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1020
|
+
|
|
1021
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1022
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1023
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1024
|
+
|
|
1025
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1026
|
+
|
|
2141
1027
|
# Index of the ovpn interface to operate on
|
|
2142
1028
|
# @rbs return: ::Integer
|
|
2143
1029
|
# @return [Integer]
|
|
2144
|
-
# @see AttributeSets::OvpnPeerDelInput::Ifindex
|
|
2145
1030
|
def ifindex: () -> ::Integer
|
|
2146
1031
|
|
|
2147
1032
|
# The peer object containing the attributed of interest for the specific operation
|
|
2148
1033
|
# @rbs return: AttributeSets::PeerDelInput
|
|
2149
1034
|
# @return [AttributeSets::PeerDelInput]
|
|
2150
|
-
# @see AttributeSets::OvpnPeerDelInput::Peer
|
|
2151
1035
|
def peer: () -> AttributeSets::PeerDelInput
|
|
2152
1036
|
end
|
|
2153
1037
|
|
|
2154
1038
|
# Add a cipher key for a specific peer
|
|
2155
1039
|
#
|
|
2156
1040
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2157
|
-
class DoKeyNewRequest < ::Nl::
|
|
1041
|
+
class DoKeyNewRequest < ::Nl::Message
|
|
2158
1042
|
TYPE: ::Integer
|
|
2159
1043
|
|
|
2160
1044
|
FIXED_HEADER: untyped
|
|
@@ -2163,23 +1047,34 @@ module Nl
|
|
|
2163
1047
|
|
|
2164
1048
|
ATTRIBUTES: untyped
|
|
2165
1049
|
|
|
1050
|
+
include ATTRIBUTE_SET::Definitions
|
|
1051
|
+
|
|
1052
|
+
def initialize: (?untyped attributes) -> untyped
|
|
1053
|
+
|
|
1054
|
+
# @private
|
|
1055
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1056
|
+
|
|
1057
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1058
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1059
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1060
|
+
|
|
1061
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1062
|
+
|
|
2166
1063
|
# Index of the ovpn interface to operate on
|
|
2167
1064
|
# @rbs return: ::Integer
|
|
2168
1065
|
# @return [Integer]
|
|
2169
|
-
# @see AttributeSets::Ovpn::Ifindex
|
|
2170
1066
|
def ifindex: () -> ::Integer
|
|
2171
1067
|
|
|
2172
1068
|
# Peer specific cipher configuration
|
|
2173
1069
|
# @rbs return: AttributeSets::Keyconf
|
|
2174
1070
|
# @return [AttributeSets::Keyconf]
|
|
2175
|
-
# @see AttributeSets::Ovpn::Keyconf
|
|
2176
1071
|
def keyconf: () -> AttributeSets::Keyconf
|
|
2177
1072
|
end
|
|
2178
1073
|
|
|
2179
1074
|
# Retrieve non-sensitive data about peer key and cipher
|
|
2180
1075
|
#
|
|
2181
1076
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2182
|
-
class DoKeyGetRequest < ::Nl::
|
|
1077
|
+
class DoKeyGetRequest < ::Nl::Message
|
|
2183
1078
|
TYPE: ::Integer
|
|
2184
1079
|
|
|
2185
1080
|
FIXED_HEADER: untyped
|
|
@@ -2188,23 +1083,34 @@ module Nl
|
|
|
2188
1083
|
|
|
2189
1084
|
ATTRIBUTES: untyped
|
|
2190
1085
|
|
|
1086
|
+
include ATTRIBUTE_SET::Definitions
|
|
1087
|
+
|
|
1088
|
+
def initialize: (?untyped attributes) -> untyped
|
|
1089
|
+
|
|
1090
|
+
# @private
|
|
1091
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1092
|
+
|
|
1093
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1094
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1095
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1096
|
+
|
|
1097
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1098
|
+
|
|
2191
1099
|
# Index of the ovpn interface to operate on
|
|
2192
1100
|
# @rbs return: ::Integer
|
|
2193
1101
|
# @return [Integer]
|
|
2194
|
-
# @see AttributeSets::OvpnKeyconfGet::Ifindex
|
|
2195
1102
|
def ifindex: () -> ::Integer
|
|
2196
1103
|
|
|
2197
1104
|
# Peer specific cipher configuration
|
|
2198
1105
|
# @rbs return: AttributeSets::KeyconfGet
|
|
2199
1106
|
# @return [AttributeSets::KeyconfGet]
|
|
2200
|
-
# @see AttributeSets::OvpnKeyconfGet::Keyconf
|
|
2201
1107
|
def keyconf: () -> AttributeSets::KeyconfGet
|
|
2202
1108
|
end
|
|
2203
1109
|
|
|
2204
1110
|
# Retrieve non-sensitive data about peer key and cipher
|
|
2205
1111
|
#
|
|
2206
1112
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2207
|
-
class DoKeyGetReply < ::Nl::
|
|
1113
|
+
class DoKeyGetReply < ::Nl::Message
|
|
2208
1114
|
TYPE: ::Integer
|
|
2209
1115
|
|
|
2210
1116
|
FIXED_HEADER: untyped
|
|
@@ -2213,17 +1119,29 @@ module Nl
|
|
|
2213
1119
|
|
|
2214
1120
|
ATTRIBUTES: untyped
|
|
2215
1121
|
|
|
1122
|
+
include ATTRIBUTE_SET::Definitions
|
|
1123
|
+
|
|
1124
|
+
def initialize: (?untyped attributes) -> untyped
|
|
1125
|
+
|
|
1126
|
+
# @private
|
|
1127
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1128
|
+
|
|
1129
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1130
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1131
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1132
|
+
|
|
1133
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1134
|
+
|
|
2216
1135
|
# Peer specific cipher configuration
|
|
2217
1136
|
# @rbs return: AttributeSets::KeyconfGet
|
|
2218
1137
|
# @return [AttributeSets::KeyconfGet]
|
|
2219
|
-
# @see AttributeSets::OvpnKeyconfGet::Keyconf
|
|
2220
1138
|
def keyconf: () -> AttributeSets::KeyconfGet
|
|
2221
1139
|
end
|
|
2222
1140
|
|
|
2223
1141
|
# Swap primary and secondary session keys for a specific peer
|
|
2224
1142
|
#
|
|
2225
1143
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2226
|
-
class DoKeySwapRequest < ::Nl::
|
|
1144
|
+
class DoKeySwapRequest < ::Nl::Message
|
|
2227
1145
|
TYPE: ::Integer
|
|
2228
1146
|
|
|
2229
1147
|
FIXED_HEADER: untyped
|
|
@@ -2232,23 +1150,34 @@ module Nl
|
|
|
2232
1150
|
|
|
2233
1151
|
ATTRIBUTES: untyped
|
|
2234
1152
|
|
|
1153
|
+
include ATTRIBUTE_SET::Definitions
|
|
1154
|
+
|
|
1155
|
+
def initialize: (?untyped attributes) -> untyped
|
|
1156
|
+
|
|
1157
|
+
# @private
|
|
1158
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1159
|
+
|
|
1160
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1161
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1162
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1163
|
+
|
|
1164
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1165
|
+
|
|
2235
1166
|
# Index of the ovpn interface to operate on
|
|
2236
1167
|
# @rbs return: ::Integer
|
|
2237
1168
|
# @return [Integer]
|
|
2238
|
-
# @see AttributeSets::OvpnKeyconfSwapInput::Ifindex
|
|
2239
1169
|
def ifindex: () -> ::Integer
|
|
2240
1170
|
|
|
2241
1171
|
# Peer specific cipher configuration
|
|
2242
1172
|
# @rbs return: AttributeSets::KeyconfSwapInput
|
|
2243
1173
|
# @return [AttributeSets::KeyconfSwapInput]
|
|
2244
|
-
# @see AttributeSets::OvpnKeyconfSwapInput::Keyconf
|
|
2245
1174
|
def keyconf: () -> AttributeSets::KeyconfSwapInput
|
|
2246
1175
|
end
|
|
2247
1176
|
|
|
2248
1177
|
# Delete cipher key for a specific peer
|
|
2249
1178
|
#
|
|
2250
1179
|
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2251
|
-
class DoKeyDelRequest < ::Nl::
|
|
1180
|
+
class DoKeyDelRequest < ::Nl::Message
|
|
2252
1181
|
TYPE: ::Integer
|
|
2253
1182
|
|
|
2254
1183
|
FIXED_HEADER: untyped
|
|
@@ -2257,16 +1186,27 @@ module Nl
|
|
|
2257
1186
|
|
|
2258
1187
|
ATTRIBUTES: untyped
|
|
2259
1188
|
|
|
1189
|
+
include ATTRIBUTE_SET::Definitions
|
|
1190
|
+
|
|
1191
|
+
def initialize: (?untyped attributes) -> untyped
|
|
1192
|
+
|
|
1193
|
+
# @private
|
|
1194
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1195
|
+
|
|
1196
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1197
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1198
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1199
|
+
|
|
1200
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1201
|
+
|
|
2260
1202
|
# Index of the ovpn interface to operate on
|
|
2261
1203
|
# @rbs return: ::Integer
|
|
2262
1204
|
# @return [Integer]
|
|
2263
|
-
# @see AttributeSets::OvpnKeyconfDelInput::Ifindex
|
|
2264
1205
|
def ifindex: () -> ::Integer
|
|
2265
1206
|
|
|
2266
1207
|
# Peer specific cipher configuration
|
|
2267
1208
|
# @rbs return: AttributeSets::KeyconfDelInput
|
|
2268
1209
|
# @return [AttributeSets::KeyconfDelInput]
|
|
2269
|
-
# @see AttributeSets::OvpnKeyconfDelInput::Keyconf
|
|
2270
1210
|
def keyconf: () -> AttributeSets::KeyconfDelInput
|
|
2271
1211
|
end
|
|
2272
1212
|
end
|
|
@@ -2275,7 +1215,7 @@ module Nl
|
|
|
2275
1215
|
# Notification about a peer being deleted
|
|
2276
1216
|
#
|
|
2277
1217
|
# Multicast group: `peers`.
|
|
2278
|
-
class PeerDelNtf < ::Nl::
|
|
1218
|
+
class PeerDelNtf < ::Nl::Message
|
|
2279
1219
|
TYPE: ::Integer
|
|
2280
1220
|
|
|
2281
1221
|
FIXED_HEADER: untyped
|
|
@@ -2284,17 +1224,29 @@ module Nl
|
|
|
2284
1224
|
|
|
2285
1225
|
ATTRIBUTES: untyped
|
|
2286
1226
|
|
|
1227
|
+
include ATTRIBUTE_SET::Definitions
|
|
1228
|
+
|
|
1229
|
+
def initialize: (?untyped attributes) -> untyped
|
|
1230
|
+
|
|
1231
|
+
# @private
|
|
1232
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1233
|
+
|
|
1234
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1235
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1236
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1237
|
+
|
|
1238
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1239
|
+
|
|
2287
1240
|
# The peer object containing the attributed of interest for the specific operation
|
|
2288
1241
|
# @rbs return: AttributeSets::Peer
|
|
2289
1242
|
# @return [AttributeSets::Peer]
|
|
2290
|
-
# @see AttributeSets::Ovpn::Peer
|
|
2291
1243
|
def peer: () -> AttributeSets::Peer
|
|
2292
1244
|
end
|
|
2293
1245
|
|
|
2294
1246
|
# Notification about key having exhausted its IV space and requiring renegotiation
|
|
2295
1247
|
#
|
|
2296
1248
|
# Multicast group: `peers`.
|
|
2297
|
-
class KeySwapNtf < ::Nl::
|
|
1249
|
+
class KeySwapNtf < ::Nl::Message
|
|
2298
1250
|
TYPE: ::Integer
|
|
2299
1251
|
|
|
2300
1252
|
FIXED_HEADER: untyped
|
|
@@ -2303,17 +1255,29 @@ module Nl
|
|
|
2303
1255
|
|
|
2304
1256
|
ATTRIBUTES: untyped
|
|
2305
1257
|
|
|
1258
|
+
include ATTRIBUTE_SET::Definitions
|
|
1259
|
+
|
|
1260
|
+
def initialize: (?untyped attributes) -> untyped
|
|
1261
|
+
|
|
1262
|
+
# @private
|
|
1263
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1264
|
+
|
|
1265
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1266
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1267
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1268
|
+
|
|
1269
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1270
|
+
|
|
2306
1271
|
# Peer specific cipher configuration
|
|
2307
1272
|
# @rbs return: AttributeSets::KeyconfGet
|
|
2308
1273
|
# @return [AttributeSets::KeyconfGet]
|
|
2309
|
-
# @see AttributeSets::OvpnKeyconfGet::Keyconf
|
|
2310
1274
|
def keyconf: () -> AttributeSets::KeyconfGet
|
|
2311
1275
|
end
|
|
2312
1276
|
|
|
2313
1277
|
# Notification about a peer floating (changing its remote UDP endpoint)
|
|
2314
1278
|
#
|
|
2315
1279
|
# Multicast group: `peers`.
|
|
2316
|
-
class PeerFloatNtf < ::Nl::
|
|
1280
|
+
class PeerFloatNtf < ::Nl::Message
|
|
2317
1281
|
TYPE: ::Integer
|
|
2318
1282
|
|
|
2319
1283
|
FIXED_HEADER: untyped
|
|
@@ -2322,10 +1286,22 @@ module Nl
|
|
|
2322
1286
|
|
|
2323
1287
|
ATTRIBUTES: untyped
|
|
2324
1288
|
|
|
1289
|
+
include ATTRIBUTE_SET::Definitions
|
|
1290
|
+
|
|
1291
|
+
def initialize: (?untyped attributes) -> untyped
|
|
1292
|
+
|
|
1293
|
+
# @private
|
|
1294
|
+
def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
|
|
1295
|
+
|
|
1296
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
1297
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
1298
|
+
def self.decode: (::Nl::Decoder decoder) -> instance
|
|
1299
|
+
|
|
1300
|
+
def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
|
|
1301
|
+
|
|
2325
1302
|
# The peer object containing the attributed of interest for the specific operation
|
|
2326
1303
|
# @rbs return: AttributeSets::Peer
|
|
2327
1304
|
# @return [AttributeSets::Peer]
|
|
2328
|
-
# @see AttributeSets::Ovpn::Peer
|
|
2329
1305
|
def peer: () -> AttributeSets::Peer
|
|
2330
1306
|
end
|
|
2331
1307
|
end
|