diff options
author | Kristof Provost <kp@FreeBSD.org> | 2023-10-05 14:57:50 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2023-10-12 07:47:06 +0000 |
commit | ee0b7276372ebe07cd231b55d42ab3a4200f53c0 (patch) | |
tree | a6189f27ec6c0e50c57f8232dcf1a8a6ca4858b3 | |
parent | e06428cfcaec314dae9e88102548250f2fb1fa0c (diff) | |
download | src-ee0b7276372ebe07cd231b55d42ab3a4200f53c0.tar.gz src-ee0b7276372ebe07cd231b55d42ab3a4200f53c0.zip |
pf: fix SCTP SDT probe
We want the return value of pf_test_rule(), i.e. the result of the
evaluation of the new state, not the result of the evaluation of the
original packet/state.
MFC after: 1 week
Sponsored by: Orange Business Services
(cherry picked from commit b00dbe851c66f26a16219d31c76b7fb411ace94c)
-rw-r--r-- | sys/netpfil/pf/pf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index fae0bd2854f9..3dddfdd0b1a4 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -5943,7 +5943,7 @@ pf_sctp_multihome_delayed(struct pf_pdesc *pd, int off, struct pfi_kkif *kif, ret = pf_test_rule(&r, &sm, kif, j->m, off, &j->pd, &ra, &rs, NULL); PF_RULES_RUNLOCK(); - SDT_PROBE4(pf, sctp, multihome, test, kif, r, j->m, action); + SDT_PROBE4(pf, sctp, multihome, test, kif, r, j->m, ret); if (sm) { /* Inherit v_tag values. */ sm->src.scrub->pfss_v_tag = s->src.scrub->pfss_flags; |