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