Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1064)

Unified Diff: runtime/bin/socket.cc

Issue 95183002: Add the index information to network interface (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket.h ('k') | runtime/bin/socket_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/bin/socket.h ('k') | runtime/bin/socket_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698