From a4b4e9ad8e35ab424e61d76ebe6654445fc61e63 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Fri, 2 Aug 2013 05:58:37 +0900 Subject: Parse IP address changes in NetlinkEvent. This adds support for parsing RTM_NEWADDR and RTM_DELADDR netlink messages received on netd's netlink socket and formatting them them so NetlinkHandler can process them. Address changes are notified in subsystem "address". Interface changes, which used to be notified in subsystem "net", are now notified in subsystem "interface" to avoid confusion. Bug: 10232006 Change-Id: I93a50e8de17014e118a42f5cc0eb90a0cbfa73cc --- include/sysutils/NetlinkEvent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sysutils/NetlinkEvent.h') diff --git a/include/sysutils/NetlinkEvent.h b/include/sysutils/NetlinkEvent.h index 25a56f7..2a734cb 100644 --- a/include/sysutils/NetlinkEvent.h +++ b/include/sysutils/NetlinkEvent.h @@ -47,6 +47,7 @@ public: void dump(); protected: + bool parseIfAddrMessage(int type, struct ifaddrmsg *ifaddr, int rtasize); bool parseBinaryNetlinkMessage(char *buffer, int size); bool parseAsciiNetlinkMessage(char *buffer, int size); }; -- cgit v1.1