aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_var.h
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2010-02-20 19:59:52 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2010-02-20 19:59:52 +0000
commit9802380e41683616a44153f1f1c6a98b5c6f2645 (patch)
tree5ec75ede6a751d9bc70d82667be1b9df3611beb8 /sys/netinet/ip_var.h
parent507377a6561ff452c6512b13f16eb1212c66a168 (diff)
downloadsrc-9802380e41683616a44153f1f1c6a98b5c6f2645.tar.gz
src-9802380e41683616a44153f1f1c6a98b5c6f2645.zip
Split up ip_drain() into an outer lock and iterator part and
a "locked" version that will only handle a single network stack instance. The latter is called directly from ip_destroy(). Hook up an ip_destroy() function to release resources from the legacy IP network layer upon virtual network stack teardown. Sponsored by: ISPsystem Reviewed by: rwatson MFC After: 5 days
Notes
Notes: svn path=/head/; revision=204140
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r--sys/netinet/ip_var.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index d041dd3feb9b..389ad6ee3169 100644
--- a/sys/netinet/ip_var.h
+++ b/sys/netinet/ip_var.h
@@ -212,6 +212,9 @@ int ip_fragment(struct ip *ip, struct mbuf **m_frag, int mtu,
u_long if_hwassist_flags, int sw_csum);
void ip_forward(struct mbuf *m, int srcrt);
void ip_init(void);
+#ifdef VIMAGE
+void ip_destroy(void);
+#endif
extern int
(*ip_mforward)(struct ip *, struct ifnet *, struct mbuf *,
struct ip_moptions *);