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)
SCEnter();
- /* Attempt to shut the socket down...close instead? */
- if (shutdown(nq->fd, SHUT_RD) < 0) {
+ if (close(nq->fd) < 0) {
SCLogWarning("Unable to disable ipfw socket: %s", strerror(errno));
SCReturnInt(TM_ECODE_FAILED);
}