summaryrefslogtreecommitdiff
path: root/net-mgmt/ndpmon/files/patch-ndpmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/ndpmon/files/patch-ndpmon.c')
-rw-r--r--net-mgmt/ndpmon/files/patch-ndpmon.c29
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);