Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2018 06:24:08 +0000 (UTC)
From:      Wei Hu <whu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r339942 - stable/10/sys/dev/hyperv/netvsc
Message-ID:  <201810310624.w9V6O8L5079630@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: whu
Date: Wed Oct 31 06:24:07 2018
New Revision: 339942
URL: https://svnweb.freebsd.org/changeset/base/339942

Log:
  MFC: 339585
  
      r339585:
  	Do not drop UDP traffic when TXCSUM_IPV6 flag is on
  
  	PR:		231797
  	Submitted by:	whu
  	Reviewed by:	dexuan
  	Obtained from:	Kevin Morse
  	Sponsored by:	Microsoft

Modified:
  stable/10/sys/dev/hyperv/netvsc/if_hn.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/hyperv/netvsc/if_hn.c
==============================================================================
--- stable/10/sys/dev/hyperv/netvsc/if_hn.c	Wed Oct 31 05:17:53 2018	(r339941)
+++ stable/10/sys/dev/hyperv/netvsc/if_hn.c	Wed Oct 31 06:24:07 2018	(r339942)
@@ -857,7 +857,8 @@ hn_set_hlen(struct mbuf *m_head)
 
 		PULLUP_HDR(m_head, ehlen + sizeof(*ip6));
 		ip6 = mtodo(m_head, ehlen);
-		if (ip6->ip6_nxt != IPPROTO_TCP) {
+		if (ip6->ip6_nxt != IPPROTO_TCP &&
+		    ip6->ip6_nxt != IPPROTO_UDP) {
 			m_freem(m_head);
 			return (NULL);
 		}



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