diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-01-19 23:34:48 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-01-19 23:34:48 +0000 |
commit | 486518fcaaa4b373ad28bfaa87b26523a50d9cd2 (patch) | |
tree | f353e6fbb8a862121294775d61b335e29d780799 /net-mgmt/arpwatch-devel/files/patch-aj | |
parent | Add p5-DBI-Shell 11.93, interactive command shell for the DBI. (diff) |
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
Notes
Notes:
svn path=/head/; revision=98614
Diffstat (limited to 'net-mgmt/arpwatch-devel/files/patch-aj')
-rw-r--r-- | net-mgmt/arpwatch-devel/files/patch-aj | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/net-mgmt/arpwatch-devel/files/patch-aj b/net-mgmt/arpwatch-devel/files/patch-aj index 85e34bf47345..0e8ba51448f7 100644 --- a/net-mgmt/arpwatch-devel/files/patch-aj +++ b/net-mgmt/arpwatch-devel/files/patch-aj @@ -1,25 +1,25 @@ ---- arpwatch.8.orig Sun Oct 8 21:31:28 2000 -+++ arpwatch.8 Thu Feb 22 22:47:29 2001 -@@ -38,6 +38,9 @@ - .br - .ti +8 - [ -+.B -m -+.I email -+] [ - .B -n - .IR net [/ width - ]] [ -@@ -69,6 +72,12 @@ - The - .B -i - flag is used to override the default interface. -+.LP -+The -+.B -m -+flag specifies the address that will receive the emails. -+The default is -+.IR root . - .LP - The - .B -n +--- ../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 */ ++}; ++ |