OSDN Git Service

Make netd track and notify IP address changes.
authorLorenzo Colitti <lorenzo@google.com>
Thu, 1 Aug 2013 20:57:47 +0000 (05:57 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Wed, 20 Nov 2013 01:58:15 +0000 (10:58 +0900)
commit80a25984d6721e8916c674fb54f8aea66f2a2ace
treea05b822c229c339560d824258d9283ceab04529a
parentbca84afd429667bf25f2288f254f6e854bcb0f04
Make netd track and notify IP address changes.

Subscribe netd's netlink socket to listen to IPv4 and IPv6
address changes (and ND opts, which we'll need for IPv6 DNS
later), and make NetlinkHandler notify the system of address
changes.

[Cherry-pick of 9b3cd7635caf5948d7d4b11f8f588c9d2811d58e]

Bug: 10232006
Change-Id: Ib9dfd58635dce389980d8ee9529a17661a02320a
NetlinkHandler.cpp
NetlinkHandler.h
NetlinkManager.cpp
ResponseCode.h