summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2016-11-03 18:42:36 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2016-11-03 18:42:36 +0000
commit290031f9d547e986401ab390cba2229281c48b80 (patch)
tree78155a9f1fae0cc811407c0bbbae7ef3d63b2d2b /sys/netinet
parent4b3a0cdd06420cce6386bfd7879bc1c4d66a435a (diff)
Remove obsolete vxlan_lookup return value handling
With input from reyk@, OK mpi
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/udp_usrreq.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 60a7bdf41bd..200a6368246 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.219 2016/09/03 13:46:57 reyk Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.220 2016/11/03 18:42:35 mikeb Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -390,13 +390,8 @@ udp_input(struct mbuf *m, ...)
#if NPF > 0
!(m->m_pkthdr.pf.flags & PF_TAG_DIVERTED) &&
#endif
- (error = vxlan_lookup(m, uh, iphlen, &srcsa.sa, &dstsa.sa)) != 0) {
- if (error == -1) {
- udpstat.udps_hdrops++;
- m_freem(m);
- }
+ vxlan_lookup(m, uh, iphlen, &srcsa.sa, &dstsa.sa) != 0)
return;
- }
#endif
if (m->m_flags & (M_BCAST|M_MCAST)) {