Date: Fri, 24 Aug 2012 09:28:22 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r239644 - projects/pf/head/sys/contrib/pf/net Message-ID: <201208240928.q7O9SMGZ006426@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Fri Aug 24 09:28:22 2012 New Revision: 239644 URL: http://svn.freebsd.org/changeset/base/239644 Log: Bringing pfsync0 down should really disable pfsync_input(). Modified: projects/pf/head/sys/contrib/pf/net/if_pfsync.c Modified: projects/pf/head/sys/contrib/pf/net/if_pfsync.c ============================================================================== --- projects/pf/head/sys/contrib/pf/net/if_pfsync.c Fri Aug 24 07:35:18 2012 (r239643) +++ projects/pf/head/sys/contrib/pf/net/if_pfsync.c Fri Aug 24 09:28:22 2012 (r239644) @@ -594,8 +594,9 @@ pfsync_input(struct mbuf *m, __unused in V_pfsyncstats.pfsyncs_ipackets++; - /* verify that we have a sync interface configured */ - if (!sc || !sc->sc_sync_if || !V_pf_status.running) + /* Verify that we have a sync interface configured. */ + if (!sc || !sc->sc_sync_if || !V_pf_status.running || + (sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) goto done; /* verify that the packet came in on the right interface */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208240928.q7O9SMGZ006426>