-/* $OpenBSD: pf_ioctl.c,v 1.408 2023/06/27 17:36:56 kn Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.409 2023/06/28 15:36:08 kn Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
int pf_states_get(struct pfioc_states *);
struct pf_trans *pf_open_trans(uint32_t);
-void pf_close_all_trans(uint32_t);
struct pf_trans *pf_find_trans(uint32_t, uint64_t);
void pf_free_trans(struct pf_trans *);
void pf_rollback_trans(struct pf_trans *);
PF_UNLOCK();
NET_UNLOCK();
- pf_close_all_trans(minor(dev));
t = pf_open_trans(minor(dev));
pf_init_tgetrule(t, ruleset->anchor, ruleset_version, rule);
pr->ticket = t->pft_ticket;
return (t);
}
-void
-pf_close_all_trans(uint32_t unit)
-{
- struct pf_trans *t, *nt;
-
- rw_assert_wrlock(&pfioctl_rw);
-
- LIST_FOREACH_SAFE(t, &pf_ioctl_trans, pft_entry, nt) {
- if (t->pft_unit == unit)
- pf_rollback_trans(t);
- }
-}
-
struct pf_trans *
pf_find_trans(uint32_t unit, uint64_t ticket)
{