Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2019 00:32:03 +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-11@freebsd.org
Subject:   svn commit: r343236 - stable/11/sys/netpfil/pf
Message-ID:  <201901210032.x0L0W3Px046579@repo.freebsd.org>

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

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/11/sys/netpfil/pf/if_pfsync.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netpfil/pf/if_pfsync.c
==============================================================================
--- stable/11/sys/netpfil/pf/if_pfsync.c	Mon Jan 21 00:09:54 2019	(r343235)
+++ stable/11/sys/netpfil/pf/if_pfsync.c	Mon Jan 21 00:32:03 2019	(r343236)
@@ -333,6 +333,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.x0L0W3Px046579>