]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
log-pcap: don't limit snaplen.
authorEric Leblond <eric@regit.org>
Thu, 13 Dec 2012 15:49:37 +0000 (16:49 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 21 Feb 2013 10:05:36 +0000 (11:05 +0100)
src/log-pcap.c
src/source-pcap.h

index 2935a102c0f2573e54cb2e07b9f5b182e79b9c5d..053aabcfd7a0c5995605b6a8216bef9d538c2481 100644 (file)
@@ -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);
index e3c3dbdb29cb07e2b8112f3e60da5cf8e81debf3..08d8a37e575fe36638fb0c20875de95169610250 100644 (file)
@@ -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