FreeBSD/sys/netpfil/ipfw/ip_fw_sockopt.c
/*
 * Reclaim storage associated with a list of rules.  This is
 * typically the list created using remove_rule.
 * A NULL pointer on input is handled correctly.
 */
Reclaim storage associated with a list of rules.  This is
typically the list created using remove_rule.
A NULL pointer on input is handled correctly.
Reclaim storage associated with a list of rules . This is typically the list created using remove_rule . A NULL pointer on input is handled correctly .
void
ipfw_reap_rules(struct ip_fw *head)
{
	struct ip_fw *rule;
	while ((rule = head) != NULL) {
		head = *((struct ip_fw **)head);
		free_rule(rule);
	}
}
void ipfw_reap_rules ( struct ip_fw * head ) { struct ip_fw * rule ; while ( ( rule = head ) != NULL ) { head = * ( ( struct ip_fw * * ) head ) ; free_rule ( rule ) ; } }
Reclaim storage associated with a list of rules.
Reclaim storage associated with a list of rules .