Skip to content

Commit

Permalink
Importing pfSense patch pf_ifacebound_state.diff
Browse files Browse the repository at this point in the history
(cherry picked from commit 75557e3)
  • Loading branch information
loos-br committed Feb 15, 2019
1 parent 8b64875 commit 9712a28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sys/netpfil/pf/pf.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,7 @@ do { \
return (PF_PASS); \
} while (0)

#define BOUND_IFACE(r, k) \
((r)->rule_flag & PFRULE_IFBOUND) ? (k) : V_pfi_all
#define BOUND_IFACE(r, k) k

#define STATE_INC_COUNTERS(s) \
do { \
Expand Down Expand Up @@ -1509,7 +1508,7 @@ pf_find_state(struct pfi_kif *kif, struct pf_state_key_cmp *key, u_int dir)

/* List is sorted, if-bound states before floating ones. */
TAILQ_FOREACH(s, &sk->states[idx], key_list[idx])
if (s->kif == V_pfi_all || s->kif == kif) {
{
PF_STATE_LOCK(s);
PF_HASHROW_UNLOCK(kh);
if (s->timeout >= PFTM_MAX) {
Expand Down

0 comments on commit 9712a28

Please sign in to comment.