From: Eric Leblond Date: Thu, 13 Dec 2012 15:49:37 +0000 (+0100) Subject: log-pcap: don't limit snaplen. X-Git-Tag: suricata-1.4.1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=786cbb12442e8fd7aebdcc22c6c678364776c3e1;p=thirdparty%2Fsuricata.git log-pcap: don't limit snaplen. --- diff --git a/src/log-pcap.c b/src/log-pcap.c index 2935a102c0..053aabcfd7 100644 --- a/src/log-pcap.c +++ b/src/log-pcap.c @@ -293,7 +293,7 @@ TmEcode PcapLog (ThreadVars *t, Packet *p, void *data, PacketQueue *pq, SCLogDebug("Setting pcap-log link type to %u", p->datalink); if ((pl->pcap_dead_handle = pcap_open_dead(p->datalink, - LIBPCAP_SNAPLEN)) == NULL) { + -1)) == NULL) { SCLogDebug("Error opening dead pcap handle"); SCMutexUnlock(&pl->plog_lock); diff --git a/src/source-pcap.h b/src/source-pcap.h index e3c3dbdb29..08d8a37e57 100644 --- a/src/source-pcap.h +++ b/src/source-pcap.h @@ -32,8 +32,6 @@ int PcapLiveRegisterDevice(char *); int PcapLiveGetDeviceCount(void); char *PcapLiveGetDevice(int); -/* XXX replace with user configurable options */ -#define LIBPCAP_SNAPLEN 1518 #define LIBPCAP_COPYWAIT 500 #define LIBPCAP_PROMISC 1