/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 [all...] |
H A D | ResolverController.h | 28 int setDefaultInterface(const char* iface); 29 int setInterfaceDnsServers(const char* iface, const char * domains, char** servers, 31 int setInterfaceAddress(const char* iface, struct in_addr* addr); 33 int flushInterfaceDnsCache(const char* iface); 34 int setDnsInterfaceForPid(const char* iface, int pid);
|
H A D | IdletimerController.h | 27 int addInterfaceIdletimer(const char *iface, uint32_t timeout, 29 int removeInterfaceIdletimer(const char *iface, uint32_t timeout, 40 int modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout,
|
H A D | SecondaryTableController.h | 38 int addRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway); 39 int removeRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway); 40 int findTableNumber(const char *iface); 42 int modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr); 45 int modifyRoute(SocketClient *cli, const char *action, char *iface, char *dest, int prefix,
|
H A D | SecondaryTableController.cpp | 51 int SecondaryTableController::findTableNumber(const char *iface) { argument 55 if (strncmp(iface, mInterfaceTable[i], IFNAMSIZ + 1) == 0) { 62 int SecondaryTableController::addRoute(SocketClient *cli, char *iface, char *dest, int prefix, argument 64 int tableIndex = findTableNumber(iface); 73 strncpy(mInterfaceTable[tableIndex], iface, IFNAMSIZ); 78 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex); 81 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface, argument 98 iface, 112 iface, 121 IP_PATH, action, dest, prefix, gateway, iface, tableInde 169 removeRoute(SocketClient *cli, char *iface, char *dest, int prefix, char *gateway) argument 210 modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr) argument [all...] |
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); 74 const char *iface = evt->findParam("INTERFACE"); local 75 notifyQuotaLimitReached(alertName, iface); 130 void NetlinkHandler::notifyQuotaLimitReached(const char *name, const char *iface) { argument 132 snprintf(msg, sizeof(msg), "limit alert %s %s", name, iface);
|
H A D | DnsProxyListener.cpp | 52 char* iface, 58 mIface(iface), 192 char* iface = argv[7]; local 193 if (strcmp(iface, "^") == 0) { 194 iface = NULL; 196 iface = strdup(iface); 219 iface ? iface : "[nulliface]", 225 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, iface, pi 48 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints, char* iface, pid_t pid) argument 255 char* iface = argv[1]; local 279 GetHostByNameHandler(SocketClient* c, pid_t pid, char* iface, char* name, int af) argument 316 char iface[IF_NAMESIZE + 1]; local 374 char* iface = argv[4]; local 403 GetHostByAddrHandler(SocketClient* c, void* address, int addressLen, int addressFamily, char* iface, pid_t pid) argument [all...] |
H A D | BandwidthController.h | 55 int setInterfaceSharedQuota(const char *iface, int64_t bytes); 57 int removeInterfaceSharedQuota(const char *iface); 59 int setInterfaceQuota(const char *iface, int64_t bytes); 60 int getInterfaceQuota(const char *iface, int64_t *bytes); 61 int removeInterfaceQuota(const char *iface); 74 int setInterfaceAlert(const char *iface, int64_t bytes); 75 int removeInterfaceAlert(const char *iface);
|
H A D | DnsProxyListener.h | 44 char* iface, 73 char *iface, 102 char* iface,
|
H A D | NatController.h | 43 bool checkInterface(const char *iface);
|
H A D | NetlinkHandler.h | 40 void notifyQuotaLimitReached(const char *name, const char *iface);
|
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 | BandwidthController.cpp | 79 * . adding a new iface to this, E.g.: 101 * Should normally include costly_<iface>, but we rely on the way they are setup 421 * Flush the costly_<iface> is allowed to fail in case it didn't exist. 496 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { argument 511 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { 564 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { argument 571 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { 582 ALOGE("No such iface %s to delete", ifn); 602 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { argument 616 return removeInterfaceQuota(iface); 692 removeInterfaceQuota(const char *iface) argument 900 setInterfaceAlert(const char *iface, int64_t bytes) argument 920 removeInterfaceAlert(const char *iface) argument [all...] |
H A D | MDnsSdListener.h | 113 void discover(SocketClient *cli, const char *iface, const char *regType, 130 int ifaceNameToI(const char *iface);
|
H A D | NatController.cpp | 92 bool NatController::checkInterface(const char *iface) { argument 93 if (strlen(iface) > IFNAMSIZ) return false; 163 ALOGE("Error seting postroute rule: iface=%s", extIface);
|
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 | CommandListener.cpp | 258 // interface route add/remove iface default/secondary dest prefix gateway 356 // arglist: iface [addr prefixLength] flags 361 ALOGD("Setting iface cfg"); 427 // arglist: iface 779 if (!strcmp(argv[1], "setdefaultif")) { // "resolver setdefaultif <iface>" 788 // "resolver setifdns <iface> <domains> <dns1> <dns2> ..." 814 } else if (!strcmp(argv[1], "flushif")) { // "resolver flushif <iface>" 822 } else if (!strcmp(argv[1], "setifaceforpid")) { // resolver setifaceforpid <iface> <pid> 927 sendGenericSyntaxError(cli, "getiquota <iface>"); 1257 const char* iface local [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);
|