diff options
author | andre <andre@FreeBSD.org> | 2003-11-15 01:45:56 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2003-11-15 01:45:56 +0000 |
commit | 8ac3f681eba3e02ed3e0c26b1687b94e9ee4c1e6 (patch) | |
tree | d23664e4625accb37999b990e4ebe77814b2ffae /sys | |
parent | 29e72812956e40fcd4e137dedc50b0d4be20d31b (diff) | |
download | FreeBSD-src-8ac3f681eba3e02ed3e0c26b1687b94e9ee4c1e6.zip FreeBSD-src-8ac3f681eba3e02ed3e0c26b1687b94e9ee4c1e6.tar.gz |
Make ipstealth global as we need it in ip_fastforward too.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_input.c | 2 | ||||
-rw-r--r-- | sys/netinet/ip_var.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 2b1ca63..c4764b1 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 964afd0..4bd600d 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 */ |