NM.DeviceTun¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.DeviceTun(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
New in version 1.2.
- get_group()¶
- Returns:
the gid of the tunnel group, or -1 if it has no owner.
- Return type:
Gets the tunnel group.
New in version 1.2.
- get_mode()¶
- Returns:
‘tun’ or ‘tap’
- Return type:
Returns the TUN/TAP mode for the device.
New in version 1.2.
- get_multi_queue()¶
-
Returns whether the
NM.DeviceTun
has the IFF_MULTI_QUEUE flag.New in version 1.2.
- get_no_pi()¶
-
Returns whether the
NM.DeviceTun
has the IFF_NO_PI flag.New in version 1.2.
- get_owner()¶
- Returns:
the uid of the tunnel owner, or -1 if it has no owner.
- Return type:
Gets the tunnel owner.
New in version 1.2.
- get_vnet_hdr()¶
-
Returns whether the
NM.DeviceTun
has the IFF_VNET_HDR flag.New in version 1.2.
Property Details¶
- NM.DeviceTun.props.group¶
-
The gid of the tunnel group, or -1 if it has no owner.
New in version 1.2.
- NM.DeviceTun.props.mode¶
-
The tunnel mode, either “tun” or “tap”.
New in version 1.2.
- NM.DeviceTun.props.multi_queue¶
-
The tunnel’s “TUN_TAP_MQ” flag; true if callers can connect to the tap device multiple times, for multiple send/receive queues.
New in version 1.2.
- NM.DeviceTun.props.no_pi¶
-
The tunnel’s “TUN_NO_PI” flag; true if no protocol info is prepended to the tunnel packets.
New in version 1.2.
- NM.DeviceTun.props.owner¶
-
The uid of the tunnel owner, or -1 if it has no owner.
New in version 1.2.