static void flush(struct ip_set *set) { struct ip_set_nethash *map = set->data; harray_flush(map->members, map->hashsize, sizeof(ip_set_ip_t)); memset(map->cidr, 0, 30 * sizeof(unsigned char)); map->elements = 0; }
static void flush(struct ip_set *set) { struct ip_set_ipporthash *map = (struct ip_set_ipporthash *) set->data; harray_flush(map->members, map->hashsize, sizeof(ip_set_ip_t)); }