]> icculus.org git repositories - btb/d2x.git/blob - arch/linux/include/ipx_ld.h
remove rcs tags
[btb/d2x.git] / arch / linux / include / ipx_ld.h
1 /*
2  *
3  * parts from:
4  * ipx.h header file for IPX for the DOS emulator
5  *              Tim Bird, tbird@novell.com
6  *
7  */
8
9 #ifndef _IPX_DOSEMU
10 #define _IPX_DOSEMU
11
12 #define MAX_PACKET_DATA         1500
13
14 typedef struct IPXAddressStruct {
15   u_char Network[4] __attribute__((packed));
16   u_char Node[6] __attribute__((packed));
17   u_char Socket[2] __attribute__((packed));
18 } IPXAddress_t;
19
20 typedef struct IPXPacketStructure {
21   u_short Checksum __attribute__((packed));
22   u_short Length __attribute__((packed));
23   u_char TransportControl __attribute__((packed));
24   u_char PacketType __attribute__((packed));
25   IPXAddress_t Destination __attribute__((packed));
26   IPXAddress_t Source __attribute__((packed));
27 } IPXPacket_t;
28
29 typedef struct ipx_socket_struct {
30 #ifdef DOSEMU
31   struct ipx_socket_struct *next;
32   far_t listenList;
33   int listenCount;
34   far_t AESList;
35   int AESCount;
36   u_short PSP;
37 #endif  
38   u_short socket;
39   int fd;
40 } ipx_socket_t;
41
42 #include "mono.h"
43 #ifndef NMONO
44 #define n_printf(format, args...) _mprintf(1, format, ## args)
45 #else
46 #define n_printf(format, args...) fprintf(stderr,format, ## args)
47 #endif
48 #define enter_priv_on()
49 #define leave_priv_setting()
50
51 #endif