static void destroy(struct ip_set *set) { struct ip_set_macipmap *map = (struct ip_set_macipmap *) set->data; ip_set_free(map->members, members_size(map->first_ip, map->last_ip)); kfree(map); set->data = NULL; }
static void bitmap_ipmac_destroy(struct ip_set *set) { struct bitmap_ipmac *map = set->data; if (with_timeout(map->timeout)) del_timer_sync(&map->gc); ip_set_free(map->members); kfree(map); set->data = NULL; }