svn commit: r338045 - head/sys/contrib/ipfilter/netinet
Cy Schubert
cy at FreeBSD.org
Sun Aug 19 13:44:57 UTC 2018
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);
More information about the svn-src-all
mailing list