diff options
author | ru <ru@FreeBSD.org> | 2000-10-12 07:59:14 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-10-12 07:59:14 +0000 |
commit | 26ce601f70d9658c4c6e5326220f41872924930e (patch) | |
tree | a2407f29ccbc751a39609730dfe9dac082121bff /sys/netinet/raw_ip.c | |
parent | acecaa1fc20521bb074aac431cdae4193ce27ee6 (diff) | |
download | FreeBSD-src-26ce601f70d9658c4c6e5326220f41872924930e.zip FreeBSD-src-26ce601f70d9658c4c6e5326220f41872924930e.tar.gz |
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
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r-- | sys/netinet/raw_ip.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |