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:
Kristof Provost 2021-12-02 14:36:12 +01:00
parent 27bd812c5c
commit 7b02a551f7

View File

@ -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);