| #define | NM_SETTING_TUN_SETTING_NAME |
| #define | NM_SETTING_TUN_MODE |
| #define | NM_SETTING_TUN_OWNER |
| #define | NM_SETTING_TUN_GROUP |
| #define | NM_SETTING_TUN_PI |
| #define | NM_SETTING_TUN_VNET_HDR |
| #define | NM_SETTING_TUN_MULTI_QUEUE |
| enum | NMSettingTunMode |
| NMSettingTun |
The NMSettingTun object is a NMSetting subclass that describes properties necessary for connection to TUN/TAP interfaces.
NMSetting *
nm_setting_tun_new (void);
Creates a new NMSettingTun object with default values.
Since: 1.2
NMSettingTunMode
nm_setting_tun_get_mode (NMSettingTun *setting);
Since: 1.2
const char *
nm_setting_tun_get_owner (NMSettingTun *setting);
Since: 1.2
const char *
nm_setting_tun_get_group (NMSettingTun *setting);
Since: 1.2
gboolean
nm_setting_tun_get_vnet_hdr (NMSettingTun *setting);
Since: 1.2
gboolean
nm_setting_tun_get_multi_queue (NMSettingTun *setting);
Since: 1.2
“group” property“group” gchar *
The group ID which will own the device. If set to NULL everyone
will be able to use the device.
Flags: Read / Write
Default value: NULL
Since: 1.2
“mode” property“mode” guint
The operating mode of the virtual device. Allowed values are
NM_SETTING_TUN_MODE_TUN to create a layer 3 device and
NM_SETTING_TUN_MODE_TAP to create an Ethernet-like layer 2
one.
Flags: Read / Write / Construct
Default value: 1
Since: 1.2
“multi-queue” property“multi-queue” gboolean
If the property is set to TRUE, the interface will support
multiple file descriptors (queues) to parallelize packet
sending or receiving. Otherwise, the interface will only
support a single queue.
Flags: Read / Write
Default value: FALSE
Since: 1.2
“owner” property“owner” gchar *
The user ID which will own the device. If set to NULL everyone
will be able to use the device.
Flags: Read / Write
Default value: NULL
Since: 1.2