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 03:22:37 +0000 (19:22 -0800)
commit2ef5f633e7998cf71029341e466d8e13bad7b05b
tree2793541a3a797897be90ee726b11cf34dd38fa5b
parent598e2c0d2ae6b7fbc5eb470e4296c20ed1a011ee
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

(cherry picked from commit bf97770a8602ad50ac97a16b978f92c366595684)

Change-Id: Ifad01967d6b7f4bb1e0346a5bb352dbb524bf846
tests/ifaddrs_test.cpp