diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2013-08-02 05:58:37 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2013-08-14 19:50:22 +0900 |
commit | a4b4e9ad8e35ab424e61d76ebe6654445fc61e63 (patch) | |
tree | 5daa592aef5d300822bc7b937cd9a33f2d0826dd /include/sysutils/NetlinkEvent.h | |
parent | f5d3012d2c6ac343a0b8bcc95b9cd5137d9ef02f (diff) | |
download | system_core-a4b4e9ad8e35ab424e61d76ebe6654445fc61e63.zip system_core-a4b4e9ad8e35ab424e61d76ebe6654445fc61e63.tar.gz system_core-a4b4e9ad8e35ab424e61d76ebe6654445fc61e63.tar.bz2 |
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
Diffstat (limited to 'include/sysutils/NetlinkEvent.h')
-rw-r--r-- | include/sysutils/NetlinkEvent.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); }; |