Make uid marking rule's API consistent
Make the netd binds for adding uid iptables mark rules consistent with
the other per uid range binds.
Change-Id: I97d1576f4ac11368bf6ede866229e456a2ed24da
diff --git a/SecondaryTableController.h b/SecondaryTableController.h
index d29198d..3941ba1 100644
--- a/SecondaryTableController.h
+++ b/SecondaryTableController.h
@@ -40,8 +40,8 @@
int findTableNumber(const char *iface);
int modifyFromRule(int tableIndex, const char *action, const char *addr);
int modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr);
- int addUidRule(const char *iface, const char *uid);
- int removeUidRule(const char *iface, const char *uid);
+ int addUidRule(const char *iface, int uid_start, int uid_end);
+ int removeUidRule(const char *iface, int uid_start, int uid_end);
int addFwmarkRule(const char *iface);
int removeFwmarkRule(const char *iface);
@@ -50,7 +50,7 @@
private:
- int setUidRule(const char* iface, const char *uid, bool add);
+ int setUidRule(const char* iface, int uid_start, int uid_end, bool add);
int setFwmarkRule(const char *iface, bool add);
int modifyRoute(SocketClient *cli, const char *action, char *iface, char *dest, int prefix,
char *gateway, int tableIndex);