diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-12-30 15:52:13 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-12-30 15:52:13 -0800 |
commit | 5301862d3094513e509cc95b17a778299b581bd3 (patch) | |
tree | cfbd4302ee74ffadb16580ab47965c8cca65397e /print-ipx.c | |
parent | 6f5599b24b3275d24b7e6a33bf2768ad70c91b7c (diff) | |
download | tcpdump-5301862d3094513e509cc95b17a778299b581bd3.tar.gz |
Commit more changes from the previous two.
Diffstat (limited to 'print-ipx.c')
-rw-r--r-- | print-ipx.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/print-ipx.c b/print-ipx.c index c9bde235..bc597d40 100644 --- a/print-ipx.c +++ b/print-ipx.c @@ -39,9 +39,32 @@ static const char rcsid[] _U_ = #include "interface.h" #include "addrtoname.h" -#include "ipx.h" #include "extract.h" +/* well-known sockets */ +#define IPX_SKT_NCP 0x0451 +#define IPX_SKT_SAP 0x0452 +#define IPX_SKT_RIP 0x0453 +#define IPX_SKT_NETBIOS 0x0455 +#define IPX_SKT_DIAGNOSTICS 0x0456 +#define IPX_SKT_NWLINK_DGM 0x0553 /* NWLink datagram, may contain SMB */ +#define IPX_SKT_EIGRP 0x85be /* Cisco EIGRP over IPX */ + +/* IPX transport header */ +struct ipxHdr { + u_int16_t cksum; /* Checksum */ + u_int16_t length; /* Length, in bytes, including header */ + u_int8_t tCtl; /* Transport Control (i.e. hop count) */ + u_int8_t pType; /* Packet Type (i.e. level 2 protocol) */ + u_int16_t dstNet[2]; /* destination net */ + u_int8_t dstNode[6]; /* destination node */ + u_int16_t dstSkt; /* destination socket */ + u_int16_t srcNet[2]; /* source net */ + u_int8_t srcNode[6]; /* source node */ + u_int16_t srcSkt; /* source socket */ +}; + +#define ipxSize 30 static const char *ipxaddr_string(u_int32_t, const u_char *); void ipx_decode(const struct ipxHdr *, const u_char *, u_int); |