Make ipstealth global as we need it in ip_fastforward too.

This commit is contained in:
Andre Oppermann 2003-11-15 01:45:56 +00:00
parent e549a574c6
commit c76ff7084f
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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 */