/system/netd/server/ |
D | NetlinkHandler.cpp | 63 const char *iface = evt->findParam("INTERFACE"); in onEvent() local 66 notifyInterfaceAdded(iface); in onEvent() 68 notifyInterfaceRemoved(iface); in onEvent() 73 notifyInterfaceLinkChanged(iface, true); in onEvent() 75 notifyInterfaceLinkChanged(iface, false); in onEvent() 81 if (action == NetlinkEvent::Action::kAddressRemoved && iface && address) { in onEvent() 100 if (iface && iface[0] && address && flags && scope) { in onEvent() 101 notifyAddressChanged(action, address, iface, flags, scope); in onEvent() 107 notifyInterfaceDnsServers(iface, lifetime, servers); in onEvent() 113 const char *iface = evt->findParam("INTERFACE"); in onEvent() local [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 | 76 int setInterfaceSharedQuota(const char *iface, int64_t bytes); 78 int removeInterfaceSharedQuota(const char *iface); 80 int setInterfaceQuota(const char *iface, int64_t bytes); 81 int getInterfaceQuota(const char *iface, int64_t *bytes); 82 int removeInterfaceQuota(const char *iface); 97 int setInterfaceAlert(const char *iface, int64_t bytes); 98 int removeInterfaceAlert(const char *iface);
|
D | BandwidthController.cpp | 563 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument 577 if (!isIfaceName(iface)) in setInterfaceSharedQuota() 579 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in setInterfaceSharedQuota() 632 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { in removeInterfaceSharedQuota() argument 639 if (!isIfaceName(iface)) in removeInterfaceSharedQuota() 641 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in removeInterfaceSharedQuota() 672 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { in setInterfaceQuota() argument 680 if (!isIfaceName(iface)) in setInterfaceQuota() 689 return removeInterfaceQuota(iface); in setInterfaceQuota() 692 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in setInterfaceQuota() [all …]
|
D | FirewallController.cpp | 143 int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { in setInterfaceRule() argument 149 if (!isIfaceName(iface)) { in setInterfaceRule() 162 res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL); in setInterfaceRule() 163 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 | 63 const char *iface, in discover() argument 69 ALOGD("discover(%s, %s, %s, %d, %d)", iface, regType, domain, requestId, in discover() 82 int interfaceInt = ifaceNameToI(iface); in discover()
|
/system/connectivity/shill/test-scripts/ |
D | veth | 22 iface="$1" 24 peer_iface="${iface}p" 25 lease_file="/tmp/dnsmasq.${iface}.leases" 26 pid_file="/tmp/dnsmasq.${iface}.pid" 27 ip link add name "$iface" type veth peer name "$peer_iface" 30 ifconfig "$iface" up 42 iface="$1" 43 pid_file="/tmp/dnsmasq.${iface}.pid" 46 ip link del "$iface"
|
D | monitor-services | 9 iface = interface[interface.rfind(".") + 1:] 11 if iface not in ["Service"]: 23 print "{%s} [%s] %s = %s" % (iface, ipath, name, val)
|
D | monitor-flimflam | 9 iface = interface[interface.rfind(".") + 1:] 14 print "{%s} [%s] %s = %s" % (iface, path, name, val)
|
D | routing.py | 45 def __init__(self, iface, dest, gway, flags, mask): argument 46 self.interface = iface
|
/system/core/adb/ |
D | usb_osx.cpp | 97 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface190 **iface, 127 IOUSBInterfaceInterface220 **iface = NULL; in AndroidInterfaceAdded() local 154 CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID), (LPVOID*)&iface); in AndroidInterfaceAdded() 157 if (result || !iface) { in AndroidInterfaceAdded() 162 kr = (*iface)->GetInterfaceClass(iface, &if_class); in AndroidInterfaceAdded() 163 kr = (*iface)->GetInterfaceSubClass(iface, &subclass); in AndroidInterfaceAdded() 164 kr = (*iface)->GetInterfaceProtocol(iface, &protocol); in AndroidInterfaceAdded() 169 (*iface)->Release(iface); in AndroidInterfaceAdded() 177 kr = (*iface)->GetDevice(iface, &usbDevice); in AndroidInterfaceAdded() 180 (*iface)->Release(iface); in AndroidInterfaceAdded() [all …]
|
/system/tools/aidl/ |
D | generate_java.cpp | 58 AidlInterface* iface, JavaTypeNamespace* types, in generate_java() argument 60 Class* cl = generate_binder_interface_class(iface, types); in generate_java() 64 (!iface->GetPackage().empty()) ? iface->GetPackage() : "", in generate_java()
|
D | generate_java.h | 34 AidlInterface* iface, java::JavaTypeNamespace* types, 38 const AidlInterface* iface, java::JavaTypeNamespace* types);
|
D | generate_java_binder.cpp | 510 Class* generate_binder_interface_class(const AidlInterface* iface, in generate_binder_interface_class() argument 512 const InterfaceType* interfaceType = iface->GetLanguageType<InterfaceType>(); in generate_binder_interface_class() 516 interface->comment = iface->GetComments(); in generate_binder_interface_class() 536 for (const auto& item : iface->GetConstants()) { in generate_binder_interface_class() 541 for (const auto& item : iface->GetMethods()) { in generate_binder_interface_class()
|
/system/extras/tests/net_test/ |
D | multinetwork_base.py | 215 iface = cls.GetInterfaceName(netid) 217 ifr = struct.pack("16sH", iface, IFF_TAP | IFF_NO_PI) 221 net_test.SetInterfaceHWAddr(iface, cls.MyMacAddress(netid)) 223 cls.SetSysctl("/proc/sys/net/ipv6/conf/%s/accept_dad" % iface, 0) 225 cls.SetSysctl("/proc/sys/net/ipv6/conf/%s/accept_ra" % iface, 2) 226 net_test.SetInterfaceUp(iface) 263 iface = cls.GetInterfaceName(netid) 274 cls.iproute.OifRule(version, is_add, iface, table, cls.PRIORITY_OIF) 334 iface = cls.GetInterfaceName(netid) 335 name = "/proc/sys/net/ipv6/conf/%s/%s" % (iface, sysctl) [all …]
|
D | sock_diag.py | 282 iface = s.getsockopt(SOL_SOCKET, net_test.SO_BINDTODEVICE, 284 iface = GetInterfaceIndex(iface) if iface else 0 286 iface = 0 298 sock_id = InetDiagSockId((sport, dport, src, dst, iface, "\x00" * 8))
|
D | anycast_test.py | 81 iface = self.GetInterfaceName(netid) 82 self.ifindices[netid] = net_test.GetInterfaceIndex(iface)
|
D | net_test.py | 261 gw, iface = route[2], route[0] 263 return gw, iface 270 unused_gw, iface = GetDefaultRoute() 271 return iface
|
D | neighbour_test.py | 60 iface = cls.GetInterfaceName(netid) 63 "/proc/sys/net/ipv6/neigh/%s/delay_first_probe_time" % iface,
|
D | multinetwork_test.py | 56 iface = cls.GetInterfaceName(netid) 60 iptables, add_del, iface, netid) 612 iface = self.GetInterfaceName(netid) 613 self.BindToDevice(s, iface)
|
/system/firewalld/ |
D | iptables.cc | 63 bool IsValidInterfaceName(const std::string& iface) { in IsValidInterfaceName() argument 66 if (iface.length() >= kInterfaceNameSize) { in IsValidInterfaceName() 69 if (base::StartsWith(iface, "-", base::CompareCase::SENSITIVE) || in IsValidInterfaceName() 70 base::EndsWith(iface, "-", base::CompareCase::SENSITIVE) || in IsValidInterfaceName() 71 base::StartsWith(iface, ".", base::CompareCase::SENSITIVE) || in IsValidInterfaceName() 72 base::EndsWith(iface, ".", base::CompareCase::SENSITIVE)) { in IsValidInterfaceName() 75 for (auto c : iface) { in IsValidInterfaceName()
|
/system/bt/service/ipc/binder/ |
D | bluetooth_binder_server.cpp | 169 const bt_interface_t *iface = bluetooth::hal::BluetoothInterface::Get()->GetHALInterface(); in dump() local 170 iface->dump(fd, NULL); in dump()
|