diff options
author | bz <bz@FreeBSD.org> | 2009-05-18 17:48:46 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-05-18 17:48:46 +0000 |
commit | 480a4f648dc68083d9dfa3811fbbbaa9a1b46c93 (patch) | |
tree | e6b417bebd79d5652fc0a4a9e38e793c8e63ae86 | |
parent | 35f48e9de62bedab074dd579586af376d87eb778 (diff) | |
download | FreeBSD-src-480a4f648dc68083d9dfa3811fbbbaa9a1b46c93.zip FreeBSD-src-480a4f648dc68083d9dfa3811fbbbaa9a1b46c93.tar.gz |
Add two missing INIT_VNET_INET6(curvnet) to make VIMAGE kernels happier.
-rw-r--r-- | sys/netinet6/ip6_mroute.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index 5a76ef3..79abf1f 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -363,6 +363,7 @@ pim6_init(void) int X_ip6_mrouter_set(struct socket *so, struct sockopt *sopt) { + INIT_VNET_INET6(curvnet); int error = 0; int optval; struct mif6ctl mifc; @@ -1715,6 +1716,7 @@ phyint_send(struct ip6_hdr *ip6, struct mif6 *mifp, struct mbuf *m) static int register_send(struct ip6_hdr *ip6, struct mif6 *mif, struct mbuf *m) { + INIT_VNET_INET6(curvnet); struct mbuf *mm; int i, len = m->m_pkthdr.len; static struct sockaddr_in6 sin6 = { sizeof(sin6), AF_INET6 }; @@ -2036,6 +2038,7 @@ pim6_input(struct mbuf **mp, int *offp, int proto) static int ip6_mroute_modevent(module_t mod, int type, void *unused) { + INIT_VNET_INET6(curvnet); switch (type) { case MOD_LOAD: |