aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv/netvsc
diff options
context:
space:
mode:
authorWei Hu <whu@FreeBSD.org>2018-10-22 11:23:51 +0000
committerWei Hu <whu@FreeBSD.org>2018-10-22 11:23:51 +0000
commitf0319886caef01c41aaebbdf6c7dd8312a2ce085 (patch)
tree97d6c3425a045df00e6a2922100b99dfd9a5a9cd /sys/dev/hyperv/netvsc
parent0c79f82cf03ab03d024e1ff5e5b25871f6edf929 (diff)
Notes
Diffstat (limited to 'sys/dev/hyperv/netvsc')
-rw-r--r--sys/dev/hyperv/netvsc/if_hn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hyperv/netvsc/if_hn.c b/sys/dev/hyperv/netvsc/if_hn.c
index 24335638c33d..d2eaa711dcbc 100644
--- a/sys/dev/hyperv/netvsc/if_hn.c
+++ b/sys/dev/hyperv/netvsc/if_hn.c
@@ -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);
}