summaryrefslogtreecommitdiff
path: root/net-mgmt/arpwatch-devel/files/patch-aj
blob: 0e8ba51448f705cf8104aabb1b51b89a89475f34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- ../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 */
+};
+