1 /* $OpenBSD: ipx.h,v 1.7 2007/10/07 16:41:05 deraadt Exp $ */ 2 3 /* 4 * IPX protocol formats 5 * 6 * @(#) $Id: ipx.h,v 1.7 2007/10/07 16:41:05 deraadt Exp $ 7 */ 8 9 /* well-known sockets */ 10 #define IPX_SKT_NCP 0x0451 11 #define IPX_SKT_SAP 0x0452 12 #define IPX_SKT_RIP 0x0453 13 #define IPX_SKT_NETBIOS 0x0455 14 #define IPX_SKT_DIAGNOSTICS 0x0456 15 16 /* IPX transport header */ 17 struct ipxHdr { 18 u_short cksum; /* Checksum */ 19 u_short length; /* Length, in bytes, including header */ 20 u_char tCtl; /* Transport Control (i.e. hop count) */ 21 u_char pType; /* Packet Type (i.e. level 2 protocol) */ 22 u_short dstNet[2]; /* destination net */ 23 u_char dstNode[6]; /* destination node */ 24 u_short dstSkt; /* destination socket */ 25 u_short srcNet[2]; /* source net */ 26 u_char srcNode[6]; /* source node */ 27 u_short srcSkt; /* source socket */ 28 } ipx_hdr_t; 29 30 #define ipxSize 30 31 32