FreeBSD/contrib/ntp/ntpd/ntp_peer.c
/*
 * findexistingpeer - search by address and return a pointer to a peer.
 */
search by address and return a pointer to a peer.
search by address and return a pointer to a peer .
struct peer *
findexistingpeer(
	sockaddr_u *	addr,
	const char *	hostname,
	struct peer *	start_peer,
	int		mode,
	u_char		cast_flags
	)
{
	if (hostname != NULL)
		return findexistingpeer_name(hostname, AF(addr),
					     start_peer, mode);
	else
		return findexistingpeer_addr(addr, start_peer, mode,
					     cast_flags);
}
struct peer * findexistingpeer ( sockaddr_u * addr , const char * hostname , struct peer * start_peer , int mode , u_char cast_flags ) { if ( hostname != NULL ) return findexistingpeer_name ( hostname , AF ( addr ) , start_peer , mode ) ; else return findexistingpeer_addr ( addr , start_peer , mode , cast_flags ) ; }
findexistingpeer - search by address and return a pointer to a peer.
findexistingpeer - search by address and return a pointer to a peer .