git: 2c8fbe4c513e - stable/13 - ipfilter: Unconditionally expose SDT probe frb_natv4in
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Jan 2022 01:39:19 UTC
The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=2c8fbe4c513e25e18f6d50d0f8b46536c04ec6ca commit 2c8fbe4c513e25e18f6d50d0f8b46536c04ec6ca Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2021-12-29 01:41:03 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2022-01-10 15:08:29 +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. (cherry picked from commit b6f072f767c58aca8d9440f9c1785731f58e815c) --- sys/contrib/ipfilter/netinet/ip_nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/ipfilter/netinet/ip_nat.c b/sys/contrib/ipfilter/netinet/ip_nat.c index 0475a4386079..4415ef60caa9 100644 --- a/sys/contrib/ipfilter/netinet/ip_nat.c +++ b/sys/contrib/ipfilter/netinet/ip_nat.c @@ -5521,6 +5521,7 @@ retry_roundrobin: inmatchfail: RWLOCK_EXIT(&softc->ipf_nat); + DT2(frb_natv4in, fr_info_t *, fin, int, rval); switch (rval) { case -3 : @@ -5532,7 +5533,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;