1
2
3
4
5
6
7
8
9
10
11 #ifndef _IPX_H
12 #define _IPX_H
13
14 #include <linux/ddi.h>
15
16 typedef struct
17 {
18 unsigned long net;
19 unsigned char node[6];
20 unsigned short sock;
21 } ipx_address;
22
23 #define ipx_broadcast_node "\377\377\377\377\377\377"
24
25 typedef struct ipx_packet
26 {
27 unsigned short ipx_checksum;
28 #define IPX_NO_CHECKSUM 0xFFFF
29 unsigned short ipx_pktsize;
30 unsigned char ipx_tctrl;
31 unsigned char ipx_type;
32 #define IPX_TYPE_UNKNOWN 0x00
33 #define IPX_TYPE_RIP 0x01
34 #define IPX_TYPE_SAP 0x04
35 #define IPX_TYPE_SPX 0x05
36 #define IPX_TYPE_NCP 0x11
37 #define IPX_TYPE_PPROP 0x14
38 ipx_address ipx_dest __attribute__ ((packed));
39 ipx_address ipx_source __attribute__ ((packed));
40 } ipx_packet;
41
42
43 typedef struct ipx_route
44 {
45 unsigned long net;
46 unsigned char router_node[6];
47 unsigned long router_net;
48 unsigned short flags;
49 struct device *dev;
50 #define IPX_RT_ROUTED 1
51 #define IPX_RT_BLUEBOOK 2
52 struct ipx_route *next;
53 } ipx_route;
54
55
56 typedef struct sock ipx_socket;
57
58
59 #include "ipxcall.h"
60 extern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
61
62
63
64 #endif