1
1

Use the proper interface index. Thanks to Mark Kettenis for spotting the problem and providing a patch

Этот коммит содержится в:
Ralph Castain 2015-01-12 05:31:02 -08:00
родитель 881b1dcf19
Коммит d2938a144f

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

@ -1124,7 +1124,8 @@ static char **split_and_resolve(char **orig_str, char *name)
argv_prefix); argv_prefix);
/* Go through all interfaces and see if we can find a match */ /* Go through all interfaces and see if we can find a match */
for (if_index = 0; if_index < opal_ifcount(); if_index++) { for (if_index = opal_ifbegin(); if_index >= 0;
if_index = opal_ifnext(if_index)) {
opal_ifindextoaddr(if_index, opal_ifindextoaddr(if_index,
(struct sockaddr*) &if_inaddr, (struct sockaddr*) &if_inaddr,
sizeof(if_inaddr)); sizeof(if_inaddr));
@ -1136,7 +1137,7 @@ static char **split_and_resolve(char **orig_str, char *name)
} }
/* If we didn't find a match, keep trying */ /* If we didn't find a match, keep trying */
if (if_index == opal_ifcount()) { if (if_index < 0) {
orte_show_help("help-oob-tcp.txt", "invalid if_inexclude", orte_show_help("help-oob-tcp.txt", "invalid if_inexclude",
true, name, orte_process_info.nodename, tmp, true, name, orte_process_info.nodename, tmp,
"Did not find interface matching this subnet"); "Did not find interface matching this subnet");