FreeBSD/contrib/ofed/libsdp/src/match.c
/* return the result of the first matching rule found */
return the result of the first matching rule found
return the result of the first matching rule found
use_family_t
__sdp_match_listen(
	const struct sockaddr * sin,
	const socklen_t addrlen )
{
	use_family_t target_family;
	if ( __sdp_config_empty(  ) )
		target_family = USE_SDP;
	else
		target_family =
			get_family_by_first_matching_rule( sin, addrlen,
														  __sdp_servers_family_rules_head );
	__sdp_log( 4, "MATCH LISTEN: => %s\n",
				  __sdp_get_family_str( target_family ) );
	return ( target_family );
}
use_family_t __sdp_match_listen ( const struct sockaddr * sin , const socklen_t addrlen ) { use_family_t target_family ; if ( __sdp_config_empty ( ) ) target_family = USE_SDP ; else target_family = get_family_by_first_matching_rule ( sin , addrlen , __sdp_servers_family_rules_head ) ; __sdp_log ( 4 , " \n " , __sdp_get_family_str ( target_family ) ) ; return ( target_family ) ; }
return the result of the first matching rule found
return the result of the first matching rule found
/* if we do not have any rules we use sdp */