Brought linux networking in line with d1x, moved some arch/linux_* stuff to arch...
[btb/d2x.git] / arch / linux / include / ipx_ld.h
1 /*
2  * $Source: /cvs/cvsroot/d2x/arch/linux/include/ipx_ld.h,v $
3  * $Revision: 1.2 $
4  * $Author: bradleyb $
5  * $Date: 2001-10-19 07:29:37 $
6  *
7  * parts from:
8  * ipx.h header file for IPX for the DOS emulator
9  *              Tim Bird, tbird@novell.com
10  *
11  * $Log: not supported by cvs2svn $
12  *
13  */
14
15 #ifndef _IPX_DOSEMU
16 #define _IPX_DOSEMU
17
18 #define MAX_PACKET_DATA         1500
19
20 typedef struct IPXAddressStruct {
21   u_char Network[4] __attribute__((packed));
22   u_char Node[6] __attribute__((packed));
23   u_char Socket[2] __attribute__((packed));
24 } IPXAddress_t;
25
26 typedef struct IPXPacketStructure {
27   u_short Checksum __attribute__((packed));
28   u_short Length __attribute__((packed));
29   u_char TransportControl __attribute__((packed));
30   u_char PacketType __attribute__((packed));
31   IPXAddress_t Destination __attribute__((packed));
32   IPXAddress_t Source __attribute__((packed));
33 } IPXPacket_t;
34
35 typedef struct ipx_socket_struct {
36 #ifdef DOSEMU
37   struct ipx_socket_struct *next;
38   far_t listenList;
39   int listenCount;
40   far_t AESList;
41   int AESCount;
42   u_short PSP;
43 #endif  
44   u_short socket;
45   int fd;
46 } ipx_socket_t;
47
48 #include "mono.h"
49 #ifndef NMONO
50 #define n_printf(format, args...) _mprintf(1, format, ## args)
51 #else
52 #define n_printf(format, args...) fprintf(stderr,format, ## args)
53 #endif
54 #define enter_priv_on()
55 #define leave_priv_setting()
56
57 #endif