FreeBSD/sys/netpfil/ipfw/ip_fw_sockopt.c
/*
 * Swaps current @ni index with new one.
 */
Swaps current @ni index with new one.
Swaps current @ni index with new one .
void
ipfw_objhash_bitmap_swap(struct namedobj_instance *ni, void **idx, int *blocks)
{
	int old_blocks;
	u_long *old_idx;
	old_idx = ni->idx_mask;
	old_blocks = ni->max_blocks;
	ni->idx_mask = *idx;
	ni->max_blocks = *blocks;
	*idx = old_idx;
	*blocks = old_blocks;
}
void ipfw_objhash_bitmap_swap ( struct namedobj_instance * ni , void * * idx , int * blocks ) { int old_blocks ; u_long * old_idx ; old_idx = ni -> idx_mask ; old_blocks = ni -> max_blocks ; ni -> idx_mask = * idx ; ni -> max_blocks = * blocks ; * idx = old_idx ; * blocks = old_blocks ; }
Swaps current @ni index with new one.
Swaps current @ni index with new one .
/* Save old values */