Lines Matching refs:action
82 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface,
89 IP_PATH, action, dest, prefix, iface, tableIndex+BASE_TABLE_NUMBER);
92 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
96 ALOGE("ip route %s failed: %s route %s %s/%d via %s dev %s table %d", action,
97 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
103 if (strcmp(action, ADD) == 0) {
111 modifyRuleCount(tableIndex, action);
116 void SecondaryTableController::modifyRuleCount(int tableIndex, const char *action) {
117 if (strcmp(action, ADD) == 0) {
158 int SecondaryTableController::modifyFromRule(int tableIndex, const char *action,
166 action, addr, tableIndex + BASE_TABLE_NUMBER);
171 modifyRuleCount(tableIndex, action);
175 int SecondaryTableController::modifyLocalRoute(int tableIndex, const char *action,
183 modifyRuleCount(tableIndex, action); // some del's will fail as the iface is already gone.
185 asprintf(&cmd, "%s route %s %s dev %s table %d", IP_PATH, action, addr, iface,