pfsync: check IFF_DRV_RUNNING in the correct field
This flag is stored in if_drv_flags, not if_flags. Reviewed by: glebius MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D33241
This commit is contained in:
parent
27bd812c5c
commit
7b02a551f7
@ -1744,7 +1744,7 @@ pfsync_defer(struct pf_kstate *st, struct mbuf *m)
|
||||
|
||||
PFSYNC_LOCK(sc);
|
||||
|
||||
if (!(sc->sc_ifp->if_flags & IFF_DRV_RUNNING) ||
|
||||
if (!(sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING) ||
|
||||
!(sc->sc_flags & PFSYNCF_DEFER)) {
|
||||
PFSYNC_UNLOCK(sc);
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user