When a BPF filter is given on the command line when reading a
pcap file, the BPF filter is not honored.
The regression has been introduced in:
commit
3ab9120821e2b5cbc5925470bcfa5bcfb53f246b
Author: Dana Helwig <dana.helwig@protectwise.com>
Date: Thu Apr 27 11:17:16 2017 -0600
source-pcap-file: Pcap Directory Mode (Feature #2222)
Reported-By: Tim Colin <tcolin@et.esiea.fr>
SCReturnInt(TM_ECODE_OK);
}
+ pv->shared = &ptv->shared;
status = InitPcapFile(pv);
if(status == TM_ECODE_OK) {
- pv->shared = &ptv->shared;
-
ptv->is_directory = 0;
ptv->behavior.file = pv;
} else {