gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.DeviceWireGuard

Description

No description available in the introspection data.

Since: 1.14

Synopsis

Exported types

class (GObject o, IsDescendantOf DeviceWireGuard o) => IsDeviceWireGuard o Source #

Type class for types which can be safely cast to DeviceWireGuard, for instance with toDeviceWireGuard.

Instances

Instances details
(GObject o, IsDescendantOf DeviceWireGuard o) => IsDeviceWireGuard o Source # 
Instance details

Defined in GI.NM.Objects.DeviceWireGuard

toDeviceWireGuard :: (MonadIO m, IsDeviceWireGuard o) => o -> m DeviceWireGuard Source #

Cast to DeviceWireGuard, for types for which this is known to be safe. For general casts, use castTo.

Methods

getFwmark

deviceWireGuardGetFwmark Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceWireGuard a) 
=> a

device: a DeviceWireGuard

-> m Word32

Returns: 0 if fwmark not in use, 32-bit fwmark value otherwise

Gets the fwmark (firewall mark) for this interface. It can be used to set routing policy for outgoing encrypted packets. See: ip-rule(8)

Since: 1.14

getListenPort

deviceWireGuardGetListenPort Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceWireGuard a) 
=> a

device: a DeviceWireGuard

-> m Word16

Returns: UDP listen port

Gets the local UDP port this interface listens on

Since: 1.14

getPublicKey

deviceWireGuardGetPublicKey Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceWireGuard a) 
=> a

device: a DeviceWireGuard

-> m Bytes

Returns: the Bytes containing the 32-byte public key

Gets the public key for this interface

Since: 1.14

Properties

fwmark

Optional firewall mark - see ip-rule(8). Used when setting routing policy for outgoing encrypted packets. Set to 0 to disable the mark (default).

Since: 1.14

getDeviceWireGuardFwmark :: (MonadIO m, IsDeviceWireGuard o) => o -> m Word32 Source #

Get the value of the “fwmark” property. When overloading is enabled, this is equivalent to

get deviceWireGuard #fwmark

listenPort

Local UDP listen port. Set to 0 to allow a random port to be chosen (default).

Since: 1.14

getDeviceWireGuardListenPort :: (MonadIO m, IsDeviceWireGuard o) => o -> m Word32 Source #

Get the value of the “listen-port” property. When overloading is enabled, this is equivalent to

get deviceWireGuard #listenPort

publicKey

32-byte public key, derived from the current private key.

Since: 1.14

getDeviceWireGuardPublicKey :: (MonadIO m, IsDeviceWireGuard o) => o -> m Bytes Source #

Get the value of the “public-key” property. When overloading is enabled, this is equivalent to

get deviceWireGuard #publicKey