/system/netd/ |
H A D | ResolverController.cpp | 30 int ResolverController::setDefaultInterface(const char* iface) { argument 32 ALOGD("setDefaultInterface iface = %s\n", iface); 35 _resolv_set_default_iface(iface); 40 int ResolverController::setInterfaceDnsServers(const char* iface, const char* domains, argument 43 ALOGD("setInterfaceDnsServers iface = %s\n", iface); 45 _resolv_set_nameservers_for_iface(iface, servers, numservers, domains); 50 int ResolverController::setInterfaceAddress(const char* iface, struct in_addr* addr) { argument 52 ALOGD("setInterfaceAddress iface 70 flushInterfaceDnsCache(const char* iface) argument 80 setDnsInterfaceForPid(const char* iface, int pid) argument 100 setDnsInterfaceForUidRange(const char* iface, int uid_start, int uid_end) argument [all...] |
H A D | FirewallController.cpp | 71 int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { argument 80 res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL); 81 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-o", iface, "-j", "RETURN", NULL);
|
H A D | IdletimerController.cpp | 55 * ndc idletimer add <iface> <timeout> <class label> 56 * ndc idletimer remove <iface> <timeout> <class label> 86 * Note that currently if the name of the iface is incorrect, iptables 173 int IdletimerController::modifyInterfaceIdletimer(IptOp op, const char *iface, argument 188 iface, 210 iface, 225 int IdletimerController::addInterfaceIdletimer(const char *iface, argument 228 return modifyInterfaceIdletimer(IptOpAdd, iface, timeout, classLabel); 231 int IdletimerController::removeInterfaceIdletimer(const char *iface, argument 234 return modifyInterfaceIdletimer(IptOpDelete, iface, timeou [all...] |
H A D | NetlinkHandler.cpp | 57 const char *iface = evt->findParam("INTERFACE"); local 60 notifyInterfaceAdded(iface); 62 notifyInterfaceRemoved(iface); 67 notifyInterfaceLinkChanged(iface, true); 69 notifyInterfaceLinkChanged(iface, false); 75 if (iface && flags && scope) { 76 notifyAddressChanged(action, address, iface, flags, scope); 82 const char *iface = evt->findParam("INTERFACE"); local 83 notifyQuotaLimitReached(alertName, iface); 138 void NetlinkHandler::notifyQuotaLimitReached(const char *name, const char *iface) { argument 157 notifyAddressChanged(int action, const char *addr, const char *iface, const char *flags, const char *scope) argument [all...] |
H A D | DnsProxyListener.cpp | 54 char* iface, 62 mIface(iface), 137 mark = -1; // if we don't have a targeted iface don't use a mark 203 char* iface = argv[7]; local 204 if (strcmp(iface, "^") == 0) { 205 iface = NULL; 207 iface = strdup(iface); 231 iface ? iface 50 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints, char* iface, pid_t pid, uid_t uid, int mark) argument 270 char* iface = argv[1]; local 295 GetHostByNameHandler(SocketClient* c, pid_t pid, uid_t uid, char* iface, char* name, int af, int mark) argument 336 char iface[IF_NAMESIZE + 1]; local 398 char* iface = argv[4]; local 428 GetHostByAddrHandler(SocketClient* c, void* address, int addressLen, int addressFamily, char* iface, pid_t pid, uid_t uid, int mark) argument [all...] |
H A D | NatController.cpp | 135 bool NatController::checkInterface(const char *iface) { argument 136 if (strlen(iface) > IFNAMSIZ) return false; 215 ALOGE("Error seting postroute rule: iface=%s", extIface); 269 /* quota for iface pair already exists */ 304 /* quota for iface pair already exists */
|
H A D | SecondaryTableController.cpp | 104 int SecondaryTableController::findTableNumber(const char *iface) { argument 108 if (strncmp(iface, mInterfaceTable[i], IFNAMSIZ + 1) == 0) { 115 int SecondaryTableController::addRoute(SocketClient *cli, char *iface, char *dest, int prefix, argument 117 int tableIndex = findTableNumber(iface); 126 strncpy(mInterfaceTable[tableIndex], iface, IFNAMSIZ); 131 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex); 134 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface, argument 151 iface, 165 iface, 174 IP_PATH, action, dest, prefix, gateway, iface, tableInde 230 removeRoute(SocketClient *cli, char *iface, char *dest, int prefix, char *gateway) argument 271 modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr) argument 296 addFwmarkRule(const char *iface) argument 300 removeFwmarkRule(const char *iface) argument 304 setFwmarkRule(const char *iface, bool add) argument 533 addFwmarkRoute(const char* iface, const char *dest, int prefix) argument 537 removeFwmarkRoute(const char* iface, const char *dest, int prefix) argument 541 setFwmarkRoute(const char* iface, const char *dest, int prefix, bool add) argument 570 addUidRule(const char *iface, int uid_start, int uid_end) argument 574 removeUidRule(const char *iface, int uid_start, int uid_end) argument 578 setUidRule(const char *iface, int uid_start, int uid_end, bool add) argument [all...] |
H A D | CommandListener.cpp | 270 // interface route add/remove iface default/secondary dest prefix gateway 271 // interface fwmark rule add/remove iface 272 // interface fwmark route add/remove iface dest prefix 273 // interface fwmark uid add/remove iface uid_start uid_end 503 // arglist: iface [addr prefixLength] flags 508 ALOGD("Setting iface cfg"); 574 // arglist: iface 952 if (!strcmp(argv[1], "setdefaultif")) { // "resolver setdefaultif <iface>" 961 // "resolver setifdns <iface> <domains> <dns1> <dns2> ..." 987 } else if (!strcmp(argv[1], "flushif")) { // "resolver flushif <iface>" 1483 const char* iface = argv[2]; local [all...] |
H A D | MDnsSdListener.cpp | 60 const char *iface, 66 ALOGD("discover(%s, %s, %s, %d, %d)", iface, regType, domain, requestId, 79 int interfaceInt = ifaceNameToI(iface); 376 int MDnsSdListener::Handler::ifaceNameToI(const char *iface) { argument 59 discover(SocketClient *cli, const char *iface, const char *regType, const char *domain, const int requestId, const int requestFlags) argument
|
H A D | BandwidthController.cpp | 84 * . adding a new iface to this, E.g.: 112 * Should normally include bw_costly_<iface>, but we rely on the way they are setup 227 /* Flush and remove the bw_costly_<iface> tables */ 518 * Flush the bw_costly_<iface> is allowed to fail in case it didn't exist. 593 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { argument 608 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { 661 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { argument 668 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { 679 ALOGE("No such iface %s to delete", ifn); 699 int BandwidthController::setInterfaceQuota(const char *iface, int64_ argument 789 removeInterfaceQuota(const char *iface) argument 997 setInterfaceAlert(const char *iface, int64_t bytes) argument 1017 removeInterfaceAlert(const char *iface) argument [all...] |
/system/core/adb/ |
H A D | usb_osx.c | 56 static usb_handle* CheckInterface(IOUSBInterfaceInterface **iface, 124 IOUSBInterfaceInterface220 **iface = NULL; local 151 &iface); 154 if (result || !iface) { 163 kr = (*iface)->GetDevice(iface, &usbDevice); 258 usb_handle* handle = CheckInterface((IOUSBInterfaceInterface**)iface, 262 (*iface)->Release(iface);
|