Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2022 02:07:47 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b6f072f767c5 - main - ipfilter: Unconditionally expose SDT probe frb_natv4in
Message-ID:  <202201040207.20427lNR042858@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=b6f072f767c58aca8d9440f9c1785731f58e815c

commit b6f072f767c58aca8d9440f9c1785731f58e815c
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-12-29 01:41:03 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-01-04 02:06:44 +0000

    ipfilter: Unconditionally expose SDT probe frb_natv4in
    
    SDT probe frb_natv4in is only available when an error is encountered.
    Make it also available when no error is encountered, i.e. NATed and
    not translated.
    
    MFC after:      1 week
---
 sys/netpfil/ipfilter/netinet/ip_nat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netpfil/ipfilter/netinet/ip_nat.c b/sys/netpfil/ipfilter/netinet/ip_nat.c
index d2d0618e0a8c..48c13aa18a86 100644
--- a/sys/netpfil/ipfilter/netinet/ip_nat.c
+++ b/sys/netpfil/ipfilter/netinet/ip_nat.c
@@ -5412,6 +5412,7 @@ retry_roundrobin:
 inmatchfail:
 	RWLOCK_EXIT(&softc->ipf_nat);
 
+	DT2(frb_natv4in, fr_info_t *, fin, int, rval);
 	switch (rval)
 	{
 	case -3 :
@@ -5423,7 +5424,6 @@ inmatchfail:
 	case -1 :
 		/* proxy failure detected by ipf_nat_in() */
 		if (passp != NULL) {
-			DT2(frb_natv4in, fr_info_t *, fin, int, rval);
 			NBUMPSIDED(0, ns_drop);
 			*passp = FR_BLOCK;
 			fin->fin_reason = FRB_NATV4;



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