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