Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/pair/__pycache__/tuntap.cpython-39.pyc
Ðазад
a k�h�0 � @ sl d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl mZmZm Z ddlmZmZ ddlmZ ddlmZmZmZmZmZ dd lmZmZ dd lmZ ddlmZ ddl m!Z! dd l"m#Z#m$Z$ g d�Z%dZ&dZ'dZ(dZ)G dd� de�Z*e ej+�G dd� de$e#��Z,G dd� dedd��Z-G dd� de�Z.G dd� d�Z/e ej0�G dd� dej1��Z2dS ) 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� i�T@l �T s /dev/net/tunc @ sp e Zd ZdZed�Zed�Zed�Zed�Zed�Z ed�Z ed�Zed �Zed �Z ed�Zed�Zed �ZdS )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_TAPZ TUN_FASYNCZTUN_NOCHECKSUMZ TUN_NO_PIZ TUN_ONE_QUEUEZTUN_PERSISTZTUN_VNET_HDR� IFF_NO_PIZ IFF_ONE_QUEUEZIFF_VNET_HDRZIFF_TUN_EXCL� r( r( ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/pair/tuntap.pyr , s r c @ s@ e Zd ZdZdZddd� fdfZedd� �Zd d � Zdd� Z d S )r zU A L{TunnelAddress} represents the tunnel to which a L{TuntapPort} is bound. )� _typeValue�name�typec C s | j S �N)r+ )�flagr( r( r) �<lambda>T � zTunnelAddress.<lambda>r+ c C s | j jS )z� Return the integer value of the C{type} attribute. Used to produce correct results in the equality implementation. )r, �value��selfr( r( r) r* V s zTunnelAddress._typeValuec C s || _ || _dS )z� @param type: Either L{TunnelFlags.IFF_TUN} or L{TunnelFlags.IFF_TAP}, representing the type of this tunnel. @param name: The system name of the tunnel. @type name: L{bytes} N)r, r+ )r3 r, r+ r( r( r) �__init___ s zTunnelAddress.__init__c C s t jdtdd� d| jf| S )zS Deprecated accessor for the tunnel name. Use attributes instead. zUTunnelAddress.__getitem__ is deprecated since Twisted 14.0.0 Use attributes instead.r )�category� stacklevelZTUNTAP)�warnings�warn�DeprecationWarningr+ )r3 �indexr( r( r) �__getitem__j s �zTunnelAddress.__getitem__N) r! r"