Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2018 09:19:06 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337900 - head/sys/netinet6
Message-ID:  <201808160919.w7G9J63D052859@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Thu Aug 16 09:19:06 2018
New Revision: 337900
URL: https://svnweb.freebsd.org/changeset/base/337900

Log:
  Properly initialize IP version in IPv6 header. This was missed in r334673.
  
  Reported by:	Lars Schotte <lars at gustik dot eu>

Modified:
  head/sys/netinet6/in6_gif.c

Modified: head/sys/netinet6/in6_gif.c
==============================================================================
--- head/sys/netinet6/in6_gif.c	Thu Aug 16 09:11:34 2018	(r337899)
+++ head/sys/netinet6/in6_gif.c	Thu Aug 16 09:19:06 2018	(r337900)
@@ -201,6 +201,7 @@ in6_gif_ioctl(struct gif_softc *sc, u_long cmd, caddr_
 		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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808160919.w7G9J63D052859>