]> 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>
Tue, 30 Jan 2018 09:32:17 +0000 (10:32 +0100)
commit6fe3620bff3fbef2412b92df5769d8200c4cd977
treed029389adb8d117146ff976566ae0765be9eb2ee
parent0a1298696d64f62255fe770f61bac0e5a034eabb
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