Newer versions of libpcap will not open pcap files with a
snaplen of -1, instead use the current maximum value of
262144.
Issue:
https://redmine.openinfosecfoundation.org/issues/1987
#define HONOR_PASS_RULES_DISABLED 0
#define HONOR_PASS_RULES_ENABLED 1
+#define PCAP_SNAPLEN 262144
+
SC_ATOMIC_DECLARE(uint32_t, thread_cnt);
typedef struct PcapFileName_ {
if (pl->pcap_dead_handle == NULL) {
if ((pl->pcap_dead_handle = pcap_open_dead(p->datalink,
- -1)) == NULL) {
+ PCAP_SNAPLEN)) == NULL) {
SCLogDebug("Error opening dead pcap handle");
return TM_ECODE_FAILED;
}