From 5301862d3094513e509cc95b17a778299b581bd3 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 30 Dec 2013 15:52:13 -0800 Subject: Commit more changes from the previous two. --- print-ipx.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'print-ipx.c') 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); -- cgit v1.2.1