Package dpkt :: Module sll :: Class SLL
[hide private]
[frames] | no frames]

Class SLL

source code

 object --+    
          |    
dpkt.Packet --+
              |
             SLL

Nested Classes [hide private]

Inherited from dpkt.Packet: __metaclass__

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

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

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

Class Variables [hide private]
  __hdr__ = (('type', 'H', 0), ('hrd', 'H', 1), ('hlen', 'H', 6)...
  _typesw = {2048: <class 'dpkt.ip.IP'>, 2054: <class 'dpkt.arp....
  __hdr_defaults__ = {'ethtype': 2048, 'hdr': '', 'hlen': 6, 'hr...
  __hdr_fields__ = ['type', 'hrd', 'hlen', 'hdr', 'ethtype']
  __hdr_fmt__ = '>HHH8sH'
  __hdr_len__ = 16
Properties [hide private]

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)

Class Variable Details [hide private]

__hdr__

Value:
(('type', 'H', 0),
 ('hrd', 'H', 1),
 ('hlen', 'H', 6),
 ('hdr', '8s', ''),
 ('ethtype', 'H', 2048))

_typesw

Value:
{2048: <class 'dpkt.ip.IP'>,
 2054: <class 'dpkt.arp.ARP'>,
 8192: <class 'dpkt.cdp.CDP'>,
 8196: <class 'dpkt.dtp.DTP'>,
 33079: <class 'dpkt.ipx.IPX'>,
 34525: <class 'dpkt.ip6.IP6'>,
 34827: <class 'dpkt.ppp.PPP'>,
 34916: <class 'dpkt.pppoe.PPPoE'>}

__hdr_defaults__

Value:
{'ethtype': 2048, 'hdr': '', 'hlen': 6, 'hrd': 1, 'type': 0}