Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2018 01:04:52 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338169 - in stable: 10/sys/contrib/ipfilter/netinet 11/sys/contrib/ipfilter/netinet
Message-ID:  <201808220104.w7M14qHD091864@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Wed Aug 22 01:04:52 2018
New Revision: 338169
URL: https://svnweb.freebsd.org/changeset/base/338169

Log:
  MFC r338045:
  
  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

Modified:
  stable/11/sys/contrib/ipfilter/netinet/ip_nat.c
Directory Properties:
  stable/11/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/sys/contrib/ipfilter/netinet/ip_nat.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/11/sys/contrib/ipfilter/netinet/ip_nat.c
==============================================================================
--- stable/11/sys/contrib/ipfilter/netinet/ip_nat.c	Tue Aug 21 23:42:20 2018	(r338168)
+++ stable/11/sys/contrib/ipfilter/netinet/ip_nat.c	Wed Aug 22 01:04:52 2018	(r338169)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808220104.w7M14qHD091864>