示例#1
0
    def __init__(self, raw=None, prev=None, **kw):
        packet_base.__init__(self)

        self.prev = prev
        self.next = None

        self.null = 0

        if raw is not None:
            self.parse(raw)

        self._init(kw)
示例#2
0
    def __init__(self, raw=None, prev=None, **kw):
        packet_base.__init__(self)

        self.prev = prev
        self.next = None

        self.from_controller_id = 0
        self.to_controller_id = 0
        self.vid = None

        if raw is not None:
            self.parse(raw)

        self._init(kw)
示例#3
0
    def __init__(self, raw=None, prev=None, **kw):
        packet_base.__init__(self)

        self.prev = prev
        self.next = None

        self.src = None
        self.dst = None
        self.fd = VidAddr(0, 0)
        self.next_eth_type = 0

        if raw is not None:
            self.parse(raw)

        self._init(kw)
示例#4
0
    def __init__(self, raw=None, prev=None, **kw):
        packet_base.__init__(self)

        self.prev = prev
        self.next = None

        self.mac = 0
        self.ip = 0
        self.vid = 0
        self.port = 0
        self.host = 0

        if raw is not None:
            self.parse(raw)

        self._init(kw)