From c76ff7084fb90152836ce2093ec14d0e17770899 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Sat, 15 Nov 2003 01:45:56 +0000 Subject: [PATCH] Make ipstealth global as we need it in ip_fastforward too. --- sys/netinet/ip_input.c | 2 +- sys/netinet/ip_var.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 2b1ca63c678e..c4764b12f1f6 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -198,7 +198,7 @@ SYSCTL_INT(_net_inet_ip, IPCTL_DEFMTU, mtu, CTLFLAG_RW, #endif #ifdef IPSTEALTH -static int ipstealth = 0; +int ipstealth = 0; SYSCTL_INT(_net_inet_ip, OID_AUTO, stealth, CTLFLAG_RW, &ipstealth, 0, ""); #endif diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index 964afd0ebfdf..4bd600d7f6fe 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -150,6 +150,9 @@ extern u_short ip_id; /* ip packet ctr, for ids */ #endif extern int ip_defttl; /* default IP ttl */ extern int ipforwarding; /* ip forwarding */ +#ifdef IPSTEALTH +extern int ipstealth; /* stealth forwarding */ +#endif extern u_char ip_protox[]; extern struct socket *ip_rsvpd; /* reservation protocol daemon */ extern struct socket *ip_mrouter; /* multicast routing daemon */