summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-01-16 01:11:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-16 01:11:02 +0000
commit9f72ef8944a93bd333c6c7f87c7f7d79207ae663 (patch)
treedbf08a4059fbbf4d838802fbddba9b9ad242e80f /include
parent17e2f436f0da70673498482921a642c8917677aa (diff)
parent9a20e67fa62c1e0e0080910deec4be82ebecc922 (diff)
downloadsystem_core-9f72ef8944a93bd333c6c7f87c7f7d79207ae663.zip
system_core-9f72ef8944a93bd333c6c7f87c7f7d79207ae663.tar.gz
system_core-9f72ef8944a93bd333c6c7f87c7f7d79207ae663.tar.bz2
Merge "Extend to receive NFLOG packets."
Diffstat (limited to 'include')
-rw-r--r--include/cutils/uevent.h1
-rw-r--r--include/sysutils/NetlinkEvent.h1
-rw-r--r--include/sysutils/NetlinkListener.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/cutils/uevent.h b/include/cutils/uevent.h
index 4cca7e5..da1c2aa 100644
--- a/include/cutils/uevent.h
+++ b/include/cutils/uevent.h
@@ -27,6 +27,7 @@ extern "C" {
int uevent_open_socket(int buf_sz, bool passcred);
ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
+ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
#ifdef __cplusplus
}
diff --git a/include/sysutils/NetlinkEvent.h b/include/sysutils/NetlinkEvent.h
index c345cdb..4fa49c5 100644
--- a/include/sysutils/NetlinkEvent.h
+++ b/include/sysutils/NetlinkEvent.h
@@ -57,6 +57,7 @@ public:
bool parseIfInfoMessage(const struct nlmsghdr *nh);
bool parseIfAddrMessage(const struct nlmsghdr *nh);
bool parseUlogPacketMessage(const struct nlmsghdr *nh);
+ bool parseNfPacketMessage(struct nlmsghdr *nh);
bool parseRtMessage(const struct nlmsghdr *nh);
bool parseNdUserOptMessage(const struct nlmsghdr *nh);
};
diff --git a/include/sysutils/NetlinkListener.h b/include/sysutils/NetlinkListener.h
index 6e52c3b..82465d6 100644
--- a/include/sysutils/NetlinkListener.h
+++ b/include/sysutils/NetlinkListener.h
@@ -27,6 +27,7 @@ class NetlinkListener : public SocketListener {
public:
static const int NETLINK_FORMAT_ASCII = 0;
static const int NETLINK_FORMAT_BINARY = 1;
+ static const int NETLINK_FORMAT_BINARY_UNICAST = 2;
#if 1
/* temporary version until we can get Motorola to update their