Package dpkt :: Module tns :: Class TNS
[hide private]
[frames] | no frames]

Class TNS

source code

 object --+    
          |    
dpkt.Packet --+
              |
             TNS

Nested Classes [hide private]

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]
 
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__ = (('length', 'H', 0), ('pktsum', 'H', 0), ('type', 'B...
  __hdr_defaults__ = {'hdrsum': 0, 'length': 0, 'msg': '', 'pkts...
  __hdr_fields__ = ['length', 'pktsum', 'type', 'rsvd', 'hdrsum'...
  __hdr_fmt__ = '>HHBBH0s'
  __hdr_len__ = 8
Properties [hide private]

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:
(('length', 'H', 0),
 ('pktsum', 'H', 0),
 ('type', 'B', 0),
 ('rsvd', 'B', 0),
 ('hdrsum', 'H', 0),
 ('msg', '0s', ''))

__hdr_defaults__

Value:
{'hdrsum': 0,
 'length': 0,
 'msg': '',
 'pktsum': 0,
 'rsvd': 0,
 'type': 0}

__hdr_fields__

Value:
['length', 'pktsum', 'type', 'rsvd', 'hdrsum', 'msg']