![]() |
![]() |
![]() |
libnm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#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; NMDeviceMacvlanClass; NMDevice * nm_device_macvlan_get_parent (NMDeviceMacvlan *device
); const char * nm_device_macvlan_get_mode (NMDeviceMacvlan *device
); gboolean nm_device_macvlan_get_no_promisc (NMDeviceMacvlan *device
); gboolean nm_device_macvlan_get_tap (NMDeviceMacvlan *device
); const char * nm_device_macvlan_get_hw_address (NMDeviceMacvlan *device
);
"hw-address" gchar* : Read "mode" gchar* : Read "no-promisc" gboolean : Read "parent" NMDevice* : Read "tap" gboolean : Read
NMDevice * nm_device_macvlan_get_parent (NMDeviceMacvlan *device
);
|
a NMDeviceMacvlan |
Returns : |
the device's parent device. [transfer none] |
Since 1.2
const char * nm_device_macvlan_get_mode (NMDeviceMacvlan *device
);
Gets the MACVLAN mode of the device.
|
a NMDeviceMacvlan |
Returns : |
the MACVLAN mode. This is the internal string used by the device, and must not be modified. |
Since 1.2
gboolean nm_device_macvlan_get_no_promisc (NMDeviceMacvlan *device
);
Gets the no-promiscuous flag of the device.
|
a NMDeviceMacvlan |
Returns : |
the no-promiscuous flag of the device. |
Since 1.2
gboolean nm_device_macvlan_get_tap (NMDeviceMacvlan *device
);
Gets the device type (MACVLAN or MACVTAP).
|
a NMDeviceMacvlan |
Returns : |
TRUE if the device is a MACVTAP, FALSE if it is a MACVLAN. |
Since 1.2
const char * nm_device_macvlan_get_hw_address (NMDeviceMacvlan *device
);
Gets the hardware (MAC) address of the NMDeviceMacvlan
|
a NMDeviceMacvlan |
Returns : |
the hardware address. This is the internal string used by the device, and must not be modified. |
Since 1.2