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

Type IP6

object --+    
         |    
    Packet --+
             |
            IP6


Method Summary
  __str__(self)
  get_proto(cls, p)
(Class method)
  set_proto(cls, p, pktclass)
(Class method)
  unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
  _get_fc(self)
  _get_flow(self)
  _get_v(self)
  _set_fc(self, v)
  _set_flow(self, v)
  _set_v(self, v)
    Inherited from Packet
  __init__(self, *args, **kwargs)
Packet constructor with ([buf], [field=val,...]) prototype.
  __getitem__(self, k)
  __len__(self)
  __repr__(self)
  pack(self)
Return packed header + self.data string.
  pack_hdr(self)
Return packed header string.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...

Property Summary
  fc
  flow
  v

Class Variable Summary
tuple __hdr__ = (('v_fc_flow', 'I', 1610612736L), ('plen', 'H'...
dict __hdr_defaults__ = {'src': '', 'v_fc_flow': 1610612736L,...
list __hdr_fields__ = ['v_fc_flow', 'plen', 'nxt', 'hlim', 's...
str __hdr_fmt__ = '>IHBB16s16s'
int __hdr_len__ = 40                                                                    
dict _protosw = {0: <class 'dpkt.ip.IP'>, 1: <class 'dpkt.icm...

Instance Method Details

unpack(self, buf)

Unpack packet header fields from buf, and set self.data.
Overrides:
dpkt.dpkt.Packet.unpack (inherited documentation)

Property Details

fc

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

flow

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

v

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

Class Variable Details

__hdr__

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

__hdr_defaults__

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

__hdr_fields__

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

__hdr_fmt__

Type:
str
Value:
'>IHBB16s16s'                                                          

__hdr_len__

Type:
int
Value:
40                                                                    

_protosw

Type:
dict
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'>,
...                                                                    

Generated by Epydoc 2.1 on Sun Oct 1 11:24:12 2006 http://epydoc.sf.net