t.p.t.TunnelFlags(Flags) : class documentation

Part of twisted.pair.tuntap View Source View In Hierarchy

TunnelFlags defines more flags which are used to configure the behavior of a tunnel device.
See Alsohttps://www.kernel.org/doc/Documentation/networking/tuntap.txt
Class Variable IFF_TUN This indicates a tun-type device. This type of tunnel carries IP datagrams. This flag is mutually exclusive with IFF_TAP.
Class Variable IFF_TAP This indicates a tap-type device. This type of tunnel carries ethernet frames. This flag is mutually exclusive with IFF_TUN.
Class Variable IFF_NO_PI This indicates the protocol information header will not be included in data read from the tunnel.

Inherited from Flags:

Class Method _constantFactory For FlagConstant instances with no explicitly defined value, assign the next power of two as its value.

Inherited from Values (via Flags):

Class Method lookupByValue Retrieve a constant by its value or raise a ValueError if there is no constant associated with that value.

Inherited from _ConstantsContainer (via Flags, Values):

Method __new__ Classes representing constants containers are not intended to be instantiated.
Class Method lookupByName Retrieve a constant by its name or raise a ValueError if there is no constant associated with that name.
Class Method iterconstants Iteration over a Names subclass results in all of the constants it contains.
Class Variable _constantType Specified by a _ConstantsContainer subclass to specify the type of constants allowed by that subclass.
Class Variable _enumerants A dict mapping the names of constants (eg NamedConstant instances) found in the class definition to those instances.
IFF_TUN =
This indicates a tun-type device. This type of tunnel carries IP datagrams. This flag is mutually exclusive with IFF_TAP.
IFF_TAP =
This indicates a tap-type device. This type of tunnel carries ethernet frames. This flag is mutually exclusive with IFF_TUN.
IFF_NO_PI =
This indicates the protocol information header will not be included in data read from the tunnel.
API Documentation for Twisted, generated by pydoctor at 2014-09-17 19:15:55.