SettingWireGuard
Object Hierarchy:
Description:
[ CCode ( lower_case_csuffix = "setting_wireguard" , type_id = "nm_setting_wireguard_get_type ()" ) ]
[ Version ( since = "1.16" ) ]
public sealed class SettingWireGuard : Setting
[ Version ( since = "1.16" ) ]
public sealed class SettingWireGuard : Setting
WireGuard Settings
Namespace: NM
Package: libnm
Content:
Constants:
- public const string FWMARK
- public const string IP4_AUTO_DEFAULT_ROUTE
- public const string IP6_AUTO_DEFAULT_ROUTE
- public const string LISTEN_PORT
- public const string MTU
- public const string PEERS
- public const string PEER_ROUTES
- public const string PRIVATE_KEY
- public const string PRIVATE_KEY_FLAGS
- public const int PUBLIC_KEY_LEN
- public const string SETTING_NAME
- public const int SYMMETRIC_KEY_LEN
Properties:
- public uint fwmark { get; set; }
The use of fwmark is optional and is by default off.
- public Ternary ip4_auto_default_route { get; set; }
Whether to enable special handling of the IPv4 default route.
- public Ternary ip6_auto_default_route { get; set; }
Like ip4-auto-default-route, but for the IPv6 default route.
- public uint listen_port { get; set; }
The listen-port.
- public uint mtu { get; set; }
If non-zero, only transmit packets of the specified size or smaller, breaking larger packets up into multiple fragments.
- public bool peer_routes { get; set; }
Whether to automatically add routes for the AllowedIPs ranges of the peers.
- public string private_key { owned get; set; }
The 256 bit private-key in base64 encoding.
- public SettingSecretFlags private_key_flags { get; set; }
Flags indicating how to handle the
NMSettingWirelessSecurity:private-key
property.
Creation methods:
- public SettingWireGuard ()
Creates a new SettingWireGuard object with default values.
Methods:
- public void append_peer (WireGuardPeer peer)
If a peer with the same public-key already exists, that one is replaced by
peer
. - public uint clear_peers ()
- public uint32 get_fwmark ()
- public Ternary get_ip4_auto_default_route ()
- public Ternary get_ip6_auto_default_route ()
- public uint16 get_listen_port ()
- public uint32 get_mtu ()
- public unowned WireGuardPeer get_peer (uint idx)
- public unowned WireGuardPeer? get_peer_by_public_key (string public_key, out uint out_idx)
- public bool get_peer_routes ()
- public uint get_peers_len ()
- public unowned string get_private_key ()
- public SettingSecretFlags get_private_key_flags ()
- public bool remove_peer (uint idx)
- public void set_peer (WireGuardPeer peer, uint idx)
If
idx
is one past the last peer, the behavior is the same as append_peer.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object