]> git.ipfire.org Git - thirdparty/suricata.git/commit
nfq: don't warn on 'handle_packet' error
authorVictor Julien <victor@inliniac.net>
Fri, 18 Oct 2019 08:49:56 +0000 (10:49 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 18 Oct 2019 10:23:21 +0000 (12:23 +0200)
commit9d6087f7d6e8f102aee6f6e1e3803b0cc3d194a4
tree80caa22b7b782433247e30dd6664903a863fbd1e
parentf8acad7fca88552fb9b807ab5d7bd651bc7784cd
nfq: don't warn on 'handle_packet' error

NFQ can generate warnings/errors with a delay. After Suricata has
succesfully passed a verdict to the kernel, there are still things
that can go wrong for that verdict. This is then passed to the
queue through a netlink error message, which leads to nfq_handle_packet
returning an error code.

Suppress the warning. Also remove the errno/strerror use as
nfq_handle_packet does not set the errno.

Thanks to Florian Westphal.

Bug 3120.
src/source-nfq.c