Package dpkt :: Module tpkt
[hide private]
[frames] | no frames]

Source Code for Module dpkt.tpkt

 1  # $Id: tpkt.py 23 2006-11-08 15:45:33Z dugsong $ 
 2  # -*- coding: utf-8 -*- 
 3  """ISO Transport Service on top of the TCP (TPKT).""" 
 4  from __future__ import absolute_import 
 5   
 6  from . import dpkt 
 7   
 8  # TPKT - RFC 1006 Section 6 
 9  # http://www.faqs.org/rfcs/rfc1006.html 
10   
11   
12 -class TPKT(dpkt.Packet):
13 """ISO Transport Service on top of the TCP (TPKT). 14 15 TODO: Longer class information.... 16 17 Attributes: 18 __hdr__: Header fields of TPKT. 19 TODO. 20 """ 21 22 __hdr__ = ( 23 ('v', 'B', 3), 24 ('rsvd', 'B', 0), 25 ('len', 'H', 0) 26 )
27