aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-10-05 04:26:58 +0000
committerCy Schubert <cy@FreeBSD.org>2021-12-09 18:52:11 +0000
commit09aa9a1f82bfccfd7e87dcf7f2bf055d2c137b52 (patch)
treef4690e8f17239e4b60a77ea2a3b7a095f3c407ce
parent67b86b71c19ce44dd98cd63f6f684354cd0f351e (diff)
ipfilter: Add DTrace SDT probe
Add an SDT probe, using the newly created DT5 macro, in similar vein to DEBUG_PARSE printf for when FTP junk is anticipated and ok. This will assist in debugging port (active) FTP proxy issues. (cherry picked from commit 106f42596e4b61c26425735a3999bd51d39dd82c)
-rw-r--r--sys/contrib/ipfilter/netinet/ip_ftp_pxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c b/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
index 0079e884a8b8..4ac7ffc7e5b1 100644
--- a/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
+++ b/sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
@@ -1523,6 +1523,8 @@ whilemore:
len = wptr - rptr;
f->ftps_junk = ipf_p_ftp_valid(softf, ftp, rv,
rptr, len);
+ DT5(junk_ftp_valid, int, len, int, rv, u_long, rptr,
+ u_long, wptr, int, f->ftps_junk);
if (softf->ipf_p_ftp_debug & DEBUG_PARSE) {
printf("%s=%d len %d rv %d ptr %lx/%lx ",