OSDN Git Service

Fix getifaddrs' handling of point-to-point interfaces.
authorElliott Hughes <enh@google.com>
Wed, 2 Mar 2016 01:27:12 +0000 (17:27 -0800)
committerElliott Hughes <enh@google.com>
Wed, 2 Mar 2016 04:05:59 +0000 (20:05 -0800)
commitef925e50d38fe6f5499c1d0d24cca98bf88e5256
tree24cf5b194a5933d6e74e6d0134fdede59597d843
parentc199690b5ffda0f4df50d1121f7ab577af1fe468
Fix getifaddrs' handling of point-to-point interfaces.

Also remove an if that implied that IFA_BROADCAST is a possibility for
AF_INET6.

The existing tests fail if you have a point-to-point interface configured,
so no new test necessary.

Bug: http://b/27442503
Change-Id: I4c5823b32204ae6c15527853414c2a0cef320b53
libc/bionic/ifaddrs.cpp