NMDeviceWireGuard: libnm Reference Manual

## NMDeviceWireGuard NMDeviceWireGuard |

## Functions

GBytes * | nm_device_wireguard_get_public_key ()
guint16 | nm_device_wireguard_get_listen_port ()
guint32 | nm_device_wireguard_get_fwmark ()

## Properties

guint | fwmark | Read
guint | listen-port | Read
GBytes * | public-key | Read

## Types and Values

#define | NM_DEVICE_WIREGUARD_PUBLIC_KEY
#define | NM_DEVICE_WIREGUARD_LISTEN_PORT
#define | NM_DEVICE_WIREGUARD_FWMARK
| NMDeviceWireGuard

## Object Hierarchy

        GObject
        ╰── NMObject
            ╰── NMDevice
                ╰── NMDeviceWireGuard

## Description

## Functions

### nm_device_wireguard_get_public_key ()

    GBytes *
    nm_device_wireguard_get_public_key (NMDeviceWireGuard *device);

### nm_device_wireguard_get_listen_port ()

    guint16
    nm_device_wireguard_get_listen_port (NMDeviceWireGuard *device);

### nm_device_wireguard_get_fwmark ()

    guint32
    nm_device_wireguard_get_fwmark (NMDeviceWireGuard *device);

## Types and Values

### NM_DEVICE_WIREGUARD_PUBLIC_KEY

    #define NM_DEVICE_WIREGUARD_PUBLIC_KEY  "public-key"

### NM_DEVICE_WIREGUARD_LISTEN_PORT

    #define NM_DEVICE_WIREGUARD_LISTEN_PORT "listen-port"

### NM_DEVICE_WIREGUARD_FWMARK

    #define NM_DEVICE_WIREGUARD_FWMARK      "fwmark"

### NMDeviceWireGuard

    typedef struct _NMDeviceWireGuard NMDeviceWireGuard;

Since: 1.14

## Property Details

### The `“fwmark”` property

      “fwmark”                   guint

Owner: NMDeviceWireGuard

Flags: Read

Default value: 0

### The `“listen-port”` property

      “listen-port”              guint

Owner: NMDeviceWireGuard

Flags: Read

Allowed values: <= 65535

Default value: 0

### The `“public-key”` property

      “public-key”               GBytes *

Owner: NMDeviceWireGuard

Flags: Read