/system/netd/ |
H A D | ResolverController.cpp | 27 int ResolverController::setDefaultInterface(const char* iface) { argument 29 LOGD("setDefaultInterface iface = %s\n", iface); 32 _resolv_set_default_iface(iface); 37 int ResolverController::setInterfaceDnsServers(const char* iface, char** servers, int numservers) { argument 39 LOGD("setInterfaceDnsServers iface = %s\n", iface); 42 _resolv_set_nameservers_for_iface(iface, servers, numservers); 47 int ResolverController::setInterfaceAddress(const char* iface, struct in_addr* addr) { argument 49 LOGD("setInterfaceAddress iface 67 flushInterfaceDnsCache(const char* iface) argument [all...] |
H A D | ThrottleController.h | 22 static int setInterfaceThrottle(const char *iface, int rxKbps, int txKbps); 23 static int getInterfaceRxThrottle(const char *iface, int *rx); 24 static int getInterfaceTxThrottle(const char *iface, int *tx); 28 static void reset(const char *iface);
|
H A D | ResolverController.h | 28 int setDefaultInterface(const char* iface); 29 int setInterfaceDnsServers(const char* iface, char** servers, int numservers); 30 int setInterfaceAddress(const char* iface, struct in_addr* addr); 32 int flushInterfaceDnsCache(const char* iface);
|
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); 43 int modifyRoute(SocketClient *cli, char *action, char *iface, char *dest, int prefix,
|
H A D | SecondaryTableController.cpp | 55 int SecondaryTableController::findTableNumber(const char *iface) { argument 59 if (strncmp(iface, mInterfaceTable[i], IFNAMSIZ + 1) == 0) { 66 int SecondaryTableController::addRoute(SocketClient *cli, char *iface, char *dest, int prefix, argument 68 int tableIndex = findTableNumber(iface); 77 strncpy(mInterfaceTable[tableIndex], iface, IFNAMSIZ); 82 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex); 85 int SecondaryTableController::modifyRoute(SocketClient *cli, char *action, char *iface, char *dest, argument 92 IP_PATH, action, dest, prefix, iface, tableIndex+BASE_TABLE_NUMBER); 95 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER); 100 IP_PATH, action, dest, prefix, gateway, iface, tableInde 118 removeRoute(SocketClient *cli, char *iface, char *dest, int prefix, char *gateway) argument [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); 73 const char *iface = evt->findParam("INTERFACE"); local 74 notifyQuotaLimitReached(alertName, iface); 113 void NetlinkHandler::notifyQuotaLimitReached(const char *name, const char *iface) { argument 115 snprintf(msg, sizeof(msg), "limit alert %s %s", name, iface);
|
H A D | SoftapController.h | 37 int setCommand(char *iface, const char *fname, unsigned buflen=0); 42 int startDriver(char *iface); 43 int stopDriver(char *iface);
|
H A D | SoftapController.cpp | 59 int SoftapController::setCommand(char *iface, const char *fname, unsigned buflen) { argument 69 strncpy(wrq.ifr_name, iface, sizeof(wrq.ifr_name)); 87 LOGE("iface:%s, fname: %s - function not supported", iface, fname); 99 LOGE("iface:%s, fname: %s - invalid private ioctl", iface, fname); 106 strncpy(wrq.ifr_name, iface, sizeof(wrq.ifr_name)); 118 int SoftapController::startDriver(char *iface) { argument 125 if (!iface || (iface[ 146 stopDriver(char *iface) argument 271 char *ssid, *iface; local 418 char *iface; local [all...] |
H A D | ThrottleController.cpp | 61 int ThrottleController::setInterfaceThrottle(const char *iface, int rxKbps, int txKbps) { argument 67 strncpy(ifn, iface, sizeof(ifn)-1); 150 void ThrottleController::reset(const char *iface) { argument 153 sprintf(cmd, "qdisc del dev %s root", iface); 155 sprintf(cmd, "qdisc del dev %s ingress", iface); 161 int ThrottleController::getInterfaceRxThrottle(const char *iface, int *rx) { argument 166 int ThrottleController::getInterfaceTxThrottle(const char *iface, int *tx) { argument
|
H A D | NatController.h | 41 bool checkInterface(const char *iface);
|
H A D | NetlinkHandler.h | 40 void notifyQuotaLimitReached(const char *name, const char *iface);
|
H A D | BandwidthController.h | 52 int setInterfaceSharedQuota(const char *iface, int64_t bytes); 54 int removeInterfaceSharedQuota(const char *iface); 56 int setInterfaceQuota(const char *iface, int64_t bytes); 57 int getInterfaceQuota(const char *iface, int64_t *bytes); 58 int removeInterfaceQuota(const char *iface); 71 int setInterfaceAlert(const char *iface, int64_t bytes); 72 int removeInterfaceAlert(const char *iface);
|
H A D | BandwidthController.cpp | 81 * . adding a new iface to this, E.g.: 108 "-X", /* Should normally only be costly_shared, penalty_box, and costly_<iface> */ 437 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { argument 452 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { 505 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { argument 512 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { 523 LOGE("No such iface %s to delete", ifn); 543 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { argument 557 return removeInterfaceQuota(iface); 560 if (StrncpyAndCheck(ifn, iface, sizeo 627 removeInterfaceQuota(const char *iface) argument 834 setInterfaceAlert(const char *iface, int64_t bytes) argument 854 removeInterfaceAlert(const char *iface) argument [all...] |
H A D | CommandListener.h | 50 static int readInterfaceCounters(const char *iface, unsigned long *rx, unsigned long *tx);
|
H A D | NatController.cpp | 91 bool NatController::checkInterface(const char *iface) { argument 92 if (strlen(iface) > IFNAMSIZ) return false;
|
H A D | CommandListener.cpp | 210 // interface route add/remove iface default/secondary dest prefix gateway 308 // arglist: iface addr prefixLength [flags] 313 LOGD("Setting iface cfg"); 386 // arglist: iface 791 if (!strcmp(argv[1], "setdefaultif")) { // "resolver setdefaultif <iface>" 799 } else if (!strcmp(argv[1], "setifdns")) { // "resolver setifdns <iface> <dns1> <dns2> ..." 825 } else if (!strcmp(argv[1], "flushif")) { // "resolver flushif <iface>" 847 int CommandListener::readInterfaceCounters(const char *iface, unsigned long *rx, unsigned long *tx) { argument 875 if (strcmp(name, iface)) { 963 sendGenericSyntaxError(cli, "getiquota <iface>"); [all...] |
/system/core/adb/ |
H A D | usb_osx.c | 56 static usb_handle* CheckInterface(IOUSBInterfaceInterface **iface, 124 IOUSBInterfaceInterface220 **iface = NULL; local 148 &iface); 151 if (result || !iface) { 160 kr = (*iface)->GetDevice(iface, &usbDevice); 250 usb_handle* handle = CheckInterface((IOUSBInterfaceInterface**)iface, 254 (*iface)->Release(iface);
|