FreeBSD/sys/netpfil/ipfw/ip_fw_sockopt.c
/*
 * Swaps prepared (backup) index with current one.
 */
Swaps prepared (backup) index with current one.
Swaps prepared ( backup ) index with current one .
static void
swap_skipto_cache(struct ip_fw_chain *chain)
{
	int *map;
	IPFW_UH_WLOCK_ASSERT(chain);
	IPFW_WLOCK_ASSERT(chain);
	map = chain->idxmap;
	chain->idxmap = chain->idxmap_back;
	chain->idxmap_back = map;
}
static void swap_skipto_cache ( struct ip_fw_chain * chain ) { int * map ; IPFW_UH_WLOCK_ASSERT ( chain ) ; IPFW_WLOCK_ASSERT ( chain ) ; map = chain -> idxmap ; chain -> idxmap = chain -> idxmap_back ; chain -> idxmap_back = map ; }
Swaps prepared (backup) index with current one.
Swaps prepared ( backup ) index with current one .