Package dpkt :: Module pppoe :: Class PPPoE
[hide private]
[frames] | no frames]

Class PPPoE

source code

 object --+    
          |    
dpkt.Packet --+
              |
             PPPoE

Nested Classes [hide private]

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]
 
_get_v(self) source code
 
_set_v(self, v) source code
 
_get_type(self) source code
 
_set_type(self, t) source code
 
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__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __hdr__ = (('v_type', 'B', 17), ('code', 'B', 0), ('session', ...
  __hdr_defaults__ = {'code': 0, 'len': 0, 'session': 0, 'v_type...
  __hdr_fields__ = ['v_type', 'code', 'session', 'len']
  __hdr_fmt__ = '>BBHH'
  __hdr_len__ = 6
Properties [hide private]
  v
  type
  code
  data
  len
  session
  v_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)

Class Variable Details [hide private]

__hdr__

Value:
(('v_type', 'B', 17),
 ('code', 'B', 0),
 ('session', 'H', 0),
 ('len', 'H', 0))

__hdr_defaults__

Value:
{'code': 0, 'len': 0, 'session': 0, 'v_type': 17}

Property Details [hide private]

v

Get Method:
_get_v(self)
Set Method:
_set_v(self, v)

type

Get Method:
_get_type(self)
Set Method:
_set_type(self, t)