Add netd support for marked packet forwarding
Add binds in netd for setting up fwmark rules to be used with the per
uid marking to do per uid routing.
Change-Id: Id4f315dd1aec73f074e233c2e3f70eb24b4c537a
diff --git a/SecondaryTableController.h b/SecondaryTableController.h
index 27344e4..d29198d 100644
--- a/SecondaryTableController.h
+++ b/SecondaryTableController.h
@@ -42,12 +42,16 @@
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 addFwmarkRule(const char *iface);
+ int removeFwmarkRule(const char *iface);
static const char* LOCAL_MANGLE_OUTPUT;
+ static const char* LOCAL_NAT_POSTROUTING;
private:
int setUidRule(const char* iface, const char *uid, 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);