From owner-svn-src-user@FreeBSD.ORG Fri Jun 5 13:07:36 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5CCA1065670; Fri, 5 Jun 2009 13:07:36 +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 B49A28FC1F; Fri, 5 Jun 2009 13:07:36 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n55D7awN026366; Fri, 5 Jun 2009 13:07:36 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n55D7acj026364; Fri, 5 Jun 2009 13:07:36 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <200906051307.n55D7acj026364@svn.freebsd.org> From: Luigi Rizzo Date: Fri, 5 Jun 2009 13:07:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193499 - user/luigi/ipfw_80/sys/netinet/ipfw X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 13:07:37 -0000 Author: luigi Date: Fri Jun 5 13:07:36 2009 New Revision: 193499 URL: http://svn.freebsd.org/changeset/base/193499 Log: fix some comments Modified: user/luigi/ipfw_80/sys/netinet/ipfw/ip_dummynet.c user/luigi/ipfw_80/sys/netinet/ipfw/ip_fw2.c Modified: user/luigi/ipfw_80/sys/netinet/ipfw/ip_dummynet.c ============================================================================== --- user/luigi/ipfw_80/sys/netinet/ipfw/ip_dummynet.c Fri Jun 5 13:05:14 2009 (r193498) +++ user/luigi/ipfw_80/sys/netinet/ipfw/ip_dummynet.c Fri Jun 5 13:07:36 2009 (r193499) @@ -1642,8 +1642,9 @@ dn_rule_delete_fs(struct dn_flow_set *fs } /* - * when a firewall rule is deleted, scan all queues and remove the rule-id - * from packets matching this rule. + * When a firewall rule is deleted, scan all queues and remove the pointer + * to the rule from matching packets, making them point to the default rule. + * The pointer is used to reinject packets in case one_pass = 0. */ void dn_rule_delete(void *r) Modified: user/luigi/ipfw_80/sys/netinet/ipfw/ip_fw2.c ============================================================================== --- user/luigi/ipfw_80/sys/netinet/ipfw/ip_fw2.c Fri Jun 5 13:05:14 2009 (r193498) +++ user/luigi/ipfw_80/sys/netinet/ipfw/ip_fw2.c Fri Jun 5 13:07:36 2009 (r193499) @@ -3606,8 +3606,8 @@ remove_rule(struct ip_fw_chain *chain, s } /* - * Hook for rule delete. - * Set/cleared when dummynet module is loaded. + * Hook for cleaning up dummynet when an ipfw rule is deleted. + * Set/cleared when dummynet module is loaded/unloaded. */ void (*ip_dn_ruledel_ptr)(void *) = NULL;