tpkt.py 258 B

1234567891011121314
  1. """ISO Transport Service on top of the TCP (TPKT)."""
  2. from pypacker import pypacker
  3. # TPKT - RFC 1006 Section 6
  4. # http://www.faqs.org/rfcs/rfc1006.html
  5. class TPKT(pypacker.Packet):
  6. __hdr__ = (
  7. ("v", "B", 3),
  8. ("rsvd", "B", 0),
  9. ("len", "H", 0)
  10. )