diff options
author | sam <sam@FreeBSD.org> | 2003-10-14 19:19:12 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-10-14 19:19:12 +0000 |
commit | 5355d8b45455678eb500767f7087ad40bae69576 (patch) | |
tree | 1a1e112aca0afe150b960ab373b5f73234f12485 /sys/netinet/ip_var.h | |
parent | 5daf1cdd10e30bbb9d6d0a7e713d6d6bb25e4123 (diff) | |
download | FreeBSD-src-5355d8b45455678eb500767f7087ad40bae69576.zip FreeBSD-src-5355d8b45455678eb500767f7087ad40bae69576.tar.gz |
Lock ip forwarding route cache. While we're at it, remove the global
variable ipforward_rt by introducing an ip_forward_cacheinval() call
to use to invalidate the cache.
Supported by: FreeBSD Foundation
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r-- | sys/netinet/ip_var.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index 40f36c1..17aba66 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -154,7 +154,6 @@ extern u_short ip_id; /* ip packet ctr, for ids */ #endif extern int ip_defttl; /* default IP ttl */ extern int ipforwarding; /* ip forwarding */ -extern struct route ipforward_rt; /* ip forwarding cached route */ extern u_char ip_protox[]; extern struct socket *ip_rsvpd; /* reservation protocol daemon */ extern struct socket *ip_mrouter; /* multicast routing daemon */ @@ -167,6 +166,7 @@ int ip_ctloutput(struct socket *, struct sockopt *sopt); void ip_drain(void); int ip_fragment(struct ip *ip, struct mbuf **m_frag, int mtu, u_long if_hwassist_flags, int sw_csum); +void ip_forward_cacheinval(void); void ip_freemoptions(struct ip_moptions *); void ip_init(void); extern int (*ip_mforward)(struct ip *, struct ifnet *, struct mbuf *, |