From 0e09cb650eaa3676aa1844a16b6544a69bcdb636 Mon Sep 17 00:00:00 2001 From: Shiqing Fan Date: Thu, 2 Jul 2009 14:44:41 +0000 Subject: [PATCH] The kernel index of the network interface wasn't set on Windows, it really caused a lot of problems. This commit was SVN r21587. --- opal/util/if.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/opal/util/if.c b/opal/util/if.c index 5b324eac3e..ec2b740a21 100644 --- a/opal/util/if.c +++ b/opal/util/if.c @@ -5,7 +5,7 @@ * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. - * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, + * Copyright (c) 2004-2009 High Performance Computing Center Stuttgart, * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. @@ -763,10 +763,13 @@ static int opal_ifinit(void) /* fill in the index in the table */ intf.if_index = opal_list_get_size(&opal_if_list)+1; + /* fill in the kernel index */ + intf.if_kernel_index = intf.if_index; + /* generate the interface name, e.g. eth0, eth1, ..... */ sprintf (intf.if_name, "eth%u", interface_counter++); - /* copy all this into a persistent form and store it in the list */ + /* copy all this into a persistent form and store it in the list */ intf_ptr = (opal_if_t *) malloc(sizeof(opal_if_t)); if (NULL == intf_ptr) { opal_output (0,"opal_ifinit: Unable to malloc %d bytes",sizeof(opal_list_t));