ports/154404: net/daq wont increase buffer size. this patch from vendor.

Michael Scheidell scheidell at secnap.net
Sun Jan 30 23:10:12 UTC 2011


>Number:         154404
>Category:       ports
>Synopsis:       net/daq wont increase buffer size.  this patch from vendor.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 30 23:10:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Michael Scheidell
>Release:        7.3 amd
>Organization:
S
>Environment:
na
>Description:
had problems with snort and daq with buffer_size option.  Vendor supplied this patch:

<http://seclists.org/snort/2011/q1/425>

I marked this critical for two reasons:
#1, won't work without the patch
#2, getting ready to supply critical port upgrade for snort 2.9.0.3 which needs this patch.

#3, its an easy patch to install :-)
compiled and tested by vendor on 8.1, compiled by me on 7.3.


>How-To-Repeat:
compile snort. add buffer_size option.  nothing happens.
>Fix:
add this attached patch.
includes portrevision bump to allow auto updating.


Patch attached with submission follows:

diff -bBru /var/tmp/daq/Makefile ../daq/Makefile
--- /var/tmp/daq/Makefile	2011-01-18 11:46:53.000000000 -0500
+++ ../daq/Makefile	2011-01-30 16:16:57.000000000 -0500
@@ -7,6 +7,7 @@
 
 PORTNAME=	daq
 PORTVERSION=	0.5
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	SF/snort/snort
 
diff -bBru /var/tmp/daq/files/patch-daq_pcap.c ../daq/files/patch-daq_pcap.c
--- /var/tmp/daq/files/patch-daq_pcap.c	2011-01-30 16:20:30.000000000 -0500
+++ ../daq/files/patch-daq_pcap.c	2011-01-30 16:19:05.000000000 -0500
@@ -0,0 +1,11 @@
+--- os-daq-modules/daq_pcap.c.orig	2011-01-30 15:28:19.000000000 -0500
++++ os-daq-modules/daq_pcap.c	2011-01-30 15:27:19.000000000 -0500
+@@ -216,7 +216,7 @@ static int pcap_daq_initialize(const DAQ
+     for (entry = config->values; entry; entry = entry->next)
+     {
+         if (!strcmp(entry->key, "buffer_size"))
+-            context->buffer_size = strtol(entry->key, NULL, 10);
++            context->buffer_size = strtol(entry->value, NULL, 10);
+     }
+     /* Try to account for legacy PCAP_FRAMES environment variable if we weren't passed a buffer size. */
+     if (context->buffer_size == 0)


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list