Package dpkt :: Module ppp :: Class PPP
[hide private]
[frames] | no frames]

Class PPP

source code

object --+        
         |        
   ??.Temp --+    
             |    
   dpkt.Packet --+
                 |
                PPP
Known Subclasses:

Point-to-Point Protocol.

TODO: Longer class information....

Attributes:
    __hdr__: Header fields of PPP.
    TODO.

Instance Methods [hide private]
 
pack_hdr(self)
Return packed header string.
source code
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
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 Methods [hide private]
 
get_p(cls, p) source code
 
set_p(cls, p, pktclass) source code
Class Variables [hide private]
  __hdr__ = (('addr', 'B', 255), ('cntrl', 'B', 3), ('p', 'B', 33))
  __hdr_defaults__ = {'addr': 255, 'cntrl': 3, 'p': 33}
  __hdr_fields__ = ['addr', 'cntrl', 'p']
  __hdr_fmt__ = '>BBB'
  __hdr_len__ = 3
  _protosw = {33: <class 'dpkt.ip.IP'>, 87: <class 'dpkt.ip6.IP6'>}
Properties [hide private]
  addr
  cntrl
  data
  p

Inherited from object: __class__

Method Details [hide private]

pack_hdr(self)

source code 
Return packed header string.

Overrides: dpkt.Packet.pack_hdr
(inherited documentation)

unpack(self, buf)

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

Overrides: dpkt.Packet.unpack
(inherited documentation)