summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_var.h
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-02-20 19:59:52 +0000
committerbz <bz@FreeBSD.org>2010-02-20 19:59:52 +0000
commit29381991cf960220b44aa20487b64388a3fa5947 (patch)
tree5ec75ede6a751d9bc70d82667be1b9df3611beb8 /sys/netinet/ip_var.h
parent7dc6a1e18b26c51d1b47d35a6b92a45cf198bf64 (diff)
downloadFreeBSD-src-29381991cf960220b44aa20487b64388a3fa5947.zip
FreeBSD-src-29381991cf960220b44aa20487b64388a3fa5947.tar.gz
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
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 d041dd3..389ad6e 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 *);
OpenPOWER on IntegriCloud