Add FwmarkServer support for querying whether a UID can access a NetID
This new FwmarkServer API is only accessible from system apps.
Bug:20470604
Change-Id: Ie2376cdddc10f658fcc5802ef3e8dc9f1948d5c0
diff --git a/client/FwmarkClient.h b/client/FwmarkClient.h
index 620275e..df7686d 100644
--- a/client/FwmarkClient.h
+++ b/client/FwmarkClient.h
@@ -19,6 +19,8 @@
#include <sys/socket.h>
+struct FwmarkCommand;
+
class FwmarkClient {
public:
// Returns true if a socket of the given |family| should be sent to the fwmark server to have
@@ -30,7 +32,7 @@
// Sends |data| to the fwmark server, along with |fd| as ancillary data using cmsg(3).
// Returns 0 on success or a negative errno value on failure.
- int send(void* data, size_t len, int fd);
+ int send(FwmarkCommand* data, int fd);
private:
int mChannel;