Add missing UDP multicast receive dtrace probes
Phabricator: https://reviews.freebsd.org/D924 Reviewed by: rpaulo markj MFC after: 1 month
This commit is contained in:
parent
8018334b70
commit
a0a9e1b57c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272844
@ -576,6 +576,8 @@ udp_input(struct mbuf **mp, int *offp, int proto)
|
||||
struct mbuf *n;
|
||||
|
||||
if ((n = m_copy(m, 0, M_COPYALL)) != NULL) {
|
||||
UDP_PROBE(receive, NULL, last, ip,
|
||||
last, uh);
|
||||
udp_append(last, ip, n, iphlen,
|
||||
&udp_in);
|
||||
}
|
||||
@ -607,6 +609,7 @@ udp_input(struct mbuf **mp, int *offp, int proto)
|
||||
INP_INFO_RUNLOCK(pcbinfo);
|
||||
goto badunlocked;
|
||||
}
|
||||
UDP_PROBE(receive, NULL, last, ip, last, uh);
|
||||
udp_append(last, ip, m, iphlen, &udp_in);
|
||||
INP_RUNLOCK(last);
|
||||
INP_INFO_RUNLOCK(pcbinfo);
|
||||
|
@ -370,6 +370,8 @@ udp6_input(struct mbuf **mp, int *offp, int proto)
|
||||
|
||||
if ((n = m_copy(m, 0, M_COPYALL)) != NULL) {
|
||||
INP_RLOCK(last);
|
||||
UDP_PROBE(receive, NULL, last, ip6,
|
||||
last, uh);
|
||||
udp6_append(last, n, off, &fromsa);
|
||||
INP_RUNLOCK(last);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user