|
|
fa49311 |
diff -ur pads-1.2.orig/src/configuration.c pads-1.2/src/configuration.c
|
|
|
fa49311 |
--- pads-1.2.orig/src/configuration.c 2008-06-30 13:56:52.000000000 -0400
|
|
|
fa49311 |
+++ pads-1.2/src/configuration.c 2008-07-01 21:11:22.000000000 -0400
|
|
|
fa49311 |
@@ -191,8 +191,10 @@
|
|
|
fa49311 |
log_message("warning: 'ptrFunc' in function 'conf_module_processor' failed.");
|
|
|
fa49311 |
} else {
|
|
|
fa49311 |
/* Input processor does not contain an argument. */
|
|
|
fa49311 |
- if (((*ptrFunc)(list->entry[0], bfromcstr(""))) == -1)
|
|
|
fa49311 |
+ bstring empty = bfromcstr("");
|
|
|
fa49311 |
+ if (((*ptrFunc)(list->entry[0], empty)) == -1)
|
|
|
fa49311 |
log_message("warning: 'ptrFunc' in function 'conf_module_processor' failed.");
|
|
|
fa49311 |
+ bdestroy(empty);
|
|
|
fa49311 |
}
|
|
|
fa49311 |
if (list != NULL)
|
|
|
fa49311 |
bstrListDestroy(list);
|
|
|
fa49311 |
diff -ur pads-1.2.orig/src/monnet.c pads-1.2/src/monnet.c
|
|
|
fa49311 |
--- pads-1.2.orig/src/monnet.c 2008-06-30 13:56:52.000000000 -0400
|
|
|
fa49311 |
+++ pads-1.2/src/monnet.c 2008-07-01 20:37:50.000000000 -0400
|
|
|
fa49311 |
@@ -32,7 +32,7 @@
|
|
|
fa49311 |
#include "monnet.h"
|
|
|
fa49311 |
#include "util.h"
|
|
|
fa49311 |
|
|
|
fa49311 |
-struct mon_net *mn;
|
|
|
fa49311 |
+static struct mon_net *mn = NULL;
|
|
|
fa49311 |
|
|
|
fa49311 |
/* ----------------------------------------------------------
|
|
|
fa49311 |
* FUNCTION : parse_networks
|
|
|
fa49311 |
diff -ur pads-1.2.orig/src/pads.c pads-1.2/src/pads.c
|
|
|
fa49311 |
--- pads-1.2.orig/src/pads.c 2008-06-30 17:54:33.000000000 -0400
|
|
|
fa49311 |
+++ pads-1.2/src/pads.c 2008-07-01 21:35:45.000000000 -0400
|
|
|
fa49311 |
@@ -343,11 +343,11 @@
|
|
|
fa49311 |
|
|
|
fa49311 |
/* Display PCAP Statistics */
|
|
|
fa49311 |
if (!pcap_stats(gc.handle, &pstat)) {
|
|
|
fa49311 |
- log_message("\n");
|
|
|
fa49311 |
- log_message("%d Packets Received\n", pstat.ps_recv);
|
|
|
fa49311 |
- log_message("%d Packets Dropped by Software\n", pstat.ps_drop);
|
|
|
fa49311 |
- log_message("%d Packets Dropped by Interface\n", pstat.ps_ifdrop);
|
|
|
fa49311 |
- log_message("\n");
|
|
|
fa49311 |
+ verbose_message("\n");
|
|
|
fa49311 |
+ verbose_message("%d Packets Received\n", pstat.ps_recv);
|
|
|
fa49311 |
+ verbose_message("%d Packets Dropped by Software\n", pstat.ps_drop);
|
|
|
fa49311 |
+ verbose_message("%d Packets Dropped by Interface\n", pstat.ps_ifdrop);
|
|
|
fa49311 |
+ verbose_message("\n");
|
|
|
fa49311 |
}
|
|
|
fa49311 |
|
|
|
fa49311 |
/* Close banner dump file if specifed (-d). */
|