Author: cy
Date: Sun Aug 19 13:44:56 2018
New Revision: 338045
URL: https://svnweb.freebsd.org/changeset/base/338045
Log:
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
Modified:
head/sys/contrib/ipfilter/netinet/ip_nat.c
Modified: head/sys/contrib/ipfilter/netinet/ip_nat.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_nat.c Sun Aug 19 13:23:46 2018
(r338044)
+++ head/sys/contrib/ipfilter/netinet/ip_nat.c Sun Aug 19 13:44:56 2018
(r338045)
@@ -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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"