1
1

default to first available IP address if no matching subnets found..

This commit was SVN r8125.
Этот коммит содержится в:
Galen Shipman 2005-11-12 00:31:34 +00:00
родитель 24b9de292c
Коммит 5cf2d8d40c

Просмотреть файл

@ -161,16 +161,23 @@ int mca_btl_tcp_proc_insert(
if(net1 == net2) { if(net1 == net2) {
btl_endpoint->endpoint_addr = endpoint_addr; btl_endpoint->endpoint_addr = endpoint_addr;
break; break;
} else if(btl_endpoint->endpoint_addr != 0) } else if(btl_endpoint->endpoint_addr != 0) {
btl_endpoint->endpoint_addr = endpoint_addr; btl_endpoint->endpoint_addr = endpoint_addr;
}
} }
/* Make sure there is a common interface */ /* Make sure there is a common interface */
if( NULL != btl_endpoint->endpoint_addr ) { if( NULL != btl_endpoint->endpoint_addr ) {
btl_endpoint->endpoint_addr->addr_inuse++; btl_endpoint->endpoint_addr->addr_inuse++;
return OMPI_SUCCESS; return OMPI_SUCCESS;
} }
return OMPI_ERR_UNREACH; /* No common interface.. grab the first one and hope for the best */
else if(btl_proc->proc_addr_count){
btl_endpoint->endpoint_addr = btl_proc->proc_addrs;
return OMPI_SUCCESS;
} else {
return OMPI_ERR_UNREACH;
}
} }
/* /*