Properly initialize IP version in IPv6 header. This was missed in r334673.

Reported by:	Lars Schotte <lars at gustik dot eu>
This commit is contained in:
Andrey V. Elsukov 2018-08-16 09:19:06 +00:00
parent 113025767e
commit 8065bd0bca

View File

@ -201,6 +201,7 @@ in6_gif_ioctl(struct gif_softc *sc, u_long cmd, caddr_t data)
ip6 = malloc(sizeof(*ip6), M_GIF, M_WAITOK | M_ZERO);
ip6->ip6_src = src->sin6_addr;
ip6->ip6_dst = dst->sin6_addr;
ip6->ip6_vfc = IPV6_VERSION;
if (sc->gif_family != 0) {
/* Detach existing tunnel first */
CK_LIST_REMOVE(sc, chain);