Package dpkt :: Module llc :: Class LLC
[hide private]
[frames] | no frames]

Class LLC

source code

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

802.2 Logical Link Control (LLC) data communication protocol.

Attributes:
    __hdr__ = (
        ('dsap', 'B', 0xaa),   # Destination Service Access Point
        ('ssap', 'B', 0xaa),   # Source Service Access Point
        ('ctl', 'B', 3)        # Control Byte
    )

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
 
__len__(self) source code

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

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

Class Variables [hide private]
  __hdr__ = (('dsap', 'B', 170), ('ssap', 'B', 170), ('ctl', 'B'...
  __hdr_defaults__ = {'ctl': 3, 'dsap': 170, 'ssap': 170}
  __hdr_fields__ = ['dsap', 'ssap', 'ctl']
  __hdr_fmt__ = '>BBB'
  __hdr_len__ = 3
Properties [hide private]
  is_snap
  ctl
  data
  dsap
  ssap

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)

__len__(self)
(Length operator)

source code 
Overrides: dpkt.Packet.__len__

Class Variable Details [hide private]

__hdr__

Value:
(('dsap', 'B', 170), ('ssap', 'B', 170), ('ctl', 'B', 3))

Property Details [hide private]

is_snap

Get Method:
unreachable.is_snap(self)