Class: Nl::Linux::Ovpn::AttributeSets::PeerNewInput
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Ovpn::AttributeSets::PeerNewInput
- Defined in:
- nl-linux/generated/nl/linux/ovpn.rb
Defined Under Namespace
Classes: Attribute, Id, KeepaliveInterval, KeepaliveTimeout, LocalIpv4, LocalIpv6, RemoteIpv4, RemoteIpv6, RemoteIpv6ScopeId, RemotePort, Socket, TxId, VpnIpv4, VpnIpv6
Constant Summary
Constants inherited from AttributeSet
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#id ⇒ Integer
The unique ID of the peer in the device context.
-
#keepalive_interval ⇒ Integer
The number of seconds after which a keep alive message is sent to the peer.
-
#keepalive_timeout ⇒ Integer
The number of seconds from the last activity after which the peer is assumed dead.
-
#local_ipv4 ⇒ Integer
The local IPv4 to be used to send packets to the peer (UDP only).
-
#local_ipv6 ⇒ String
The local IPv6 to be used to send packets to the peer (UDP only).
-
#remote_ipv4 ⇒ Integer
The remote IPv4 address of the peer.
-
#remote_ipv6 ⇒ String
The remote IPv6 address of the peer.
-
#remote_ipv6_scope_id ⇒ Integer
The scope id of the remote IPv6 address of the peer (RFC2553).
-
#remote_port ⇒ Integer
The remote port of the peer.
-
#socket ⇒ Integer
The socket to be used to communicate with the peer.
-
#tx_id ⇒ Integer
The ID value used when transmitting packets to this peer.
-
#vpn_ipv4 ⇒ Integer
The IPv4 address assigned to the peer by the server.
-
#vpn_ipv6 ⇒ String
The IPv6 address assigned to the peer by the server.
Methods inherited from AttributeSet
#<<, #[], build_attributes, decode, #encode, #initialize
Constructor Details
This class inherits a constructor from Nl::AttributeSet
Class Method Details
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
621 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 621 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
627 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 627 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#id ⇒ Integer
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.
554 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 554 def id; self[:"id"]&.value; end |
#keepalive_interval ⇒ Integer
The number of seconds after which a keep alive message is sent to the peer
604 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 604 def keepalive_interval; self[:"keepalive_interval"]&.value; end |
#keepalive_timeout ⇒ Integer
The number of seconds from the last activity after which the peer is assumed dead
609 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 609 def keepalive_timeout; self[:"keepalive_timeout"]&.value; end |
#local_ipv4 ⇒ Integer
The local IPv4 to be used to send packets to the peer (UDP only)
594 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 594 def local_ipv4; self[:"local_ipv4"]&.value; end |
#local_ipv6 ⇒ String
The local IPv6 to be used to send packets to the peer (UDP only)
599 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 599 def local_ipv6; self[:"local_ipv6"]&.value; end |
#remote_ipv4 ⇒ Integer
The remote IPv4 address of the peer
559 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 559 def remote_ipv4; self[:"remote_ipv4"]&.value; end |
#remote_ipv6 ⇒ String
The remote IPv6 address of the peer
564 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 564 def remote_ipv6; self[:"remote_ipv6"]&.value; end |
#remote_ipv6_scope_id ⇒ Integer
The scope id of the remote IPv6 address of the peer (RFC2553)
569 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 569 def remote_ipv6_scope_id; self[:"remote_ipv6_scope_id"]&.value; end |
#remote_port ⇒ Integer
The remote port of the peer
574 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 574 def remote_port; self[:"remote_port"]&.value; end |
#socket ⇒ Integer
The socket to be used to communicate with the peer
579 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 579 def socket; self[:"socket"]&.value; end |
#tx_id ⇒ Integer
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.
614 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 614 def tx_id; self[:"tx_id"]&.value; end |
#vpn_ipv4 ⇒ Integer
The IPv4 address assigned to the peer by the server
584 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 584 def vpn_ipv4; self[:"vpn_ipv4"]&.value; end |
#vpn_ipv6 ⇒ String
The IPv6 address assigned to the peer by the server
589 |
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 589 def vpn_ipv6; self[:"vpn_ipv6"]&.value; end |