mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
pf: fix pf_rule_to_actions()
If we already had a pipe set in the actions struct we need to take care
to clear the flag if we're overwriting it with a queue.
This can happen if we've got Ethernet rules setting a dummynet pipe.
It does this indirectly, by adding the dummynet information to a pf_mtag
associated with the mbuf.
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
920c341087
commit
009e8f0a10
1 changed files with 6 additions and 2 deletions
|
|
@ -3582,8 +3582,12 @@ pf_rule_to_actions(struct pf_krule *r, struct pf_rule_actions *a)
|
|||
a->dnpipe = r->dnpipe;
|
||||
if (r->dnrpipe)
|
||||
a->dnrpipe = r->dnrpipe;
|
||||
if (r->free_flags & PFRULE_DN_IS_PIPE)
|
||||
a->flags |= PFRULE_DN_IS_PIPE;
|
||||
if (r->dnpipe || r->dnrpipe) {
|
||||
if (r->free_flags & PFRULE_DN_IS_PIPE)
|
||||
a->flags |= PFRULE_DN_IS_PIPE;
|
||||
else
|
||||
a->flags &= ~PFRULE_DN_IS_PIPE;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue