Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2019 00:32:04 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r343237 - stable/12/sys/netpfil/pf
Message-ID:  <201901210032.x0L0W4wh046624@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Mon Jan 21 00:32:04 2019
New Revision: 343237
URL: https://svnweb.freebsd.org/changeset/base/343237

Log:
  MFC r343130
  
  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:	smh@FreeBSD.org
  Pointy hat to:	kp

Modified:
  stable/12/sys/netpfil/pf/if_pfsync.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netpfil/pf/if_pfsync.c
==============================================================================
--- stable/12/sys/netpfil/pf/if_pfsync.c	Mon Jan 21 00:32:03 2019	(r343236)
+++ stable/12/sys/netpfil/pf/if_pfsync.c	Mon Jan 21 00:32:04 2019	(r343237)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901210032.x0L0W4wh046624>