aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1996-01-05 20:47:05 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1996-01-05 20:47:05 +0000
commitd4fb926c62f02792b0c33ba2f0eefda3efc9a13d (patch)
tree33062b05eef4f73550a3f54546b5616caecffdff /sys/netinet/ip_input.c
parent8890984dc9e0a025aa5d46b6319b6d1b3c406622 (diff)
Notes
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 50a2fd32bc0c..5543bb92e678 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_input.c 8.2 (Berkeley) 1/4/94
- * $Id: ip_input.c,v 1.32 1995/12/20 18:04:19 wollman Exp $
+ * $Id: ip_input.c,v 1.33 1995/12/21 21:12:22 wollman Exp $
*/
#include <sys/param.h>
@@ -67,22 +67,11 @@ int rsvp_on = 0;
static int ip_rsvp_on;
struct socket *ip_rsvpd;
-#ifndef IPFORWARDING
-#ifdef GATEWAY
-#define IPFORWARDING 1 /* forward IP packets not for us */
-#else /* GATEWAY */
-#define IPFORWARDING 0 /* don't forward IP packets not for us */
-#endif /* GATEWAY */
-#endif /* IPFORWARDING */
-#ifndef IPSENDREDIRECTS
-#define IPSENDREDIRECTS 1
-#endif
-
-static int ipforwarding = IPFORWARDING;
+static int ipforwarding = 0;
SYSCTL_INT(_net_inet_ip, IPCTL_FORWARDING, forwarding, CTLFLAG_RW,
&ipforwarding, 0, "");
-static int ipsendredirects = IPSENDREDIRECTS;
+static int ipsendredirects = 1; /* XXX */
SYSCTL_INT(_net_inet_ip, IPCTL_SENDREDIRECTS, redirect, CTLFLAG_RW,
&ipsendredirects, 0, "");