Home
last modified time | relevance | path

Searched refs:iface (Results 1 – 15 of 15) sorted by relevance

/system/netd/
DResolverController.cpp27 int ResolverController::setDefaultInterface(const char* iface) { in setDefaultInterface() argument
29 LOGD("setDefaultInterface iface = %s\n", iface); in setDefaultInterface()
32 _resolv_set_default_iface(iface); in setDefaultInterface()
37 int ResolverController::setInterfaceDnsServers(const char* iface, char** servers, int numservers) { in setInterfaceDnsServers() argument
39 LOGD("setInterfaceDnsServers iface = %s\n", iface); in setInterfaceDnsServers()
42 _resolv_set_nameservers_for_iface(iface, servers, numservers); in setInterfaceDnsServers()
47 int ResolverController::setInterfaceAddress(const char* iface, struct in_addr* addr) { in setInterfaceAddress() argument
49 LOGD("setInterfaceAddress iface = %s\n", iface); in setInterfaceAddress()
52 _resolv_set_addr_of_iface(iface, addr); in setInterfaceAddress()
67 int ResolverController::flushInterfaceDnsCache(const char* iface) { in flushInterfaceDnsCache() argument
[all …]
DSoftapController.cpp59 int SoftapController::setCommand(char *iface, const char *fname, unsigned buflen) { in setCommand() argument
69 strncpy(wrq.ifr_name, iface, sizeof(wrq.ifr_name)); in setCommand()
87 LOGE("iface:%s, fname: %s - function not supported", iface, fname); in setCommand()
99 LOGE("iface:%s, fname: %s - invalid private ioctl", iface, fname); in setCommand()
106 strncpy(wrq.ifr_name, iface, sizeof(wrq.ifr_name)); in setCommand()
118 int SoftapController::startDriver(char *iface) { in startDriver() argument
125 if (!iface || (iface[0] == '\0')) { in startDriver()
127 iface = mIface; in startDriver()
131 ret = setCommand(iface, "START"); in startDriver()
138 ret = ifc_up(iface); in startDriver()
[all …]
DNetlinkHandler.cpp57 const char *iface = evt->findParam("INTERFACE"); in onEvent() local
60 notifyInterfaceAdded(iface); in onEvent()
62 notifyInterfaceRemoved(iface); in onEvent()
67 notifyInterfaceLinkChanged(iface, true); in onEvent()
69 notifyInterfaceLinkChanged(iface, false); in onEvent()
73 const char *iface = evt->findParam("INTERFACE"); in onEvent() local
74 notifyQuotaLimitReached(alertName, iface); in onEvent()
113 void NetlinkHandler::notifyQuotaLimitReached(const char *name, const char *iface) { in notifyQuotaLimitReached() argument
115 snprintf(msg, sizeof(msg), "limit alert %s %s", name, iface); in notifyQuotaLimitReached()
DThrottleController.h22 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);
DResolverController.h28 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);
DThrottleController.cpp61 int ThrottleController::setInterfaceThrottle(const char *iface, int rxKbps, int txKbps) { in setInterfaceThrottle() argument
67 strncpy(ifn, iface, sizeof(ifn)-1); in setInterfaceThrottle()
150 void ThrottleController::reset(const char *iface) { in reset() argument
153 sprintf(cmd, "qdisc del dev %s root", iface); in reset()
155 sprintf(cmd, "qdisc del dev %s ingress", iface); in reset()
161 int ThrottleController::getInterfaceRxThrottle(const char *iface, int *rx) { in getInterfaceRxThrottle() argument
166 int ThrottleController::getInterfaceTxThrottle(const char *iface, int *tx) { in getInterfaceTxThrottle() argument
DSoftapController.h37 int setCommand(char *iface, const char *fname, unsigned buflen=0);
42 int startDriver(char *iface);
43 int stopDriver(char *iface);
DBandwidthController.h52 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);
DBandwidthController.cpp432 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument
447 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in setInterfaceSharedQuota()
500 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { in removeInterfaceSharedQuota() argument
507 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in removeInterfaceSharedQuota()
538 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { in setInterfaceQuota() argument
552 return removeInterfaceQuota(iface); in setInterfaceQuota()
555 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in setInterfaceQuota()
560 costName = iface; in setInterfaceQuota()
582 LOGE("Failed update quota for %s", iface); in setInterfaceQuota()
622 int BandwidthController::removeInterfaceQuota(const char *iface) { in removeInterfaceQuota() argument
[all …]
DNatController.h38 bool interfaceExists(const char *iface);
DNetlinkHandler.h40 void notifyQuotaLimitReached(const char *name, const char *iface);
DNatController.cpp75 bool NatController::interfaceExists(const char *iface) { in interfaceExists() argument
DCommandListener.h48 static int readInterfaceCounters(const char *iface, unsigned long *rx, unsigned long *tx);
DCommandListener.cpp820 int CommandListener::readInterfaceCounters(const char *iface, unsigned long *rx, unsigned long *tx)… in readInterfaceCounters() argument
848 if (strcmp(name, iface)) { in readInterfaceCounters()
/system/core/adb/
Dusb_osx.c56 static usb_handle* CheckInterface(IOUSBInterfaceInterface **iface,
124 IOUSBInterfaceInterface220 **iface = NULL; in AndroidInterfaceAdded() local
148 &iface); in AndroidInterfaceAdded()
151 if (result || !iface) { in AndroidInterfaceAdded()
160 kr = (*iface)->GetDevice(iface, &usbDevice); in AndroidInterfaceAdded()
250 usb_handle* handle = CheckInterface((IOUSBInterfaceInterface**)iface, in AndroidInterfaceAdded()
254 (*iface)->Release(iface); in AndroidInterfaceAdded()