Write Output Pcap, followed by Read with BPF filter, snaplen=0 error
Open
- Dominant language
- Go
- Stars
- 6.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Capture from Interface && Creating a PCAP file with *pcapgo.NgWriter
Writes successfully to disk
Read from PCAP File (previously written), Apply BPF
"snaplen of 0 rejects all packets" crash @ err = handle.SetBPFFilter(bpf);
If you use an outside pcap from internet, apply bpf the code works fine.. so far only crashes on pcap's created by *pcapgo.NgWriter
Contributor guide
Assessment
This issue has not been assessed yet.