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

Unified Diff: net/base/address_tracker_linux.cc

Issue 2890773002: When creating sockets for ioctl() use AF_INET6 or AF_INET (Closed)
Patch Set: Created 3 years, 7 months 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 | « no previous file | net/base/network_interfaces_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_tracker_linux.cc
diff --git a/net/base/address_tracker_linux.cc b/net/base/address_tracker_linux.cc
index 1cbfec7c9afef8273b1867c8bf4d5bffd5c1ffc3..a7c15b7ce793d249621db7a64e5ccf99fc06aade 100644
--- a/net/base/address_tracker_linux.cc
+++ b/net/base/address_tracker_linux.cc
@@ -98,7 +98,7 @@ bool GetAddress(const struct nlmsghdr* header,
// static
char* AddressTrackerLinux::GetInterfaceName(int interface_index, char* buf) {
memset(buf, 0, IFNAMSIZ);
- base::ScopedFD ioctl_socket(socket(AF_INET, SOCK_DGRAM, 0));
+ base::ScopedFD ioctl_socket = GetSocketForIoctl();
if (!ioctl_socket.is_valid())
return buf;
« no previous file with comments | « no previous file | net/base/network_interfaces_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698