Index: runtime/bin/socket.cc |
diff --git a/runtime/bin/socket.cc b/runtime/bin/socket.cc |
index 175d07e6a5f7a9e4608a4e177d39a3251f7c2718..046bd1855ec6b105678c8ad7499dc0af6dd26d55 100644 |
--- a/runtime/bin/socket.cc |
+++ b/runtime/bin/socket.cc |
@@ -427,7 +427,7 @@ CObject* Socket::ListInterfacesRequest(const CObjectArray& request) { |
for (intptr_t i = 0; i < addresses->count(); i++) { |
InterfaceSocketAddress* interface = addresses->GetAt(i); |
SocketAddress* addr = interface->socket_address(); |
- CObjectArray* entry = new CObjectArray(CObject::NewArray(4)); |
+ CObjectArray* entry = new CObjectArray(CObject::NewArray(5)); |
CObjectInt32* type = new CObjectInt32( |
CObject::NewInt32(addr->GetType())); |
@@ -449,6 +449,10 @@ CObject* Socket::ListInterfacesRequest(const CObjectArray& request) { |
interface->interface_name())); |
entry->SetAt(3, interface_name); |
+ CObjectInt64* interface_index = new CObjectInt64(CObject::NewInt64( |
+ interface->interface_index())); |
+ entry->SetAt(4, interface_index); |
+ |
array->SetAt(i + 1, entry); |
} |
result = array; |