Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
bd1d0850
Commit
bd1d0850
authored
Dec 02, 2021
by
Gleb Smirnoff
Browse files
udp_multi_input(): the UDP header is only needed for probes
Reported by: kib Fixes:
de2d4784
parent
4b4cce02
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/netinet/udp_usrreq.c
View file @
bd1d0850
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment