/*
 * hash.h
 */

#ifndef HASH_H_INC
#define HASH_H_INC

#include "ipxtunnel.h"

struct location {
	int			where;	/* Flag: local LAN or remote host? */
	int			sd;	/* socket */
	struct sockaddr		localAddr;	/* Ethernet */
	struct sockaddr_in	remoteAddr;	/* remote Server */
};

struct addressinfo {
	unsigned char	hwAddr[ETH_ALEN];
	int		age;
	int		locIndex;
	struct addressinfo	*next;
};

struct addressinfo	*GetAddr(unsigned char *hwAddr);
int		InsertAddr(unsigned char *hwAddr, int locIndex);

#endif /* HASH_H_INC */
