8 * ipx.h header file for IPX for the DOS emulator
9 * Tim Bird, tbird@novell.com
16 #define IPX_MANUAL_ADDRESS
21 #define MAX_PACKET_DATA 1500
24 #pragma pack (push, 1)
27 typedef struct IPXAddressStruct {
28 u_char Network[4] __pack__;
29 u_char Node[6] __pack__;
30 u_char Socket[2] __pack__;
33 typedef struct IPXPacketStructure {
34 u_short Checksum __pack__;
35 u_short Length __pack__;
36 u_char TransportControl __pack__;
37 u_char PacketType __pack__;
38 IPXAddress_t Destination __pack__;
39 IPXAddress_t Source __pack__;
46 typedef struct ipx_socket_struct {
51 struct ipx_recv_data {
52 /* all network order */
53 u_char src_network[4];
61 int (*GetMyAddress)(void);
62 int (*OpenSocket)(ipx_socket_t *sk, int port);
63 void (*CloseSocket)(ipx_socket_t *mysock);
64 int (*SendPacket)(ipx_socket_t *mysock, IPXPacket_t *IPXHeader,
65 u_char *data, int dataLen);
66 int (*ReceivePacket)(ipx_socket_t *s, char *buffer, int bufsize,
67 struct ipx_recv_data *rec);
68 int (*PacketReady)(ipx_socket_t *s);
71 int ipx_general_PacketReady(ipx_socket_t *s);
73 extern unsigned char ipx_MyAddress[10];
75 #endif /* _IPX_DRV_H */