History log of /external/dhcpcd-6.8.2/ifaddrs.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c9637dfcff101b45b9a7aeac4e0e7237d829a59a 26-Aug-2015 Samuel Tan <samueltan@google.com> dhcpcd-6.8.2: assign interface index in get_interface

In if_discover, the interface struct's index member
(ifp->index) is assigned from the sll_ifindex member of
of ifa->if_addr (see if.c:490). However, this member is
not set in the get_interface function of ifaddrs.c. This
unitialized interface index member is later used to bind
a socket and send messages on it, which leads to errors.

Assign the interface index of selected interface in
get_interface to fix this.

BUG: 22956197
Change-Id: I41da8fc7abdf3f5fc05c1dc0446d2a1d9dc7557d
/external/dhcpcd-6.8.2/ifaddrs.c
71df777a3ab1a98a30e32ef482e8b28409a3989e 20-Aug-2015 Samuel Tan <samueltan@google.com> dhcpcd-6.8.2: add ifaddrs.c and ifaddrs.h

Add an Android implementation of ifaddrs to the
dhcpcd-6.8.2 repo, which this daemon depends on.

ifaddr.c cherry-picked from
https://googleplex-android.git.corp.google.com/platform/external/dhcpcd/+/master
at 31db56e5b40726fed587656ac1730705c79741b9.

ifaddr.h cherry-picked from
https://googleplex-android.git.corp.google.com/platform/external/dhcpcd/+/master
at e86eee143ed21592f88a46623a81f71002430459.

BUG: 22956197
Change-Id: Id19c9ee8e7c0c32b36742052f9ee63dc197aa218
/external/dhcpcd-6.8.2/ifaddrs.c