�
Ϫ�f�1 � � � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m
Z
ddlmZm
Z
mZ ddlmZmZ ddlmZ ddlmZmZmZmZmZ dd lmZmZ dd
lmZ ddlm Z ddl!m"Z" dd
l#m$Z$m%Z% g d�Z&dZ' ejP � dk( s@ ejP � jS d� s ejP � jS d� rdZ*dZ+ndZ*dZ+dZ, G d� de� Z- eej\ � G d� de%e$� � Z/ G d� d edd� � Z0 G d� d e
� Z1 G d!� d"� Z2 eejf � G d#� d$ejh � � Z5y)%zc
Support for Linux ethernet and IP tunnel devices.
@see: U{https://en.wikipedia.org/wiki/TUN/TAP}
� N)�
namedtuple)�Tuple)� Attribute� Interface�implementer)�FlagConstant�Flags)�Version)�abstract�defer�error�
interfaces�task)�ethernet�raw)�log)�
deprecated)�fullyQualifiedName)�FancyEqMixin�
FancyStrMixin)�TunnelFlags�
TunnelAddress�
TuntapPort� �parisc�ppc�sparcl �T i�T@i�T@l �T s /dev/net/tunc �� � e Zd ZdZ ed� Z ed� Z ed� Z ed� Z ed� Z ed� Z
ed� Z ed � Z ed
� Z
ed� Z ed� Z ed
� Zy)r a~
L{TunnelFlags} defines more flags which are used to configure the behavior
of a tunnel device.
@cvar IFF_TUN: This indicates a I{tun}-type device. This type of tunnel
carries IP datagrams. This flag is mutually exclusive with C{IFF_TAP}.
@cvar IFF_TAP: This indicates a I{tap}-type device. This type of tunnel
carries ethernet frames. This flag is mutually exclusive with C{IFF_TUN}.
@cvar IFF_NO_PI: This indicates the I{protocol information} header will
B{not} be included in data read from the tunnel.
@see: U{https://www.kernel.org/doc/Documentation/networking/tuntap.txt}
� � r � �@ � � i i � i @ i � N)�__name__�
__module__�__qualname__�__doc__r �IFF_TUN�IFF_TAP�
TUN_FASYNC�TUN_NOCHECKSUM� TUN_NO_PI�
TUN_ONE_QUEUE�TUN_PERSIST�TUN_VNET_HDR� IFF_NO_PI�
IFF_ONE_QUEUE�IFF_VNET_HDR�IFF_TUN_EXCL� � �5/usr/lib/python3/dist-packages/twisted/pair/tuntap.pyr r 6 s� � �� �6�"�G��6�"�G��f�%�J�!�&�)�N��V�$�I� ��(�M��v�&�K���'�L��V�$�I� ��(�M���'�L���'�Lr7 r c �> |