Home
last modified time | relevance | path

Searched refs:tableIndex (Results 1 – 2 of 2) sorted by relevance

/system/netd/
DSecondaryTableController.cpp65 int tableIndex = findTableNumber(iface); in addRoute() local
66 if (tableIndex == -1) { in addRoute()
67 tableIndex = findTableNumber(""); // look for an empty slot in addRoute()
68 if (tableIndex == -1) { in addRoute()
74 strncpy(mInterfaceTable[tableIndex], iface, IFNAMSIZ); in addRoute()
76 mInterfaceTable[tableIndex][IFNAMSIZ] = 0; in addRoute()
79 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex); in addRoute()
83 char *dest, int prefix, char *gateway, int tableIndex) { in modifyRoute() argument
89 IP_PATH, action, dest, prefix, iface, tableIndex+BASE_TABLE_NUMBER); in modifyRoute()
92 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER); in modifyRoute()
[all …]
DSecondaryTableController.h41 int modifyFromRule(int tableIndex, const char *action, const char *addr);
42 int modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr);
46 char *gateway, int tableIndex);
50 void modifyRuleCount(int tableIndex, const char *action);
51 int verifyTableIndex(int tableIndex);