From 9a676e7dbc8cacac4713b7cc118f1beb8355e3b1 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Thu, 21 Dec 2006 20:20:49 +0000 Subject: 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 PR: ports/106840 Submitted by: janos.mohacsi at bsd.hu --- net-mgmt/ndpmon/files/patch-ndpmon.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 net-mgmt/ndpmon/files/patch-ndpmon.c (limited to 'net-mgmt/ndpmon/files/patch-ndpmon.c') 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); -- cgit v1.2.3