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.

MFC after:	3 days
This commit is contained in:
Cy Schubert 2021-10-04 21:26:58 -07:00
parent ca8bf28e1e
commit 106f42596e

View File

@ -1523,6 +1523,8 @@ ipf_p_ftp_process(softf, fin, nat, ftp, rv)
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 ",