summaryrefslogtreecommitdiff
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r--sys/net/if_gre.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index c3ec0015b762..6b5e7392059e 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -241,6 +241,9 @@ static int
gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
struct rtentry *rt)
{
+#ifdef INET6
+ INIT_VNET_INET(ifp->if_vnet);
+#endif
int error = 0;
struct gre_softc *sc = ifp->if_softc;
struct greip *gh;