]> git.ipfire.org Git - thirdparty/suricata.git/commit
ipfw: close(2) instead shutdown(2) of the divert(4) socket
authorGleb Smirnoff <glebius@FreeBSD.org>
Thu, 11 Jan 2024 21:35:21 +0000 (13:35 -0800)
committerVictor Julien <victor@inliniac.net>
Mon, 15 Jan 2024 16:49:11 +0000 (17:49 +0100)
commitb239e88c9303d83a3074ed69c4989bd136bbf8b4
tree0885771dd60f644bff4768e9c10b8a3ee1400031
parentadf5e6da7bdf81d65ccfeb115e6bc50e7031a0ca
ipfw: close(2) instead shutdown(2) of the divert(4) socket

The shutdown(2) syscall would always return ENOTCONN for FreeBSD 11,
FreeBSD 12, FreeBSD 13 and FreeBSD 14.  It could do some action on the
socket in the kernel in FreeBSD 10 and before, did not test.
src/source-ipfw.c