Package dpkt :: Module ethernet :: Class VLANtag8021Q
[hide private]
[frames] | no frames]

Class VLANtag8021Q

source code

object --+        
         |        
   ??.Temp --+    
             |    
   dpkt.Packet --+
                 |
                VLANtag8021Q

IEEE 802.1q VLAN tag

Instance Methods [hide private]
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
pack_hdr(self)
Return packed header string.
source code
 
as_tuple(self) source code

Inherited from dpkt.Packet: __bytes__, __getitem__, __init__, __len__, __repr__, __str__, pack

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __hdr__ = (('_pri_cfi_id', 'H', 0), ('type', 'H', 2048))
  __hdr_defaults__ = {'_pri_cfi_id': 0, 'type': 2048}
  __hdr_fields__ = ['_pri_cfi_id', 'type']
  __hdr_fmt__ = '>HH'
  __hdr_len__ = 4
Properties [hide private]
  _pri_cfi_id
  data
  type

Inherited from object: __class__

Method Details [hide private]

unpack(self, buf)

source code 
Unpack packet header fields from buf, and set self.data.

Overrides: dpkt.Packet.unpack
(inherited documentation)

pack_hdr(self)

source code 
Return packed header string.

Overrides: dpkt.Packet.pack_hdr
(inherited documentation)