freebsd-ports/net/arpwatch-devel/files/patch-ao
Kirill Ponomarev 486518fcaa This is a development fork of arpwatch. This has been
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
2004-01-19 23:34:48 +00:00

20 lines
549 B
Text

--- ../arpwatch.orig/report.h Wed Jun 5 01:40:54 1996
+++ ./report.h Mon Sep 15 15:03:20 2003
@@ -1,3 +1,16 @@
/* @(#) $Header: report.h,v 1.3 96/06/04 22:40:53 leres Exp $ (LBL) */
-void report(char *, u_int32_t, u_char *, u_char *, time_t *, time_t *);
+
+typedef enum
+ {
+ ETHER_NEW=1,
+ ETHER_IFCHG=2,
+ ACTIVITY_NEW=4,
+ IP_NEW=8,
+ IP_ETHERCHG=16,
+ IP_ETHER_REUSE=32,
+ FLIPFLOP=64,
+ FLIPFLOP_DECNET=128
+ } evt_type;
+
+void report(evt_type, u_int32_t, u_char *, u_char *, time_t *, time_t *, char *, char *);