/system/netd/server/ |
D | NetlinkHandler.cpp | 62 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 == NetlinkEvent::Action::kAddressRemoved && 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 …]
|
D | IdletimerController.cpp | 191 int IdletimerController::modifyInterfaceIdletimer(IptOp op, const char *iface, in modifyInterfaceIdletimer() argument 197 if (!isIfaceName(iface)) { in modifyInterfaceIdletimer() 212 iface, in modifyInterfaceIdletimer() 235 iface, in modifyInterfaceIdletimer() 250 int IdletimerController::addInterfaceIdletimer(const char *iface, in addInterfaceIdletimer() argument 253 return modifyInterfaceIdletimer(IptOpAdd, iface, timeout, classLabel); in addInterfaceIdletimer() 256 int IdletimerController::removeInterfaceIdletimer(const char *iface, in removeInterfaceIdletimer() argument 259 return modifyInterfaceIdletimer(IptOpDelete, iface, timeout, classLabel); in removeInterfaceIdletimer()
|
D | NetlinkHandler.h | 42 void notifyQuotaLimitReached(const char *name, const char *iface); 45 void notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface, 47 void notifyInterfaceDnsServers(const char *iface, const char *lifetime, 49 …outeChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface);
|
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,
|
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);
|
D | BandwidthController.cpp | 596 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 …]
|
D | FirewallController.cpp | 130 int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { in setInterfaceRule() argument 136 if (!isIfaceName(iface)) { in setInterfaceRule() 149 res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL); in setInterfaceRule() 150 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-o", iface, "-j", "RETURN", NULL); in setInterfaceRule()
|
D | MDnsSdListener.h | 113 void discover(SocketClient *cli, const char *iface, const char *regType, 130 int ifaceNameToI(const char *iface);
|
D | MDnsSdListener.cpp | 60 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()
|
D | CommandListener.cpp | 1344 const char* iface = argv[2]; in runCommand() local 1347 int res = sFirewallCtrl->setInterfaceRule(iface, rule); in runCommand()
|
/system/core/adb/ |
D | usb_osx.cpp | 58 static usb_handle* CheckInterface(IOUSBInterfaceInterface **iface, 110 IOUSBInterfaceInterface220 **iface = NULL; in AndroidInterfaceAdded() local 138 CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID), (LPVOID*)&iface); in AndroidInterfaceAdded() 141 if (result || !iface) { in AndroidInterfaceAdded() 146 kr = (*iface)->GetInterfaceClass(iface, &if_class); in AndroidInterfaceAdded() 147 kr = (*iface)->GetInterfaceSubClass(iface, &subclass); in AndroidInterfaceAdded() 148 kr = (*iface)->GetInterfaceProtocol(iface, &protocol); in AndroidInterfaceAdded() 152 (*iface)->Release(iface); in AndroidInterfaceAdded() 160 kr = (*iface)->GetDevice(iface, &usbDevice); in AndroidInterfaceAdded() 255 usb_handle* handle = CheckInterface((IOUSBInterfaceInterface**)iface, in AndroidInterfaceAdded() [all …]
|
/system/extras/tests/net_test/ |
D | multinetwork_base.py | 210 iface = cls.GetInterfaceName(netid) 212 ifr = struct.pack("16sH", iface, IFF_TAP | IFF_NO_PI) 216 net_test.SetInterfaceHWAddr(iface, cls.MyMacAddress(netid)) 218 cls.SetSysctl("/proc/sys/net/ipv6/conf/%s/accept_dad" % iface, 0) 219 net_test.SetInterfaceUp(iface) 255 iface = cls.GetInterfaceName(netid) 266 cls.iproute.OifRule(version, is_add, iface, table, cls.PRIORITY_OIF) 360 iface = cls.GetInterfaceName(netid) 361 cls.ifindices[netid] = net_test.GetInterfaceIndex(iface) 401 def BindToDevice(self, s, iface): argument [all …]
|
D | net_test.py | 230 gw, iface = route[2], route[0] 232 return gw, iface 239 unused_gw, iface = GetDefaultRoute() 240 return iface
|
D | multinetwork_test.py | 250 iface = cls.GetInterfaceName(netid) 254 iptables, add_del, iface, netid) 814 iface = self.GetInterfaceName(netid) 815 self.BindToDevice(s, iface)
|
/system/bt/stack/include/ |
D | btm_api.h | 3933 extern void BTM_SetARCMode (UINT8 iface, UINT8 arc_mode, tBTM_VSC_CMPL_CB *p_arc_cb);
|