1# $Id: ipx.py 23 2006-11-08 15:45:33Z dugsong $
2# -*- coding: utf-8 -*-
3"""Internetwork Packet Exchange."""
4from __future__ import absolute_import
5
6from . import dpkt
7
8IPX_HDR_LEN = 30
9
10
11class IPX(dpkt.Packet):
12    """Internetwork Packet Exchange.
13
14    TODO: Longer class information....
15
16    Attributes:
17        __hdr__: Header fields of IPX.
18        TODO.
19    """
20
21    __hdr__ = (
22        ('sum', 'H', 0xffff),
23        ('len', 'H', IPX_HDR_LEN),
24        ('tc', 'B', 0),
25        ('pt', 'B', 0),
26        ('dst', '12s', b''),
27        ('src', '12s', b'')
28    )
29