]> icculus.org git repositories - btb/d2x.git/blob - arch/linux/include/ipx_ld.h
enabled kali
[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.3 $
4  * $Author: bradleyb $
5  * $Date: 2001-10-19 07:39:26 $
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  * Revision 1.2  2001/10/19 07:29:37  bradleyb
13  * Brought linux networking in line with d1x, moved some arch/linux_* stuff to arch/linux/
14  *
15  *
16  */
17
18 #ifndef _IPX_DOSEMU
19 #define _IPX_DOSEMU
20
21 #define MAX_PACKET_DATA         1500
22
23 typedef struct IPXAddressStruct {
24   u_char Network[4] __attribute__((packed));
25   u_char Node[6] __attribute__((packed));
26   u_char Socket[2] __attribute__((packed));
27 } IPXAddress_t;
28
29 typedef struct IPXPacketStructure {
30   u_short Checksum __attribute__((packed));
31   u_short Length __attribute__((packed));
32   u_char TransportControl __attribute__((packed));
33   u_char PacketType __attribute__((packed));
34   IPXAddress_t Destination __attribute__((packed));
35   IPXAddress_t Source __attribute__((packed));
36 } IPXPacket_t;
37
38 typedef struct ipx_socket_struct {
39 #ifdef DOSEMU
40   struct ipx_socket_struct *next;
41   far_t listenList;
42   int listenCount;
43   far_t AESList;
44   int AESCount;
45   u_short PSP;
46 #endif  
47   u_short socket;
48   int fd;
49 } ipx_socket_t;
50
51 #include "mono.h"
52 #ifndef NMONO
53 #define n_printf(format, args...) _mprintf(1, format, ## args)
54 #else
55 #define n_printf(format, args...) fprintf(stderr,format, ## args)
56 #endif
57 #define enter_priv_on()
58 #define leave_priv_setting()
59
60 #endif