Home | History | Annotate | Download | only in netd

Lines Matching refs:iface

52 int SecondaryTableController::findTableNumber(const char *iface) {
56 if (strncmp(iface, mInterfaceTable[i], IFNAMSIZ + 1) == 0) {
63 int SecondaryTableController::addRoute(SocketClient *cli, char *iface, char *dest, int prefix,
65 int tableIndex = findTableNumber(iface);
74 strncpy(mInterfaceTable[tableIndex], iface, IFNAMSIZ);
79 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex);
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);
97 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
145 int SecondaryTableController::removeRoute(SocketClient *cli, char *iface, char *dest, int prefix,
147 int tableIndex = findTableNumber(iface);
155 return modifyRoute(cli, DEL, iface, dest, prefix, gateway, tableIndex);
176 const char *iface, const char *addr) {
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,