diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2016-09-30 10:22:06 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2016-09-30 10:22:06 +0000 |
commit | ee0484bb84cb1f8ce467d72ec4ae27395853978a (patch) | |
tree | e2540195de8f35a59ec301d0050e825a9a4f3072 /sys/net | |
parent | d33ca26c7ded3c21f716126963021bb1625937ea (diff) |
Accept a packet smaller than ETHERMIN.
ok reyk
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_vxlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c index e700d7507fa..8d2175ab6ae 100644 --- a/sys/net/if_vxlan.c +++ b/sys/net/if_vxlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vxlan.c,v 1.47 2016/09/29 11:37:44 reyk Exp $ */ +/* $OpenBSD: if_vxlan.c,v 1.48 2016/09/30 10:22:05 yasuoka Exp $ */ /* * Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org> @@ -635,7 +635,7 @@ vxlan_lookup(struct mbuf *m, struct udphdr *uh, int iphlen, return (0); found: - if (m->m_pkthdr.len < skip + sizeof(struct ether_header) + ETHERMIN) + if (m->m_pkthdr.len < skip + sizeof(struct ether_header)) return (EINVAL); m_adj(m, skip); |