summaryrefslogtreecommitdiff
path: root/sys/netinet/raw_ip.c
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>1996-08-21 21:37:07 +0000
committerSøren Schmidt <sos@FreeBSD.org>1996-08-21 21:37:07 +0000
commitfed1c7e9e49e3145f0fdca9bc6ac91be93ab1898 (patch)
tree1a5729bda0705ded4c0ab671ff54ccd91014adb1 /sys/netinet/raw_ip.c
parent1702c53ed2eaa806924ca4c7588fa997f9d4d60e (diff)
Notes
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r--sys/netinet/raw_ip.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index be5c13b4628b..a6c80bff253c 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)raw_ip.c 8.7 (Berkeley) 5/15/95
- * $Id: raw_ip.c,v 1.32 1996/07/20 00:16:20 alex Exp $
+ * $Id: raw_ip.c,v 1.33 1996/07/24 18:46:18 wollman Exp $
*/
#include <sys/param.h>
@@ -235,23 +235,30 @@ rip_ctloutput(op, so, level, optname, m)
#ifdef COMPAT_IPFW
case IP_FW_GET:
- if (ip_fw_ctl_ptr==NULL || op == PRCO_SETOPT) {
+ if (ip_fw_ctl_ptr == NULL || op == PRCO_SETOPT) {
if (*m) (void)m_free(*m);
return(EINVAL);
}
return (*ip_fw_ctl_ptr)(optname, m);
+
case IP_FW_ADD:
case IP_FW_DEL:
case IP_FW_FLUSH:
case IP_FW_ZERO:
- if (ip_fw_ctl_ptr==NULL || op != PRCO_SETOPT) {
+ if (ip_fw_ctl_ptr == NULL || op != PRCO_SETOPT) {
if (*m) (void)m_free(*m);
return(EINVAL);
}
-
return (*ip_fw_ctl_ptr)(optname, m);
#endif
+ case IP_NAT:
+ if (ip_nat_ctl_ptr == NULL) {
+ if (*m) (void)m_free(*m);
+ return(EINVAL);
+ }
+ return (*ip_nat_ctl_ptr)(optname, m);
+
case IP_RSVP_ON:
return ip_rsvp_init(so);
break;