NMDeviceTun: libnm Reference Manual

## NMDeviceTun NMDeviceTun |

## Functions

const char * | nm_device_tun_get_hw_address ()
const char * | nm_device_tun_get_mode ()
gint64 | nm_device_tun_get_owner ()
gint64 | nm_device_tun_get_group ()
gboolean | nm_device_tun_get_no_pi ()
gboolean | nm_device_tun_get_vnet_hdr ()
gboolean | nm_device_tun_get_multi_queue ()

## Properties

gint64 | group | Read
char * | mode | Read
gboolean | multi-queue | Read
gboolean | no-pi | Read
gint64 | owner | Read
gboolean | vnet-hdr | Read

## Types and Values

#define | NM_DEVICE_TUN_HW_ADDRESS
#define | NM_DEVICE_TUN_OWNER
#define | NM_DEVICE_TUN_GROUP
#define | NM_DEVICE_TUN_MODE
#define | NM_DEVICE_TUN_NO_PI
#define | NM_DEVICE_TUN_VNET_HDR
#define | NM_DEVICE_TUN_MULTI_QUEUE
| NMDeviceTun

## Object Hierarchy

        GObject
        ╰── NMObject
            ╰── NMDevice
                ╰── NMDeviceTun

## Description

## Functions

### nm_device_tun_get_hw_address ()

    const char *
    nm_device_tun_get_hw_address (NMDeviceTun *device);

`nm_device_tun_get_hw_address` is deprecated and should not be used in newly-written code.

### nm_device_tun_get_mode ()

    const char *
    nm_device_tun_get_mode (NMDeviceTun *device);

### nm_device_tun_get_owner ()

    gint64
    nm_device_tun_get_owner (NMDeviceTun *device);

### nm_device_tun_get_group ()

    gint64
    nm_device_tun_get_group (NMDeviceTun *device);

### nm_device_tun_get_no_pi ()

    gboolean
    nm_device_tun_get_no_pi (NMDeviceTun *device);

### nm_device_tun_get_vnet_hdr ()

    gboolean
    nm_device_tun_get_vnet_hdr (NMDeviceTun *device);

### nm_device_tun_get_multi_queue ()

    gboolean
    nm_device_tun_get_multi_queue (NMDeviceTun *device);

## Types and Values

### NM_DEVICE_TUN_HW_ADDRESS

    #define NM_DEVICE_TUN_HW_ADDRESS  "hw-address"

### NM_DEVICE_TUN_OWNER

    #define NM_DEVICE_TUN_OWNER       "owner"

### NM_DEVICE_TUN_GROUP

    #define NM_DEVICE_TUN_GROUP       "group"

### NM_DEVICE_TUN_MODE

    #define NM_DEVICE_TUN_MODE        "mode"

### NM_DEVICE_TUN_NO_PI

    #define NM_DEVICE_TUN_NO_PI       "no-pi"

### NM_DEVICE_TUN_VNET_HDR

    #define NM_DEVICE_TUN_VNET_HDR    "vnet-hdr"

### NM_DEVICE_TUN_MULTI_QUEUE

    #define NM_DEVICE_TUN_MULTI_QUEUE "multi-queue"

### NMDeviceTun

    typedef struct _NMDeviceTun NMDeviceTun;

Since: 1.2

## Property Details

### The `“group”` property

      “group”                    gint64

Owner: NMDeviceTun

Flags: Read

Allowed values: [-1,4294967295]

Default value: -1

### The `“mode”` property

      “mode”                     char *

Owner: NMDeviceTun

Flags: Read

Default value: NULL

### The `“multi-queue”` property

      “multi-queue”              gboolean

Owner: NMDeviceTun

Flags: Read

Default value: FALSE

### The `“no-pi”` property

      “no-pi”                    gboolean

Owner: NMDeviceTun

Flags: Read

Default value: FALSE

### The `“owner”` property

      “owner”                    gint64

Owner: NMDeviceTun

Flags: Read

Allowed values: [-1,4294967295]

Default value: -1

### The `“vnet-hdr”` property

      “vnet-hdr”                 gboolean

Owner: NMDeviceTun

Flags: Read

Default value: FALSE