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