]> 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>
Thu, 25 Jan 2024 12:18:04 +0000 (13:18 +0100)
commite6646c8f3f7d0a8aab5a9c9c246a1e10ba74151f
tree340d949d664c1d9f29ec77c5db1af1e5337bd5f5
parent08dae404522e4c8bc8f87fee55756c9d814e207b
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.

(cherry picked from commit b239e88c9303d83a3074ed69c4989bd136bbf8b4)
src/source-ipfw.c