diff options
| author | Marko Zec <zec@FreeBSD.org> | 2008-10-02 15:37:58 +0000 |
|---|---|---|
| committer | Marko Zec <zec@FreeBSD.org> | 2008-10-02 15:37:58 +0000 |
| commit | 8b615593fc0d78ef8366c1328f5966256b82a9c0 (patch) | |
| tree | 53fef93d1ff076abec439159e0a765427992dee1 /sys/netinet6/ip6_forward.c | |
| parent | 04ec403dd815bd3731dbf7da040759cd16271e3c (diff) | |
Notes
Diffstat (limited to 'sys/netinet6/ip6_forward.c')
| -rw-r--r-- | sys/netinet6/ip6_forward.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c index ec25a31bf3e7..8745b0853edd 100644 --- a/sys/netinet6/ip6_forward.c +++ b/sys/netinet6/ip6_forward.c @@ -93,6 +93,7 @@ struct route_in6 ip6_forward_rt; void ip6_forward(struct mbuf *m, int srcrt) { + INIT_VNET_INET6(curvnet); struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); struct sockaddr_in6 *dst = NULL; struct rtentry *rt = NULL; @@ -102,6 +103,7 @@ ip6_forward(struct mbuf *m, int srcrt) u_int32_t inzone, outzone; struct in6_addr src_in6, dst_in6; #ifdef IPSEC + INIT_VNET_IPSEC(curvnet); struct secpolicy *sp = NULL; int ipsecrt = 0; #endif |
