Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2012 11:55:29 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r232332 - projects/pf/head/sys/contrib/pf/net
Message-ID:  <201203011155.q21BtTmO077178@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Thu Mar  1 11:55:28 2012
New Revision: 232332
URL: http://svn.freebsd.org/changeset/base/232332

Log:
  Use correct size argument for V_pf_state_key_pl and V_pf_state_item_pl.

Modified:
  projects/pf/head/sys/contrib/pf/net/pf_ioctl.c

Modified: projects/pf/head/sys/contrib/pf/net/pf_ioctl.c
==============================================================================
--- projects/pf/head/sys/contrib/pf/net/pf_ioctl.c	Thu Mar  1 11:03:39 2012	(r232331)
+++ projects/pf/head/sys/contrib/pf/net/pf_ioctl.c	Thu Mar  1 11:55:28 2012	(r232332)
@@ -274,13 +274,14 @@ pfattach(void)
 	    NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
 	V_pf_rule_pl = uma_zcreate("pfrulepl", sizeof(struct pf_rule),
 	    NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
-	/* XXXGL: why three same zones here? */
 	V_pf_state_pl = uma_zcreate("pfstatepl", sizeof(struct pf_state),
 	    NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
-	V_pf_state_key_pl = uma_zcreate("pfstatekeypl", sizeof(struct pf_state),
-	    NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
+	V_pf_state_key_pl = uma_zcreate("pfstatekeypl",
+	    sizeof(struct pf_state_key), NULL, NULL, NULL, NULL,UMA_ALIGN_PTR,
+	    0);
 	V_pf_state_item_pl = uma_zcreate("pfstateitempl",
-	    sizeof(struct pf_state), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
+	    sizeof(struct pf_state_item), NULL, NULL, NULL, NULL,
+	    UMA_ALIGN_PTR, 0);
 	V_pf_altq_pl = uma_zcreate("pfaltqpl", sizeof(struct pf_altq),
 	    NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
 	V_pf_pooladdr_pl = uma_zcreate("pfpooladdrpl",



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