return all;
}
-
-void
-fw3_free_zone(struct fw3_zone *zone)
-{
- struct fw3_device *dev, *tmp;
-
- list_for_each_entry_safe(dev, tmp, &zone->devices, list)
- {
- list_del(&dev->list);
- free(dev);
- }
-
- list_for_each_entry_safe(dev, tmp, &zone->networks, list)
- {
- list_del(&dev->list);
- free(dev);
- }
-
- fw3_free_object(zone, fw3_zone_opts);
-}
struct list_head * fw3_resolve_zone_addresses(struct fw3_zone *zone);
-void fw3_free_zone(struct fw3_zone *zone);
+#define fw3_free_zone(zone) \
+ fw3_free_object(zone, fw3_zone_opts)
#define fw3_to_src_target(t) \
(FW3_FLAG_SRC_ACCEPT - FW3_FLAG_ACCEPT + t)