From owner-svn-src-all@FreeBSD.ORG Thu Dec 10 18:34:08 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CE321065693; Thu, 10 Dec 2009 18:34:08 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5FD8FC12; Thu, 10 Dec 2009 18:34:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nBAIY7x7071598; Thu, 10 Dec 2009 18:34:07 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nBAIY7pF071596; Thu, 10 Dec 2009 18:34:07 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <200912101834.nBAIY7pF071596@svn.freebsd.org> From: Luigi Rizzo Date: Thu, 10 Dec 2009 18:34:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200360 - head/sys/netinet/ipfw X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2009 18:34:08 -0000 Author: luigi Date: Thu Dec 10 18:34:07 2009 New Revision: 200360 URL: http://svn.freebsd.org/changeset/base/200360 Log: when draining a flowset free the entire chain, not just one packet. Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified: head/sys/netinet/ipfw/ip_dummynet.c ============================================================================== --- head/sys/netinet/ipfw/ip_dummynet.c Thu Dec 10 16:55:16 2009 (r200359) +++ head/sys/netinet/ipfw/ip_dummynet.c Thu Dec 10 18:34:07 2009 (r200360) @@ -1990,7 +1990,7 @@ dummynet_drain(void) for (i = 0; i < HASHSIZE; i++) { SLIST_FOREACH(pipe, &pipehash[i], next) { purge_flow_set(&(pipe->fs), 0); - dn_free_pkt(pipe->head); + dn_free_pkts(pipe->head); pipe->head = pipe->tail = NULL; } }