Mini Shell

Direktori : /proc/self/root/opt/imh-python/lib/python3.9/site-packages/pyroute2/netlink/connector/
Upload File :
Current File : //proc/self/root/opt/imh-python/lib/python3.9/site-packages/pyroute2/netlink/connector/__init__.py

from pyroute2.netlink import NETLINK_CONNECTOR, nlmsg
from pyroute2.netlink.nlsocket import NetlinkSocket


class cn_msg(nlmsg):
    fields = (
        ('idx', 'I'),
        ('val', 'I'),
        ('seq', 'I'),
        ('ack', 'I'),
        ('len', 'H'),
        ('flags', 'H'),
    )


class ConnectorSocket(NetlinkSocket):
    def __init__(self, fileno=None):
        super().__init__(NETLINK_CONNECTOR)

Zerion Mini Shell 1.0