Author: kp
Date: Fri Jan 18 08:19:54 2019
New Revision: 343130
URL: https://svnweb.freebsd.org/changeset/base/343130

Log:
  pf: fix pfsync breaking carp
  
  Fix missing initialisation of sc_flags into a valid sync state on clone which
  breaks carp in pfsync.
  
  This regression was introduce by r342051.
  
  PR:           235005
  Submitted by: s...@freebsd.org
  Pointy hat to:        kp
  MFC after:    3 days
  Differential Revision:        https://reviews.freebsd.org/D18882

Modified:
  head/sys/netpfil/pf/if_pfsync.c

Modified: head/sys/netpfil/pf/if_pfsync.c
==============================================================================
--- head/sys/netpfil/pf/if_pfsync.c     Fri Jan 18 04:23:52 2019        
(r343129)
+++ head/sys/netpfil/pf/if_pfsync.c     Fri Jan 18 08:19:54 2019        
(r343130)
@@ -335,6 +335,7 @@ pfsync_clone_create(struct if_clone *ifc, int unit, ca
                pfsync_buckets = mp_ncpus * 2;
 
        sc = malloc(sizeof(struct pfsync_softc), M_PFSYNC, M_WAITOK | M_ZERO);
+       sc->sc_flags |= PFSYNCF_OK;
        sc->sc_maxupdates = 128;
 
        ifp = sc->sc_ifp = if_alloc(IFT_PFSYNC);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to