1 /****************************************************************************
2 ** File: ipx.h
3 **
4 ** Author: Mike Borella
5 **
6 ** Comments: IPX header format and such
7 **
8 ** $Id: ipx.h,v 1.6 2006/11/21 07:47:34 farooq-i-azam Exp $
9 **
10 ** This program is free software; you can redistribute it and/or modify
11 ** it under the terms of the GNU General Public License as published by
12 ** the Free Software Foundation; either version 2 of the License, or
13 ** (at your option) any later version.
14 **
15 ** This program is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 ** GNU Library General Public License for more details.
19 **
20 ** You should have received a copy of the GNU General Public License
21 ** along with this program; if not, write to the Free Software
22 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 **
24 *****************************************************************************/
25 
26 #ifndef IPX_H
27 #define IPX_H
28 
29 #include "global.h"
30 #include "local.h"
31 
32 /*
33  * IPX packet types
34  */
35 
36 #define IPX_PACKETTYPE_UNKNOWN     0
37 #define IPX_PACKETTYPE_RIP         1
38 #define IPX_PACKETTYPE_ECHO        2
39 #define IPX_PACKETTYPE_ERROR       3
40 #define IPX_PACKETTYPE_PEP         4
41 #define IPX_PACKETTYPE_SPX         5
42 #define IPX_PACKETTYPE_NCP         17
43 #define IPX_PACKETTYPE_NETBIOS     20
44 
45 /*
46  * IPX header
47  */
48 
49 typedef struct ipx_header
50 {
51   u_int16_t csum;
52   u_int16_t len;
53   u_int8_t  tc;
54   u_int8_t  pt;
55   u_int32_t dstnet;
56   u_char    dstnode[6];
57   u_int16_t dstport;
58   u_int32_t srcnet;
59   u_char    srcnode[6];
60   u_int16_t srcport;
61 } ipx_header_t;
62 
63 void dump_ipx(packet_t *);
64 
65 #endif
66 
67 
68 
69