diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 6e1f90d5d1f4..cf12527d268a 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 - * $Id: ip_output.c,v 1.37 1996/05/06 17:42:13 wollman Exp $ + * $Id: ip_output.c,v 1.38 1996/05/21 20:47:31 peter Exp $ */ #define _IP_VHL @@ -61,6 +61,13 @@ #endif #include +#if !defined(COMPAT_IPFW) || COMPAT_IPFW == 1 +#undef COMPAT_IPFW +#define COMPAT_IPFW 1 +#else +#undef COMPAT_IPFW +#endif + u_short ip_id; static struct mbuf *ip_insertoptions __P((struct mbuf *, struct mbuf *, int *)); @@ -325,10 +332,12 @@ sendit: /* * Check with the firewall... */ +#ifdef COMPAT_IPFW if (ip_fw_chk_ptr && !(*ip_fw_chk_ptr)(&ip, hlen, ifp, 1, &m)) { error = EACCES; goto done; } +#endif /* * If small enough for interface, can just send directly. diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 3aed00bf5fe1..4f87951140af 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.29 1996/03/13 08:02:45 pst Exp $ + * $Id: raw_ip.c,v 1.30 1996/03/26 19:16:46 fenner Exp $ */ #include @@ -57,6 +57,13 @@ #include +#if !defined(COMPAT_IPFW) || COMPAT_IPFW == 1 +#undef COMPAT_IPFW +#define COMPAT_IPFW 1 +#else +#undef COMPAT_IPFW +#endif + static struct inpcbhead ripcb; static struct inpcbinfo ripcbinfo; @@ -224,6 +231,7 @@ rip_ctloutput(op, so, level, optname, m) } return (error); +#ifdef COMPAT_IPFW case IP_FW_GET: if (ip_fw_ctl_ptr==NULL || op == PRCO_SETOPT) { if (*m) (void)m_free(*m); @@ -241,6 +249,7 @@ rip_ctloutput(op, so, level, optname, m) return (*ip_fw_ctl_ptr)(optname, m); return(error); +#endif case IP_RSVP_ON: return ip_rsvp_init(so);