FreeBSD/contrib/ntp/ntpd/ntp_peer.c
/*
 * refresh_all_peerinterfaces - see that all interface bindings are up
 * to date
 */
see that all interface bindings are up
to date
see that all interface bindings are up to date
void
refresh_all_peerinterfaces(void)
{
	struct peer *p;
	for (p = peer_list; p != NULL; p = p->p_link) {
		if (!(p->dstadr && (p->reach & 0x3)))	
			peer_refresh_interface(p);
	}
}
void refresh_all_peerinterfaces ( void ) { struct peer * p ; for ( p = peer_list ; p != NULL ; p = p -> p_link ) { if ( ! ( p -> dstadr && ( p -> reach & 0x3 ) ) ) peer_refresh_interface ( p ) ; } }
refresh_all_peerinterfaces - see that all interface bindings are up
 to date
refresh_all_peerinterfaces - see that all interface bindings are up to date
/*
	 * this is called when the interface list has changed
	 * give all peers a chance to find a better interface
	 * but only if either they don't have an address already
	 * or if the one they have hasn't worked for a while.
	 */ // Bug 2849 XOR 2043