diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-17 13:53:20 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-17 13:53:20 -0300 |
commit | 28d8a8231c2378662bd19477648692aaa16ae6e7 (patch) | |
tree | 93cc8d4dce90a827852efd74cf3f2a7ed0a9a2ef /sys/netpfil | |
parent | 4d49f10460bcf06ff7d114807f7710bff16cc60f (diff) | |
download | FreeBSD-src-28d8a8231c2378662bd19477648692aaa16ae6e7.zip FreeBSD-src-28d8a8231c2378662bd19477648692aaa16ae6e7.tar.gz |
Importing pfSense patch pf_ifacebound_state.diff
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/pf/pf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index 357c4a9..95308ff 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -343,8 +343,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 { \ @@ -1477,7 +1476,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) { |