Top |
#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 |
0
NM_DEPRECATED_IN_1_24_FOR ();
NM_DEPRECATED_IN_1_24_FOR
is deprecated and should not be used in newly-written code.
const char *
nm_device_tun_get_mode (NMDeviceTun *device
);
Returns the TUN/TAP mode for the device.
Since: 1.2
gint64
nm_device_tun_get_owner (NMDeviceTun *device
);
Gets the tunnel owner.
Since: 1.2
gint64
nm_device_tun_get_group (NMDeviceTun *device
);
Gets the tunnel group.
Since: 1.2
gboolean
nm_device_tun_get_no_pi (NMDeviceTun *device
);
Returns whether the NMDeviceTun has the IFF_NO_PI flag.
Since: 1.2
gboolean
nm_device_tun_get_vnet_hdr (NMDeviceTun *device
);
Returns whether the NMDeviceTun has the IFF_VNET_HDR flag.
Since: 1.2
gboolean
nm_device_tun_get_multi_queue (NMDeviceTun *device
);
Returns whether the NMDeviceTun has the IFF_MULTI_QUEUE flag.
Since: 1.2
“group”
property“group” gint64
The gid of the tunnel group, or -1 if it has no owner.
Owner: NMDeviceTun
Flags: Read
Allowed values: [-1,4294967295]
Default value: -1
Since: 1.2
“mode”
property “mode” char *
The tunnel mode, either "tun" or "tap".
Owner: NMDeviceTun
Flags: Read
Default value: NULL
Since: 1.2
“multi-queue”
property“multi-queue” gboolean
The tunnel's "TUN_TAP_MQ" flag; true if callers can connect to the tap device multiple times, for multiple send/receive queues.
Owner: NMDeviceTun
Flags: Read
Default value: FALSE
Since: 1.2
“no-pi”
property“no-pi” gboolean
The tunnel's "TUN_NO_PI" flag; true if no protocol info is prepended to the tunnel packets.
Owner: NMDeviceTun
Flags: Read
Default value: FALSE
Since: 1.2
“owner”
property“owner” gint64
The uid of the tunnel owner, or -1 if it has no owner.
Owner: NMDeviceTun
Flags: Read
Allowed values: [-1,4294967295]
Default value: -1
Since: 1.2
“vnet-hdr”
property“vnet-hdr” gboolean
The tunnel's "TUN_VNET_HDR" flag; true if the tunnel packets include a virtio network header.
Owner: NMDeviceTun
Flags: Read
Default value: FALSE
Since: 1.2