ipx.py 265 B

12345678910111213141516
  1. """Internetwork Packet Exchange."""
  2. from pypacker import pypacker
  3. IPX_HDR_LEN = 30
  4. class IPX(pypacker.Packet):
  5. __hdr__ = (
  6. ("sum", "H", 0xffff),
  7. ("len", "H", IPX_HDR_LEN),
  8. ("tc", "B", 0),
  9. ("pt", "B", 0),
  10. ("dst", "12s", b""),
  11. ("src", "12s", b"")
  12. )