OSDN Git Service

Rewrite ifaddrs#getifaddrs_INET.
authorElliott Hughes <enh@google.com>
Mon, 29 Feb 2016 21:31:59 +0000 (13:31 -0800)
committerElliott Hughes <enh@google.com>
Tue, 1 Mar 2016 01:58:54 +0000 (17:58 -0800)
commitbf97770a8602ad50ac97a16b978f92c366595684
tree963959e129283021bedd927d8a08fd68789ccba3
parent17866357c5437d1b43b9f4b7411e48d9c9c38bec
Rewrite ifaddrs#getifaddrs_INET.

The old implementation was unnecessarily complex, and using the wrong ioctl
for point-to-point destination addresses.

Bug: http://b/27313259
Change-Id: I9cabd17e414ce42b115037a3f828d79843f604f9
tests/ifaddrs_test.cpp