aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2021-12-03 04:12:40 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2021-12-03 04:12:40 +0000
commitbd1d0850452ecd0bfa6a2ae4cd9938d302a59758 (patch)
tree43e4ab3f195935f41fe29819416f827a81218454 /sys/netinet
parent4b4cce02ac01a943aa1816e7ea9ae6017539e7bb (diff)
downloadsrc-bd1d0850452ecd0bfa6a2ae4cd9938d302a59758.tar.gz
src-bd1d0850452ecd0bfa6a2ae4cd9938d302a59758.zip
udp_multi_input(): the UDP header is only needed for probes
Reported by: kib Fixes: de2d47842e88
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/udp_usrreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index cd21b8640441..a6be949286b8 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -421,7 +421,9 @@ udp_multi_input(struct mbuf *m, int proto, struct sockaddr_in *udp_in)
struct ip *ip = mtod(m, struct ip *);
struct inpcb_iterator inpi = INP_ITERATOR(udp_get_inpcbinfo(proto),
INPLOOKUP_RLOCKPCB, udp_multi_match, ip);
+#ifdef KDTRACE_HOOKS
struct udphdr *uh = (struct udphdr *)(ip + 1);
+#endif
struct inpcb *inp;
struct mbuf *n;
int appends = 0;