NMDeviceMacvlan: libnm Reference Manual

## NMDeviceMacvlan NMDeviceMacvlan |

## Functions

NMDevice * | nm_device_macvlan_get_parent ()
const char * | nm_device_macvlan_get_mode ()
gboolean | nm_device_macvlan_get_no_promisc ()
gboolean | nm_device_macvlan_get_tap ()
const char * | nm_device_macvlan_get_hw_address ()

## Properties

char * | mode | Read
gboolean | no-promisc | Read
NMDevice * | parent | Read
gboolean | tap | Read

## Types and Values

#define | NM_DEVICE_MACVLAN_PARENT
#define | NM_DEVICE_MACVLAN_MODE
#define | NM_DEVICE_MACVLAN_NO_PROMISC
#define | NM_DEVICE_MACVLAN_TAP
#define | NM_DEVICE_MACVLAN_HW_ADDRESS
| NMDeviceMacvlan

## Object Hierarchy

        GObject
        ╰── NMObject
            ╰── NMDevice
                ╰── NMDeviceMacvlan

## Description

## Functions

### nm_device_macvlan_get_parent ()

    NMDevice *
    nm_device_macvlan_get_parent (NMDeviceMacvlan *device);

### nm_device_macvlan_get_mode ()

    const char *
    nm_device_macvlan_get_mode (NMDeviceMacvlan *device);

### nm_device_macvlan_get_no_promisc ()

    gboolean
    nm_device_macvlan_get_no_promisc (NMDeviceMacvlan *device);

### nm_device_macvlan_get_tap ()

    gboolean
    nm_device_macvlan_get_tap (NMDeviceMacvlan *device);

### nm_device_macvlan_get_hw_address ()

    const char *
    nm_device_macvlan_get_hw_address (NMDeviceMacvlan *device);

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

## Types and Values

### NM_DEVICE_MACVLAN_PARENT

    #define NM_DEVICE_MACVLAN_PARENT     "parent"

### NM_DEVICE_MACVLAN_MODE

    #define NM_DEVICE_MACVLAN_MODE       "mode"

### NM_DEVICE_MACVLAN_NO_PROMISC

    #define NM_DEVICE_MACVLAN_NO_PROMISC "no-promisc"

### NM_DEVICE_MACVLAN_TAP

    #define NM_DEVICE_MACVLAN_TAP        "tap"

### NM_DEVICE_MACVLAN_HW_ADDRESS

    #define NM_DEVICE_MACVLAN_HW_ADDRESS "hw-address"

### NMDeviceMacvlan

    typedef struct _NMDeviceMacvlan NMDeviceMacvlan;

Since: 1.2

## Property Details

### The `“mode”` property

      “mode”                     char *

Owner: NMDeviceMacvlan

Flags: Read

Default value: NULL

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

      “no-promisc”               gboolean

Owner: NMDeviceMacvlan

Flags: Read

Default value: FALSE

### The `“parent”` property

      “parent”                   NMDevice *

Owner: NMDeviceMacvlan

Flags: Read

### The `“tap”` property

      “tap”                      gboolean

Owner: NMDeviceMacvlan

Flags: Read

Default value: FALSE