dxx-rebirth/arch/linux/include/ipx_hlpr.h
2006-03-20 17:12:09 +00:00

36 lines
774 B
C
Executable file

/* $Id: ipx_hlpr.h,v 1.1.1.1 2006/03/17 19:53:51 zicodxx Exp $ */
/*
*
* FIXME: add description
*
*/
#ifndef IPXHELPER_H_
#define IPXHELPER_H_
#include <sys/types.h>
#include "ipx_ld.h"
#define IPX_MANUAL_ADDRESS
struct ipx_recv_data {
/* all network order */
u_char src_network[4];
u_char src_node[6];
u_short src_socket;
u_short dst_socket;
int pkt_type;
};
struct ipx_helper {
int (*GetMyAddress)(void);
int (*OpenSocket)(ipx_socket_t *sk, int port);
void (*CloseSocket)(ipx_socket_t *mysock);
int (*SendPacket)(ipx_socket_t *mysock, IPXPacket_t *IPXHeader,
u_char *data, int dataLen);
int (*ReceivePacket)(ipx_socket_t *s, char *buffer, int bufsize,
struct ipx_recv_data *rec);
int (*PacketReady)(ipx_socket_t *s);
};
#endif /* IPXHELPER_H_ */