Mini Shell

Direktori : /opt/saltstack/salt/extras-3.10/pyroute2/netlink/rtnl/ifinfmsg/plugins/
Upload File :
Current File : //opt/saltstack/salt/extras-3.10/pyroute2/netlink/rtnl/ifinfmsg/plugins/tuntap.py

from pyroute2.netlink import nla


class tuntap(nla):
    '''
    Fake data type
    '''

    prefix = 'IFTUN_'
    nla_map = (
        ('IFTUN_UNSPEC', 'none'),
        ('IFTUN_MODE', 'asciiz'),
        ('IFTUN_UID', 'uint32'),
        ('IFTUN_GID', 'uint32'),
        ('IFTUN_IFR', 'flags'),
    )

    class flags(nla):
        fields = (
            ('no_pi', 'B'),
            ('one_queue', 'B'),
            ('vnet_hdr', 'B'),
            ('tun_excl', 'B'),
            ('multi_queue', 'B'),
            ('persist', 'B'),
            ('nofilter', 'B'),
        )

Zerion Mini Shell 1.0