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

Class IP6

source code

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

Internet Protocol, version 6.

TODO: Longer class information....

Attributes:
    __hdr__: Header fields of IPv6.
    TODO.

Instance Methods [hide private]
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
headers_str(self)
Output extension headers in order defined in RFC1883 (except dest opts)
source code
 
__bytes__(self) 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 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__ = {'_v_fc_flow': 1610612736, 'dst': '', 'hlim...
  __hdr_fields__ = ['_v_fc_flow', 'plen', 'nxt', 'hlim', 'src', ...
  __hdr_fmt__ = '>IHBB16s16s'
  __hdr_len__ = 40
Properties [hide private]
  v
  fc
  flow
  _v_fc_flow
  data
  dst
  hlim
  nxt
  plen
  src

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)

__bytes__(self)

source code 
Overrides: dpkt.Packet.__bytes__

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'>,
 4: <class 'dpkt.ip.IP'>,
 6: <class 'dpkt.tcp.TCP'>,
 17: <class 'dpkt.udp.UDP'>,
 41: <class 'dpkt.ip6.IP6'>,
 47: <class 'dpkt.gre.GRE'>,
...

__hdr_defaults__

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

__hdr_fields__

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

Property Details [hide private]

v

Get Method:
unreachable.v(self)
Set Method:
unreachable.v(self, v)

fc

Get Method:
unreachable.fc(self)
Set Method:
unreachable.fc(self, v)

flow

Get Method:
unreachable.flow(self)
Set Method:
unreachable.flow(self, v)