Expose np (nat_t - an entry in the nat table structure) in the DTrace

probe when nat fails (label badnat). This is useful in diagnosing
failed NAT issues and was used in PR/208566.

PR:		208566
MFC after:	3 days
This commit is contained in:
cy 2018-08-19 13:44:56 +00:00
parent ece181beaf
commit 1db6a0e38b

View File

@ -3259,7 +3259,7 @@ ipf_nat_add(fin, np, natsave, flags, direction)
goto done;
badnat:
DT2(ns_badnatnew, fr_info_t *, fin, nat_t *, nat);
DT3(ns_badnatnew, fr_info_t *, fin, nat_t *, nat, ipnat_t *, np);
NBUMPSIDE(fin->fin_out, ns_badnatnew);
if ((hm = nat->nat_hm) != NULL)
ipf_nat_hostmapdel(softc, &hm);