Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2014 16:46:12 +0000 (UTC)
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r272709 - projects/ipfw/sys/netpfil/ipfw
Message-ID:  <201410071646.s97GkCnc086751@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: melifaro
Date: Tue Oct  7 16:46:11 2014
New Revision: 272709
URL: https://svnweb.freebsd.org/changeset/base/272709

Log:
  Notify table algo aboute runtime data change on table flush.

Modified:
  projects/ipfw/sys/netpfil/ipfw/ip_fw_table.c

Modified: projects/ipfw/sys/netpfil/ipfw/ip_fw_table.c
==============================================================================
--- projects/ipfw/sys/netpfil/ipfw/ip_fw_table.c	Tue Oct  7 16:08:21 2014	(r272708)
+++ projects/ipfw/sys/netpfil/ipfw/ip_fw_table.c	Tue Oct  7 16:46:11 2014	(r272709)
@@ -1280,6 +1280,10 @@ restart:
 	tc->ti = ti_new;
 	tc->count = 0;
 
+	/* Notify algo on real @ti address */
+	if (ta->change_ti != NULL)
+		ta->change_ti(tc->astate, &tablestate[kidx]);
+
 	/*
 	 * Stage 4: unref values.
 	 */



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