Home
last modified time | relevance | path

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

/system/netd/server/
DNetlinkHandler.cpp62 const char *iface = evt->findParam("INTERFACE"); in onEvent() local
65 notifyInterfaceAdded(iface); in onEvent()
67 notifyInterfaceRemoved(iface); in onEvent()
72 notifyInterfaceLinkChanged(iface, true); in onEvent()
74 notifyInterfaceLinkChanged(iface, false); in onEvent()
80 if (action == evt->NlActionAddressRemoved && iface && address) { in onEvent()
83 if (int ret = ifc_reset_connections(iface, resetMask)) { in onEvent()
84 ALOGE("ifc_reset_connections failed on iface %s for address %s (%s)", iface, in onEvent()
88 if (iface && flags && scope) { in onEvent()
89 notifyAddressChanged(action, address, iface, flags, scope); in onEvent()
[all …]
DIdletimerController.cpp189 int IdletimerController::modifyInterfaceIdletimer(IptOp op, const char *iface, in modifyInterfaceIdletimer() argument
195 if (!isIfaceName(iface)) { in modifyInterfaceIdletimer()
209 iface, in modifyInterfaceIdletimer()
231 iface, in modifyInterfaceIdletimer()
246 int IdletimerController::addInterfaceIdletimer(const char *iface, in addInterfaceIdletimer() argument
249 return modifyInterfaceIdletimer(IptOpAdd, iface, timeout, classLabel); in addInterfaceIdletimer()
252 int IdletimerController::removeInterfaceIdletimer(const char *iface, in removeInterfaceIdletimer() argument
255 return modifyInterfaceIdletimer(IptOpDelete, iface, timeout, classLabel); in removeInterfaceIdletimer()
DNetlinkHandler.h41 void notifyQuotaLimitReached(const char *name, const char *iface);
44 void notifyAddressChanged(int action, const char *addr, const char *iface,
46 void notifyInterfaceDnsServers(const char *iface, const char *lifetime,
48 void notifyRouteChange(int action, const char *route, const char *gateway, const char *iface);
DIdletimerController.h27 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,
DBandwidthController.h59 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);
DBandwidthController.cpp596 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument
610 if (!isIfaceName(iface)) in setInterfaceSharedQuota()
612 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in setInterfaceSharedQuota()
665 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { in removeInterfaceSharedQuota() argument
672 if (!isIfaceName(iface)) in removeInterfaceSharedQuota()
674 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in removeInterfaceSharedQuota()
705 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { in setInterfaceQuota() argument
713 if (!isIfaceName(iface)) in setInterfaceQuota()
722 return removeInterfaceQuota(iface); in setInterfaceQuota()
725 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in setInterfaceQuota()
[all …]
DFirewallController.cpp71 int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { in setInterfaceRule() argument
72 if (!isIfaceName(iface)) { in setInterfaceRule()
85 res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL); in setInterfaceRule()
86 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-o", iface, "-j", "RETURN", NULL); in setInterfaceRule()
DMDnsSdListener.h113 void discover(SocketClient *cli, const char *iface, const char *regType,
130 int ifaceNameToI(const char *iface);
DMDnsSdListener.cpp60 const char *iface, in discover() argument
66 ALOGD("discover(%s, %s, %s, %d, %d)", iface, regType, domain, requestId, in discover()
79 int interfaceInt = ifaceNameToI(iface); in discover()
DCommandListener.cpp1279 const char* iface = argv[2]; in runCommand() local
1282 int res = sFirewallCtrl->setInterfaceRule(iface, rule); in runCommand()
/system/core/adb/
Dusb_osx.c56 static usb_handle* CheckInterface(IOUSBInterfaceInterface **iface,
124 IOUSBInterfaceInterface220 **iface = NULL; in AndroidInterfaceAdded() local
151 &iface); in AndroidInterfaceAdded()
154 if (result || !iface) { in AndroidInterfaceAdded()
163 kr = (*iface)->GetDevice(iface, &usbDevice); in AndroidInterfaceAdded()
258 usb_handle* handle = CheckInterface((IOUSBInterfaceInterface**)iface, in AndroidInterfaceAdded()
262 (*iface)->Release(iface); in AndroidInterfaceAdded()