Author: whu
Date: Thu Nov  1 08:08:08 2018
New Revision: 339984
URL: https://svnweb.freebsd.org/changeset/base/339984

Log:
  MFC r339585:
   Do not drop UDP traffic when TXCSUM_IPV6 flag is on.
  
  PR:           231797
  Submitted by: whu
  Reviewed by:  dexuan
  Obtained from:        Kevin Morse
  Approved by:  re (rgrimes)
  Sponsored by: Microsoft

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

Modified: stable/12/sys/dev/hyperv/netvsc/if_hn.c
==============================================================================
--- stable/12/sys/dev/hyperv/netvsc/if_hn.c     Thu Nov  1 03:38:57 2018        
(r339983)
+++ stable/12/sys/dev/hyperv/netvsc/if_hn.c     Thu Nov  1 08:08:08 2018        
(r339984)
@@ -861,7 +861,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);
                }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to