DeviceTun
Object Hierarchy:
Description:
[
CCode ( type_id =
"nm_device_tun_get_type ()" ) ]
public class DeviceTun :
Device
Content:
Properties:
- public int64 group { get; }
The gid of the tunnel group, or -1 if it has no owner.
- public string mode { get; }
The tunnel mode, either "tun" or "tap".
- public bool multi_queue { get; }
The tunnel's "TUN_TAP_MQ" flag; true if callers can connect to the tap
device multiple times, for multiple send/receive queues.
- public bool no_pi { get; }
The tunnel's "TUN_NO_PI" flag; true if no protocol info is prepended
to the tunnel packets.
- public int64 owner { get; }
The uid of the tunnel owner, or -1 if it has no owner.
- public bool vnet_hdr { get; }
The tunnel's "TUN_VNET_HDR" flag; true if the tunnel packets include a
virtio network header.
Creation methods:
Methods:
- public int64 get_group ()
Gets the tunnel group.
- public unowned string get_mode ()
Returns the TUN/TAP mode for the device.
- public bool get_multi_queue ()
Returns whether the DeviceTun has the
IFF_MULTI_QUEUE flag.
- public bool get_no_pi ()
- public int64 get_owner ()
Gets the tunnel owner.
- public bool get_vnet_hdr ()
Returns whether the DeviceTun has the
IFF_VNET_HDR flag.
Inherited Members:
All known members inherited from class NM.Device
All known members inherited from class NM.Object
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref