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

Class VLANtagISL

source code

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

Cisco Inter-Switch Link 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

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__ = (('da', '5s', '\x01\x00\x0c\x00\x00'), ('_type_pri',...
  __hdr_defaults__ = {'_id_bpdu': 0, '_type_pri': 3, 'da': '\x01...
  __hdr_fields__ = ['da', '_type_pri', 'sa', 'len', 'snap', 'hsa...
  __hdr_fmt__ = '>5sB6sH3s3sHHH'
  __hdr_len__ = 26
Properties [hide private]
  _id_bpdu
  _type_pri
  da
  data
  hsa
  indx
  len
  res
  sa
  snap

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)

Class Variable Details [hide private]

__hdr__

Value:
(('da', '5s', '\x01\x00\x0c\x00\x00'),
 ('_type_pri', 'B', 3),
 ('sa', '6s', ''),
 ('len', 'H', 0),
 ('snap', '3s', '\xaa\xaa\x03'),
 ('hsa', '3s', '\x00\x00\x0c'),
 ('_id_bpdu', 'H', 0),
 ('indx', 'H', 0),
...

__hdr_defaults__

Value:
{'_id_bpdu': 0,
 '_type_pri': 3,
 'da': '\x01\x00\x0c\x00\x00',
 'hsa': '\x00\x00\x0c',
 'indx': 0,
 'len': 0,
 'res': 0,
 'sa': '',
...

__hdr_fields__

Value:
['da',
 '_type_pri',
 'sa',
 'len',
 'snap',
 'hsa',
 '_id_bpdu',
 'indx',
...