mirror of https://github.com/OISF/suricata
pcap-log: use correct pkthdr size for limit enforcement
The on-disk pcap pkthdr is 16 bytes. This was calculated using `sizeof(struct pcap_pkthdr)`, which is 24 bytes on 64 bit Linux. On Macos, it's even worse, as a comment field grows the struct to 280 bytes. Address this by hardcoding the value of 16. Bug: #7037.pull/11120/head
parent
9b980b18a8
commit
6c937a9243
Loading…
Reference in New Issue