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