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 16:07:03 +0000 (08:07 -0800)
commitfbdffcc34b757c267c736f5fde9c631ae4815247
tree74c40a177071ad1eb1d9daed4a259b65b8d37389
parent350bdad61cc6551db649fcaeb8642f4a1d6b139a
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

(cherry picked from commit ef925e50d38fe6f5499c1d0d24cca98bf88e5256)

Change-Id: I19c19d83a86d0a8004a6b45dea7febe9d6fb6a2e
libc/bionic/ifaddrs.cpp