From 26ce601f70d9658c4c6e5326220f41872924930e Mon Sep 17 00:00:00 2001 From: ru Date: Thu, 12 Oct 2000 07:59:14 +0000 Subject: Allow for IP_FW_ADD to be used in getsockopt(2) incarnation as well, in which case return the rule number back into userland. PR: bin/18351 Reviewed by: archie, luigi --- sys/netinet/raw_ip.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netinet/raw_ip.c') diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 5d056ce..5544782 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -259,6 +259,7 @@ rip_ctloutput(so, sopt) error = sooptcopyout(sopt, &optval, sizeof optval); break; + case IP_FW_ADD: case IP_FW_GET: if (ip_fw_ctl_ptr == 0) error = ENOPROTOOPT; -- cgit v1.1