]> icculus.org git repositories - btb/d2x.git/blob - arch/linux/include/ipx_hlpr.h
Brought linux networking in line with d1x, moved some arch/linux_* stuff to arch...
[btb/d2x.git] / arch / linux / include / ipx_hlpr.h
1 /*
2  * $Source: /cvs/cvsroot/d2x/arch/linux/include/ipx_hlpr.h,v $
3  * $Revision: 1.2 $
4  * $Author: bradleyb $
5  * $Date: 2001-10-19 07:29:37 $
6  *
7  * FIXME: add description
8  *
9  * $Log: not supported by cvs2svn $
10  *
11  */
12
13 #ifndef IPXHELPER_H_
14 #define IPXHELPER_H_
15 #include <sys/types.h>
16 #include "ipx_ld.h"
17
18 #define IPX_MANUAL_ADDRESS
19
20 struct ipx_recv_data {
21         /* all network order */
22         u_char src_network[4];
23         u_char src_node[6];
24         u_short src_socket;
25         u_short dst_socket;
26         int pkt_type;
27 };
28
29 struct ipx_helper {
30         int (*GetMyAddress)(void);
31         int (*OpenSocket)(ipx_socket_t *sk, int port);
32         void (*CloseSocket)(ipx_socket_t *mysock);
33         int (*SendPacket)(ipx_socket_t *mysock, IPXPacket_t *IPXHeader,
34          u_char *data, int dataLen);
35         int (*ReceivePacket)(ipx_socket_t *s, char *buffer, int bufsize, 
36          struct ipx_recv_data *rec);
37         int (*PacketReady)(ipx_socket_t *s);
38 };
39
40 #endif /* IPXHELPER_H_ */