--- ../arpwatch.orig/db.h Wed Jun 5 01:39:30 1996 +++ ./db.h Mon Sep 15 14:55:27 2003 @@ -1,10 +1,21 @@ /* @(#) $Header: db.h,v 1.8 96/06/04 22:39:29 leres Exp $ (LBL) */ +#define HASHSIZE (2 << 15) + typedef void (*ent_process)(u_int32_t, u_char *, time_t, char *); #ifdef DEBUG void debugdump(void); #endif -int ent_add(u_int32_t, u_char *, time_t, char *); +int ent_add(u_int32_t, u_char *, time_t, char *, char *); int ent_loop(ent_process); void sorteinfo(void); + +/* Ethernet info */ +struct einfo { + u_char e[6]; /* ether address */ + char h[34]; /* simple hostname */ + time_t t; /* timestamp */ + char iface[10]; /* interface name */ +}; +