Package dpkt :: Module ip6 :: Class IP6
[hide private]
[frames] | no frames]

Class IP6

source code

 object --+    
          |    
dpkt.Packet --+
              |
             IP6

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_fc(self) source code
 
_set_fc(self, v) source code
 
_get_flow(self) source code
 
_set_flow(self, v) source code
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
__str__(self)
str(x)
source code

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

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

Class Methods [hide private]
 
set_proto(cls, p, pktclass) source code
 
get_proto(cls, p) source code
Class Variables [hide private]
  __hdr__ = (('v_fc_flow', 'I', 1610612736), ('plen', 'H', 0), (...
  _protosw = {0: <class 'dpkt.ip.IP'>, 1: <class 'dpkt.icmp.ICMP...
  __hdr_defaults__ = {'dst': '', 'hlim': 0, 'nxt': 0, 'plen': 0,...
  __hdr_fields__ = ['v_fc_flow', 'plen', 'nxt', 'hlim', 'src', '...
  __hdr_fmt__ = '>IHBB16s16s'
  __hdr_len__ = 40
Properties [hide private]
  v
  fc
  flow

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)

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

__hdr__

Value:
(('v_fc_flow', 'I', 1610612736),
 ('plen', 'H', 0),
 ('nxt', 'B', 0),
 ('hlim', 'B', 0),
 ('src', '16s', ''),
 ('dst', '16s', ''))

_protosw

Value:
{0: <class 'dpkt.ip.IP'>,
 1: <class 'dpkt.icmp.ICMP'>,
 2: <class 'dpkt.igmp.IGMP'>,
 6: <class 'dpkt.tcp.TCP'>,
 17: <class 'dpkt.udp.UDP'>,
 41: <class 'dpkt.ip6.IP6'>,
 47: <class 'dpkt.gre.GRE'>,
 50: <class 'dpkt.esp.ESP'>,
...

__hdr_defaults__

Value:
{'dst': '',
 'hlim': 0,
 'nxt': 0,
 'plen': 0,
 'src': '',
 'v_fc_flow': 1610612736}

__hdr_fields__

Value:
['v_fc_flow', 'plen', 'nxt', 'hlim', 'src', 'dst']

Property Details [hide private]

v

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

fc

Get Method:
_get_fc(self)
Set Method:
_set_fc(self, v)

flow

Get Method:
_get_flow(self)
Set Method:
_set_flow(self, v)