Hi,
pls consider the following little patch that sets the application name
in the daq_pfring module:
Index: daq_pfring.c
===================================================================
--- daq_pfring.c (revision 5595)
+++ daq_pfring.c (working copy)
@@ -95,6 +95,7 @@
char *device = context->devices[id];
int pfring_rc;
pfring *ring_handle;
+ char buf[32];
if(!device) {
DPE(context->errbuf, "%s", "PF_RING a device must be specified");
@@ -149,6 +150,14 @@
pfring_close(ring_handle);
return -1;
}
+
+ snprintf(buf, sizeof(buf), "snort-cluster-%d-thread-%d",
context->clusterids[id], id);
+ pfring_set_application_name(ring_handle, buf);
+
+ } else {
+ snprintf(buf, sizeof(buf), "snort");
+ pfring_set_application_name(ring_handle, buf);
+
}
pfring_set_poll_watermark(ring_handle, context->watermark);
regards
vito Piserchia
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev