mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 07:12:52 -04:00
ipfw: Remove more unused IP_FW_* cases
All of the do_cmd() calls are in dummynet.c and specify the socket option at compile time; none of these removed cases are used in ipfw after the v3 work. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53378 (cherry picked from commit 0e2e0fb955adf15a217949bc4cc337d53d2c7259)
This commit is contained in:
parent
73c105268c
commit
6b1e5d4d20
1 changed files with 1 additions and 5 deletions
|
|
@ -648,11 +648,7 @@ do_cmd(int optname, void *optval, uintptr_t optlen)
|
|||
if (ipfw_socket < 0)
|
||||
err(EX_UNAVAILABLE, "socket");
|
||||
|
||||
if (optname == IP_FW_GET ||
|
||||
optname == IP_FW_ADD || optname == IP_FW3 ||
|
||||
optname == IP_FW_NAT_GET_CONFIG ||
|
||||
optname < 0 ||
|
||||
optname == IP_FW_NAT_GET_LOG) {
|
||||
if (optname == IP_FW3 || optname < 0) {
|
||||
if (optname < 0)
|
||||
optname = -optname;
|
||||
i = getsockopt(ipfw_socket, IPPROTO_IP, optname, optval,
|
||||
|
|
|
|||
Loading…
Reference in a new issue