![]() |
![]() |
![]() |
libnm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#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; NMDeviceTunClass; const char * nm_device_tun_get_hw_address (NMDeviceTun *device
); const char * nm_device_tun_get_mode (NMDeviceTun *device
); gint64 nm_device_tun_get_owner (NMDeviceTun *device
); gint64 nm_device_tun_get_group (NMDeviceTun *device
); gboolean nm_device_tun_get_no_pi (NMDeviceTun *device
); gboolean nm_device_tun_get_vnet_hdr (NMDeviceTun *device
); gboolean nm_device_tun_get_multi_queue (NMDeviceTun *device
);
"group" gint64 : Read "hw-address" gchar* : Read "mode" gchar* : Read "multi-queue" gboolean : Read "no-pi" gboolean : Read "owner" gint64 : Read "vnet-hdr" gboolean : Read
const char * nm_device_tun_get_hw_address (NMDeviceTun *device
);
Gets the hardware (MAC) address of the NMDeviceTun
|
a NMDeviceTun |
Returns : |
the hardware address. This is the internal string used by the device, and must not be modified. |
Since 1.2
const char * nm_device_tun_get_mode (NMDeviceTun *device
);
Returns the TUN/TAP mode for the device.
|
a NMDeviceTun |
Returns : |
'tun' or 'tap' |
Since 1.2
gint64 nm_device_tun_get_owner (NMDeviceTun *device
);
Gets the tunnel owner.
|
a NMDeviceTun |
Returns : |
the uid of the tunnel owner, or -1 if it has no owner. |
Since 1.2
gint64 nm_device_tun_get_group (NMDeviceTun *device
);
Gets the tunnel group.
|
a NMDeviceTun |
Returns : |
the gid of the tunnel group, or -1 if it has no owner. |
Since 1.2
gboolean nm_device_tun_get_vnet_hdr (NMDeviceTun *device
);
Returns whether the NMDeviceTun has the IFF_VNET_HDR flag.
|
a NMDeviceTun |
Returns : |
TRUE if the device has the flag, FALSE otherwise |
Since 1.2
gboolean nm_device_tun_get_multi_queue (NMDeviceTun *device
);
Returns whether the NMDeviceTun has the IFF_MULTI_QUEUE flag.
|
a NMDeviceTun |
Returns : |
TRUE if the device doesn't have the flag, FALSE otherwise |
Since 1.2
"group"
property "group" gint64 : Read
The gid of the tunnel group, or -1 if it has no owner.
Allowed values: [-1,4294967295]
Default value: -1
Since 1.2
"hw-address"
property "hw-address" gchar* : Read
The hardware (MAC) address of the device.
Default value: NULL
Since 1.2
"mode"
property "mode" gchar* : Read
The tunnel mode, either "tun" or "tap".
Default value: NULL
Since 1.2
"multi-queue"
property "multi-queue" gboolean : Read
The tunnel's "TUN_TAP_MQ" flag; true if callers can connect to the tap device multiple times, for multiple send/receive queues.
Default value: FALSE
Since 1.2
"no-pi"
property "no-pi" gboolean : Read
The tunnel's "TUN_NO_PI" flag; true if no protocol info is prepended to the tunnel packets.
Default value: FALSE
Since 1.2
"owner"
property "owner" gint64 : Read
The uid of the tunnel owner, or -1 if it has no owner.
Allowed values: [-1,4294967295]
Default value: -1
Since 1.2