#include "..\..\net\h\protocol.h"
#include "..\..\net\h\mbuf.h"

#define ETHER_MTU 1514

#ifdef __HIGHC__
_packed
#endif
#ifdef __WATCOMC__
#pragma pack(1);
#endif
struct net_data {
	unsigned char rps_handle;
	unsigned char arpqueued;
	unsigned short prot_ds;		/* protected-mode DS */

	unsigned short innet;
#if defined(__HIGHC__) || defined(__WATCOMC__)
	unsigned short mbfree, mbprocess, mbnext;
#else
	struct mbuf _near *mbfree, _near *mbprocess, _near * _near *mbnext;
#endif
	struct mbuf mb[NMBUFS];
	struct ebuf eb[NEBUFS+1];
	unsigned char etherbuff[RAWETHER];

	/* Xmit stuff */
	unsigned short xmitlen;
	unsigned char xmitbuf[ETHER_MTU];
	struct arp xmitarp;

	/* Misc stuff */
	unsigned char myether[DADDLEN];
	unsigned short slip_mode;
	struct acache arpc[NARPC]; /* cache for hardware addresses */
	struct packet_info p;
	unsigned long myip;

};

#ifdef __HIGHC__
extern struct net_data _Far *pkshared;
#endif
#ifdef __WATCOMC__
extern struct net_data _far *pkshared;
#pragma pack;
#endif
