/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 108 clearDnsInterfaceForUidRange(const char* iface, int uid_start, int uid_end) argument [all...] |
H A D | ResolverController.h | 28 int setDefaultInterface(const char* iface); 29 int setInterfaceDnsServers(const char* iface, const char * domains, const 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); 36 int setDnsInterfaceForUidRange(const char* iface, int uid_start, int uid_end); 37 int clearDnsInterfaceForUidRange(const char* iface, int uid_start, int uid_end);
|
H A D | SecondaryTableController.h | 42 int addRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway); 43 int removeRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway); 44 int findTableNumber(const char *iface); 46 int modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr); 47 int addUidRule(const char *iface, int uid_start, int uid_end); 48 int removeUidRule(const char *iface, int uid_start, int uid_end); 49 int addFwmarkRule(const char *iface); 50 int removeFwmarkRule(const char *iface); 51 int addFwmarkRoute(const char* iface, const char *dest, int prefix); 52 int removeFwmarkRoute(const char* iface, cons [all...] |
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.cpp | 94 int SecondaryTableController::findTableNumber(const char *iface) { argument 98 if (strncmp(iface, mInterfaceTable[i], IFNAMSIZ + 1) == 0) { 105 int SecondaryTableController::addRoute(SocketClient *cli, char *iface, char *dest, int prefix, argument 107 int tableIndex = findTableNumber(iface); 116 strncpy(mInterfaceTable[tableIndex], iface, IFNAMSIZ); 121 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex); 124 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface, argument 141 iface, 155 iface, 164 IP_PATH, action, dest, prefix, gateway, iface, tableInde 220 removeRoute(SocketClient *cli, char *iface, char *dest, int prefix, char *gateway) argument 261 modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr) argument 286 addFwmarkRule(const char *iface) argument 290 removeFwmarkRule(const char *iface) argument 294 setFwmarkRule(const char *iface, bool add) argument 454 addFwmarkRoute(const char* iface, const char *dest, int prefix) argument 458 removeFwmarkRoute(const char* iface, const char *dest, int prefix) argument 462 setFwmarkRoute(const char* iface, const char *dest, int prefix, bool add) argument 492 addUidRule(const char *iface, int uid_start, int uid_end) argument 496 removeUidRule(const char *iface, int uid_start, int uid_end) argument 500 setUidRule(const char *iface, int uid_start, int uid_end, bool add) 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); 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), 202 char* iface = argv[7]; local 203 if (strcmp(iface, "^") == 0) { 204 iface = NULL; 206 iface = strdup(iface); 230 iface ? iface : "[nulliface]", 236 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, iface, pi 50 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints, char* iface, pid_t pid, uid_t uid, int mark) argument 269 char* iface = argv[1]; local 294 GetHostByNameHandler(SocketClient* c, pid_t pid, uid_t uid, char* iface, char* name, int af, int mark) argument 335 char iface[IF_NAMESIZE + 1]; local 397 char* iface = argv[4]; local 427 GetHostByAddrHandler(SocketClient* c, void* address, int addressLen, int addressFamily, char* iface, pid_t pid, uid_t uid, int mark) argument [all...] |
H A D | NetlinkHandler.h | 40 void notifyQuotaLimitReached(const char *name, const char *iface); 42 void notifyAddressChanged(int action, const char *addr, const char *iface,
|
H A D | BandwidthController.h | 59 int setInterfaceSharedQuota(const char *iface, int64_t bytes); 61 int removeInterfaceSharedQuota(const char *iface); 63 int setInterfaceQuota(const char *iface, int64_t bytes); 64 int getInterfaceQuota(const char *iface, int64_t *bytes); 65 int removeInterfaceQuota(const char *iface); 82 int setInterfaceAlert(const char *iface, int64_t bytes); 83 int removeInterfaceAlert(const char *iface);
|
H A D | NatController.h | 44 bool checkInterface(const char *iface);
|
H A D | DnsProxyListener.h | 48 char* iface, 84 char *iface, 118 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 | 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...] |
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 | 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 | 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 | 268 // interface route add/remove iface default/secondary dest prefix gateway 269 // interface fwmark rule add/remove iface 270 // interface fwmark route add/remove iface dest prefix 271 // interface fwmark uid add/remove iface uid_start uid_end 501 // arglist: iface [addr prefixLength] flags 506 ALOGD("Setting iface cfg"); 572 // arglist: iface 950 if (!strcmp(argv[1], "setdefaultif")) { // "resolver setdefaultif <iface>" 959 // "resolver setifdns <iface> <domains> <dns1> <dns2> ..." 985 } else if (!strcmp(argv[1], "flushif")) { // "resolver flushif <iface>" 1483 const char* iface = argv[2]; 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);
|