git: 04c68025ea1d - main - pf: add a probe point to BOUND_IFACE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 Feb 2024 17:49:58 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=04c68025ea1dc35778db0ac1d195de9745678e28
commit 04c68025ea1dc35778db0ac1d195de9745678e28
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-02-02 20:51:50 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-02-06 17:47:07 +0000
pf: add a probe point to BOUND_IFACE
It's been useful at least once, so we may as well keep it.
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/netpfil/pf/pf.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index 12b72f50aa02..8bfda12b2b2e 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -126,6 +126,8 @@ SDT_PROBE_DEFINE4(pf, ip, test6, done, "int", "int", "struct pf_krule *",
SDT_PROBE_DEFINE5(pf, ip, state, lookup, "struct pfi_kkif *",
"struct pf_state_key_cmp *", "int", "struct pf_pdesc *",
"struct pf_kstate *");
+SDT_PROBE_DEFINE2(pf, ip, , bound_iface, "struct pf_kstate *",
+ "struct pfi_kkif *");
SDT_PROBE_DEFINE4(pf, sctp, multihome, test, "struct pfi_kkif *",
"struct pf_krule *", "struct mbuf *", "int");
@@ -415,6 +417,8 @@ VNET_DEFINE(struct pf_limit, pf_limits[PF_LIMIT_MAX]);
static struct pfi_kkif *
BOUND_IFACE(struct pf_kstate *st, struct pfi_kkif *k)
{
+ SDT_PROBE2(pf, ip, , bound_iface, st, k);
+
/* Floating unless otherwise specified. */
if (! (st->rule.ptr->rule_flag & PFRULE_IFBOUND))
return (V_pfi_all);