threaded in order to better deal with the requirements of multi-interface routers. Information regarding MAC addresses and interfaces is maintained by the program, and an alert is issued should a device move between interfaces. In addition, event processing has been refactored, and some bugs have been fixed. PR: 59180 Submitted by: Matthew George <mdg@secureworks.net> Approved by: portmgr
25 lines
665 B
Text
25 lines
665 B
Text
--- ../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 */
|
|
+};
|
|
+
|