From d7ff7ea65220718398cae1e1aa0005072229b4e7 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Wed, 11 Jun 2014 17:37:12 +0900 Subject: Support parsing netlink route messages. Bug: 9180552 Change-Id: I4a36d869ac692647fb226d0912285bdf2ffcb1fa --- include/sysutils/NetlinkEvent.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/sysutils/NetlinkEvent.h') diff --git a/include/sysutils/NetlinkEvent.h b/include/sysutils/NetlinkEvent.h index a247a74..c345cdb 100644 --- a/include/sysutils/NetlinkEvent.h +++ b/include/sysutils/NetlinkEvent.h @@ -37,6 +37,8 @@ public: const static int NlActionAddressUpdated; const static int NlActionAddressRemoved; const static int NlActionRdnss; + const static int NlActionRouteUpdated; + const static int NlActionRouteRemoved; NetlinkEvent(); virtual ~NetlinkEvent(); @@ -55,6 +57,7 @@ public: bool parseIfInfoMessage(const struct nlmsghdr *nh); bool parseIfAddrMessage(const struct nlmsghdr *nh); bool parseUlogPacketMessage(const struct nlmsghdr *nh); + bool parseRtMessage(const struct nlmsghdr *nh); bool parseNdUserOptMessage(const struct nlmsghdr *nh); }; -- cgit v1.1