]> git.ipfire.org Git - thirdparty/suricata.git/commit
pfring: add warning for stripped vlan header case
authorVictor Julien <victor@inliniac.net>
Wed, 20 Dec 2017 07:57:29 +0000 (08:57 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 20 Dec 2017 08:50:49 +0000 (09:50 +0100)
commit553cd0dc98770ac495a49048a72bf109075d94a7
treec1c2b8e5fb8712fb9b7c67bb7176a210610fb255
parent189b521239a2be4da2da833f9fd5b2474e4a9464
pfring: add warning for stripped vlan header case

According to PF_RING upstream the vlan header should never be stripped
from the packet PF_RING feeds to Suricata. But upstream also indicated
keeping the check would be a good "safety check".

So in addition to the check, add a warning that warns once (per thread
for implementation simplicity) if the vlan hdr does appear to be stripped
after all.
src/source-pfring.c
src/util-error.c
src/util-error.h