svn commit: r272709 - projects/ipfw/sys/netpfil/ipfw

Alexander V. Chernikov melifaro at FreeBSD.org
Tue Oct 7 16:46:12 UTC 2014


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.
 	 */


More information about the svn-src-projects mailing list