src/usr.sbin/mountd/mountd.c
/*
 * Scan tree for a host that matches the address.
 */
Scan tree for a host that matches the address.
Scan tree for a host that matches the address .
static int
scan_tree(struct dirlist *dp, struct sockaddr *saddr)
{
	int defset, hostset;
	if (dp) {
		if (scan_tree(dp->dp_left, saddr))
			return (1);
		if (chk_host(dp, saddr, &defset, &hostset, NULL, NULL))
			return (1);
		if (scan_tree(dp->dp_right, saddr))
			return (1);
	}
	return (0);
}
static int scan_tree ( struct dirlist * dp , struct sockaddr * saddr ) { int defset , hostset ; if ( dp ) { if ( scan_tree ( dp -> dp_left , saddr ) ) return ( 1 ) ; if ( chk_host ( dp , saddr , & defset , & hostset , NULL , NULL ) ) return ( 1 ) ; if ( scan_tree ( dp -> dp_right , saddr ) ) return ( 1 ) ; } return ( 0 ) ; }
Scan tree for a host that matches the address.
Scan tree for a host that matches the address .