svn commit: r193499 - user/luigi/ipfw_80/sys/netinet/ipfw

Luigi Rizzo luigi at FreeBSD.org
Fri Jun 5 13:07:37 UTC 2009


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;
 


More information about the svn-src-user mailing list