summaryrefslogtreecommitdiffstats
path: root/include/sysutils/NetlinkEvent.h
diff options
context:
space:
mode:
authorStan Chesnutt <chesnutt@google.com>2010-12-26 22:15:00 -0800
committerStan Chesnutt <chesnutt@google.com>2010-12-26 22:15:00 -0800
commit8418ac8ba59bd140b5a2432c99501cc79debdefc (patch)
tree3167dd038e9c3e1d3f020a10fed88b4979bc3428 /include/sysutils/NetlinkEvent.h
parentbdd483830d6b18a4840e5b8483bf058f3c4579eb (diff)
downloadsystem_core-8418ac8ba59bd140b5a2432c99501cc79debdefc.zip
system_core-8418ac8ba59bd140b5a2432c99501cc79debdefc.tar.gz
system_core-8418ac8ba59bd140b5a2432c99501cc79debdefc.tar.bz2
Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet
physical-layer up/down events can be tracked. Upper layers will use these events to enable/disable Ethernet connectivity. Change-Id: If07c30c4d79f26cf94eb5597be651ebbf9d072c6
Diffstat (limited to 'include/sysutils/NetlinkEvent.h')
-rw-r--r--include/sysutils/NetlinkEvent.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sysutils/NetlinkEvent.h b/include/sysutils/NetlinkEvent.h
index b329b09..1ee9849 100644
--- a/include/sysutils/NetlinkEvent.h
+++ b/include/sysutils/NetlinkEvent.h
@@ -30,17 +30,23 @@ public:
const static int NlActionAdd;
const static int NlActionRemove;
const static int NlActionChange;
+ const static int NlActionLinkDown;
+ const static int NlActionLinkUp;
NetlinkEvent();
virtual ~NetlinkEvent();
- bool decode(char *buffer, int size);
+ bool decode(char *buffer, int size, int format);
const char *findParam(const char *paramName);
const char *getSubsystem() { return mSubsystem; }
int getAction() { return mAction; }
void dump();
+
+ protected:
+ bool parseBinaryNetlinkMessage(char *buffer, int size);
+ bool parseAsciiNetlinkMessage(char *buffer, int size);
};
#endif