mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not trop UDP traffic when TXCSUM_IPV6 flag is on
PR: 231797 Submitted by: whu Reviewed by: dexuan Obtained from: Kevin Morse MFC after: 3 days Sponsored by: Microsoft Differential Revision: https://bugs.freebsd.org/bugzilla/attachment.cgi?id=198333&action=diff
This commit is contained in:
parent
0c79f82cf0
commit
f0319886ca
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue