svn commit: r337900 - head/sys/netinet6

Andrey V. Elsukov ae at FreeBSD.org
Thu Aug 16 09:19:07 UTC 2018


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);


More information about the svn-src-head mailing list