diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-12-21 20:20:49 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-12-21 20:20:49 +0000 |
commit | 9a676e7dbc8cacac4713b7cc118f1beb8355e3b1 (patch) | |
tree | 14f9d8479131dce714a99c305b390e659d67cad0 /net-mgmt/ndpmon/files/patch-ndpmon.c | |
parent | The Machine Emulator provides a general-purpose framework (diff) |
NDPMon is an equivalent of ArpWatch for IPv6.
NDPMon, Neighbor Discovery Protocol Monitor, is a tool working with
ICMPv6 packets. NDPMon observes the local network to see if nodes
using neighbor discovery messages behave properly. When it detects
a suspicious Neighbor Discovery message, it notifies the administrator
by writing in the syslog and in some cases by sending an email
report.
WWW: http://ndpmon.sourceforge.net
Janos Mohacsi <janos.mohacsi@bsd.hu>
PR: ports/106840
Submitted by: janos.mohacsi at bsd.hu
Diffstat (limited to 'net-mgmt/ndpmon/files/patch-ndpmon.c')
-rw-r--r-- | net-mgmt/ndpmon/files/patch-ndpmon.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net-mgmt/ndpmon/files/patch-ndpmon.c b/net-mgmt/ndpmon/files/patch-ndpmon.c new file mode 100644 index 000000000000..ee5a1fe75872 --- /dev/null +++ b/net-mgmt/ndpmon/files/patch-ndpmon.c @@ -0,0 +1,29 @@ + +$FreeBSD$ + +--- ndpmon.c.orig ++++ ndpmon.c +@@ -43,10 +43,10 @@ + char admin_mail[128] = ""; + char syslog_facility[16] = ""; + int ignor_autoconf = 0; +-char config_path[128] = "/usr/local/ndpmon/config_ndpmon.xml"; +-char cache_path[128] = "/usr/local/ndpmon/neighbor_list.xml"; +-char dtd_path[128] = "/usr/local/ndpmon/neighbor_list.dtd"; +-char dtd_config_path[128] = "/usr/local/ndpmon/config_ndpmon.dtd"; ++char config_path[128] = "%%PREFIX%%/etc/config_ndpmon.xml"; ++char cache_path[128] = "%%PREFIX%%/var/ndpmon_neighbor_list.xml"; ++char dtd_path[128] = "%%PREFIX%%/share/ndpmon/neighbor_list.dtd"; ++char dtd_config_path[128] = "%%PREFIX%%/share/ndpmon/config_ndpmon.dtd"; + + #ifdef _MACRESOLUTION_ + manufacturer_t *manuf = NULL; +@@ -438,7 +438,7 @@ + + + /* open device for reading */ +- descr = pcap_open_live(interface,BUFSIZ,1,-1,errbuf); ++ descr = pcap_open_live(interface,BUFSIZ,1,1000,errbuf); + if(descr == NULL) + { + fprintf(stderr,"pcap_open_live(): %s\n",errbuf); exit(1); |