Date: Fri, 5 Jun 2009 13:07:36 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r193499 - user/luigi/ipfw_80/sys/netinet/ipfw Message-ID: <200906051307.n55D7acj026364@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906051307.n55D7acj026364>