Searched refs:iface (Results 1 - 21 of 21) sorted by relevance

/system/netd/
H A DResolverController.cpp30 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, char** servers, int numservers) { argument
42 ALOGD("setInterfaceDnsServers iface = %s\n", iface);
45 _resolv_set_nameservers_for_iface(iface, servers, numservers);
50 int ResolverController::setInterfaceAddress(const char* iface, struct in_addr* addr) { argument
52 ALOGD("setInterfaceAddress iface
70 flushInterfaceDnsCache(const char* iface) argument
[all...]
H A 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);
H A 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);
H A DIdletimerController.h27 int addInterfaceIdletimer(const char *iface, uint32_t timeout);
28 int removeInterfaceIdletimer(const char *iface, uint32_t timeout);
35 int modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout);
H A DSecondaryTableController.h38 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 DIdletimerController.cpp54 * ndc idletimer add <iface> <timeout>
55 * ndc idletimer remove <iface> <timeout>
63 * Note that currently if the name of the iface is incorrect, iptables
150 int IdletimerController::modifyInterfaceIdletimer(IptOp op, const char *iface, argument
156 (op == IptOpAdd) ? 'A' : 'D', iface, timeout, iface);
162 (op == IptOpAdd) ? 'A' : 'D', iface, timeout, iface);
169 int IdletimerController::addInterfaceIdletimer(const char *iface, uint32_t timeout) { argument
170 return modifyInterfaceIdletimer(IptOpAdd, iface, timeou
173 removeInterfaceIdletimer(const char *iface, uint32_t timeout) argument
[all...]
H A DSoftapController.h36 int setCommand(char *iface, const char *fname, unsigned buflen=0);
41 int startDriver(char *iface);
42 int stopDriver(char *iface);
H A DNetlinkHandler.cpp57 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);
79 const char *iface = evt->findParam("INTERFACE"); local
82 notifyInterfaceActivity(iface, !strcmp("active", state));
126 void NetlinkHandler::notifyQuotaLimitReached(const char *name, const char *iface) { argument
[all...]
H A DSecondaryTableController.cpp52 int SecondaryTableController::findTableNumber(const char *iface) { argument
56 if (strncmp(iface, mInterfaceTable[i], IFNAMSIZ + 1) == 0) {
63 int SecondaryTableController::addRoute(SocketClient *cli, char *iface, char *dest, int prefix, argument
65 int tableIndex = findTableNumber(iface);
74 strncpy(mInterfaceTable[tableIndex], iface, IFNAMSIZ);
79 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex);
82 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface, argument
89 IP_PATH, action, dest, prefix, iface, tableIndex+BASE_TABLE_NUMBER);
92 IP_PATH, action, dest, prefix, gateway, iface, tableIndex+BASE_TABLE_NUMBER);
97 IP_PATH, action, dest, prefix, gateway, iface, tableInde
145 removeRoute(SocketClient *cli, char *iface, char *dest, int prefix, char *gateway) argument
175 modifyLocalRoute(int tableIndex, const char *action, const char *iface, const char *addr) argument
[all...]
H A DSoftapController.cpp59 int SoftapController::setCommand(char *iface, const char *fname, unsigned buflen) { argument
69 strncpy(wrq.ifr_name, iface, sizeof(wrq.ifr_name));
87 ALOGE("iface:%s, fname: %s - function not supported", iface, fname);
99 ALOGE("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
419 char *iface; local
[all...]
H A DThrottleController.cpp60 int ThrottleController::setInterfaceThrottle(const char *iface, int rxKbps, int txKbps) { argument
66 strncpy(ifn, iface, sizeof(ifn)-1);
149 void ThrottleController::reset(const char *iface) { argument
152 sprintf(cmd, "qdisc del dev %s root", iface);
154 sprintf(cmd, "qdisc del dev %s ingress", iface);
160 int ThrottleController::getInterfaceRxThrottle(const char *iface, int *rx) { argument
165 int ThrottleController::getInterfaceTxThrottle(const char *iface, int *tx) { argument
H A DNatController.h40 bool checkInterface(const char *iface);
H A DBandwidthController.h55 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 DNetlinkHandler.h40 void notifyQuotaLimitReached(const char *name, const char *iface);
H A DBandwidthController.cpp79 * . adding a new iface to this, E.g.:
101 * Should normally include costly_<iface>, but we rely on the way they are setup
451 * Flush the costly_<iface> is allowed to fail in case it didn't exist.
526 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { argument
541 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
594 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { argument
601 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
612 ALOGE("No such iface %s to delete", ifn);
632 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { argument
646 return removeInterfaceQuota(iface);
716 removeInterfaceQuota(const char *iface) argument
923 setInterfaceAlert(const char *iface, int64_t bytes) argument
943 removeInterfaceAlert(const char *iface) argument
[all...]
H A DMDnsSdListener.h113 void discover(SocketClient *cli, const char *iface, const char *regType,
130 int ifaceNameToI(const char *iface);
H A DCommandListener.h52 static int readInterfaceCounters(const char *iface, unsigned long *rx, unsigned long *tx);
H A DNatController.cpp111 bool NatController::checkInterface(const char *iface) { argument
112 if (strlen(iface) > IFNAMSIZ) return false;
H A DMDnsSdListener.cpp60 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 DCommandListener.cpp240 // interface route add/remove iface default/secondary dest prefix gateway
338 // arglist: iface addr prefixLength flags
343 ALOGD("Setting iface cfg");
407 // arglist: iface
812 if (!strcmp(argv[1], "setdefaultif")) { // "resolver setdefaultif <iface>"
820 } else if (!strcmp(argv[1], "setifdns")) { // "resolver setifdns <iface> <dns1> <dns2> ..."
846 } else if (!strcmp(argv[1], "flushif")) { // "resolver flushif <iface>"
868 int CommandListener::readInterfaceCounters(const char *iface, unsigned long *rx, unsigned long *tx) { argument
896 if (strcmp(name, iface)) {
984 sendGenericSyntaxError(cli, "getiquota <iface>");
[all...]
/system/core/adb/
H A Dusb_osx.c56 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);

Completed in 94 milliseconds