FreeBSD/sys/netipsec/key.c
/*
 * Return 0 when there are known to be no SP's for the specified
 * direction.  Otherwise return 1.  This is used by IPsec code
 * to optimize performance.
 */
Return 0 when there are known to be no SP's for the specified
direction.  Otherwise return 1.  This is used by IPsec code
to optimize performance.
Return 0 when there are known to be no SP ' s for the specified direction . Otherwise return 1 . This is used by IPsec code to optimize performance .
int
key_havesp(u_int dir)
{
	return (dir == IPSEC_DIR_INBOUND || dir == IPSEC_DIR_OUTBOUND ?
		TAILQ_FIRST(&V_sptree[dir]) != NULL : 1);
}
int key_havesp ( u_int dir ) { return ( dir == IPSEC_DIR_INBOUND || dir == IPSEC_DIR_OUTBOUND ? TAILQ_FIRST ( & V_sptree [ dir ] ) != NULL : 1 ) ; }
Return 0 when there are known to be no SP's for the specified
 direction.
Return 0 when there are known to be no SP ' s for the specified direction .