rem: (*handle)->info.size + rules_size,
add: (*handle)->entries.size + rules_size,
context: insert_rules(unsigned int num_rules, unsigned int rules_size,	     const STRUCT_ENTRY *insert,	     unsigned int offset, unsigned int num_rules_offset,	     int prepend,	     TC_HANDLE_T *handle){	TC_HANDLE_T newh;	STRUCT_GETINFO newinfo;	unsigned int i;	if (offset >= (*handle)->entries.size) {		errno = EINVAL;		return 0;	}	newinfo = (*handle)->info;	/* Fix up entry points. */	for (i = 0; i < NUMHOOKS; i++) {		/* Entry points to START of chain, so keep same if                   inserting on at that point. */		if ((*handle)->info.hook_entry[i] > offset)			newinfo.hook_entry[i] += rules_size;		/* Underflow always points to END of chain (policy),		   so if something is inserted at same point, it		   should be advanced. */		if ((*handle)->info.underflow[i] >= offset)			newinfo.underflow[i] += rules_size;	}	newh = alloc_handle((*handle)->info.name,			    (*handle)->info.size + rules_size,			    (*handle)->info.num_entries + num_rules);	if (!newh)		return 0;	newh->info = newinfo;	/* Copy pre... */	memcpy(newh->entries.entrytable, (*handle)->entries.entrytable,offset);	/* ... Insert new ... */	memcpy((char *)newh->entries.entrytable + offset, insert, rules_size);	/* ... copy post */	memcpy((char *)newh->entries.entrytable + offset + rules_size,	       (char *)(*handle)->entries.entrytable + offset,	       (*handle)->entries.size - offset);	/* Move counter map. */	/* Copy pre... */	memcpy(newh->counter_map, (*handle)->counter_map,	       sizeof(struct counter_map) * num_rules_offset);	/* ... copy post */	memcpy(newh->counter_map + num_rules_offset + num_rules,	       (*handle)->counter_map + num_rules_offset,	       sizeof(struct counter_map) * ((*handle)->new_number					     - num_rules_offset));	/* Set intermediates to no counter copy */	for (i = 0; i < num_rules; i++)		newh->counter_map[num_rules_offset+i]			= ((struct counter_map){ COUNTER_MAP_NOMAP, 0 });	newh->new_number = (*handle)->new_number + num_rules;	newh->entries.size = (*handle)->entries.size + rules_size;	newh->hooknames = (*handle)->hooknames;	if ((*handle)->cache_chain_heads)		free((*handle)->cache_chain_heads);	free(*handle);	*handle = newh;	return set_verdict(offset, rules_size, handle);}