/system/connectivity/shill/test-scripts/ |
H A D | veth | 17 echo " setup <iface> <base> Sets up <iface> for <base>.0/24" 18 echo " teardown <iface> Tears down <iface>" 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" u [all...] |
H A 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)
|
H A D | monitor-flimflam | 9 iface = interface[interface.rfind(".") + 1:] 14 print "{%s} [%s] %s = %s" % (iface, path, name, val)
|
H A D | routing.py | 45 def __init__(self, iface, dest, gway, flags, mask): 46 self.interface = iface
|
/system/netd/server/ |
H A 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,
|
H A 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 void notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface);
|
H A D | NetlinkHandler.cpp | 63 const char *iface = evt->findParam("INTERFACE"); local 66 notifyInterfaceAdded(iface); 68 notifyInterfaceRemoved(iface); 73 notifyInterfaceLinkChanged(iface, true); 75 notifyInterfaceLinkChanged(iface, false); 81 if (action == NetlinkEvent::Action::kAddressRemoved && iface && address) { 82 // Note: if this interface was deleted, iface is "" and we don't notify. 100 if (iface && iface[0] && address && flags && scope) { 101 notifyAddressChanged(action, address, iface, flag 113 const char *iface = evt->findParam("INTERFACE"); local 121 const char *iface = evt->findParam("INTERFACE"); local 177 notifyQuotaLimitReached(const char *name, const char *iface) argument 196 notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface, const char *flags, const char *scope) argument 205 notifyInterfaceDnsServers(const char *iface, const char *lifetime, const char *servers) argument 212 notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface) argument [all...] |
H A D | IdletimerController.cpp | 53 * ndc idletimer add <iface> <timeout> <class label> 54 * ndc idletimer remove <iface> <timeout> <class label> 84 * Note that currently if the name of the iface is incorrect, iptables 191 int IdletimerController::modifyInterfaceIdletimer(IptOp op, const char *iface, argument 197 if (!isIfaceName(iface)) { 212 iface, 235 iface, 250 int IdletimerController::addInterfaceIdletimer(const char *iface, argument 253 return modifyInterfaceIdletimer(IptOpAdd, iface, timeout, classLabel); 256 int IdletimerController::removeInterfaceIdletimer(const char *iface, argument [all...] |
H A 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);
|
H A D | BandwidthController.cpp | 99 * . adding a new iface to this, E.g.: 149 * Should normally include bw_costly_<iface>, but we rely on the way they are setup 269 /* Flush and remove the bw_costly_<iface> tables */ 480 * Flush the bw_costly_<iface> is allowed to fail in case it didn't exist. 563 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { argument 577 if (!isIfaceName(iface)) 579 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { 632 int BandwidthController::removeInterfaceSharedQuota(const char *iface) { argument 639 if (!isIfaceName(iface)) 641 if (StrncpyAndCheck(ifn, iface, sizeo 672 setInterfaceQuota(const char *iface, int64_t maxBytes) argument 768 removeInterfaceQuota(const char *iface) argument 981 setInterfaceAlert(const char *iface, int64_t bytes) argument 1006 removeInterfaceAlert(const char *iface) argument [all...] |
H A D | FirewallController.cpp | 143 int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { argument 149 if (!isIfaceName(iface)) { 162 res |= execIptables(V4V6, op, LOCAL_INPUT, "-i", iface, "-j", "RETURN", NULL); 163 res |= execIptables(V4V6, op, LOCAL_OUTPUT, "-o", iface, "-j", "RETURN", NULL);
|
H A D | MDnsSdListener.h | 113 void discover(SocketClient *cli, const char *iface, const char *regType, 130 int ifaceNameToI(const char *iface);
|
H A D | MDnsSdListener.cpp | 63 const char *iface, 69 ALOGD("discover(%s, %s, %s, %d, %d)", iface, regType, domain, requestId, 82 int interfaceInt = ifaceNameToI(iface); 390 int MDnsSdListener::Handler::ifaceNameToI(const char * /* iface */) { 62 discover(SocketClient *cli, const char *iface, const char *regType, const char *domain, const int requestId, const int requestFlags) argument
|
/system/core/adb/ |
H A D | usb_osx.cpp | 97 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface190 **iface, 127 IOUSBInterfaceInterface220 **iface = NULL; local 154 CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID), (LPVOID*)&iface); 157 if (result || !iface) { 162 kr = (*iface)->GetInterfaceClass(iface, &if_class); 163 kr = (*iface)->GetInterfaceSubClass(iface, &subclass); 164 kr = (*iface)->GetInterfaceProtocol(iface, [all...] |
/system/tools/aidl/ |
H A D | generate_java.cpp | 58 AidlInterface* iface, JavaTypeNamespace* types, 60 Class* cl = generate_binder_interface_class(iface, types); 64 (!iface->GetPackage().empty()) ? iface->GetPackage() : "", 57 generate_java(const string& filename, const string& originalSrc, AidlInterface* iface, JavaTypeNamespace* types, const IoDelegate& io_delegate) argument
|
H A D | generate_java.h | 34 AidlInterface* iface, java::JavaTypeNamespace* types, 38 const AidlInterface* iface, java::JavaTypeNamespace* types);
|
H A D | generate_java_binder.cpp | 510 Class* generate_binder_interface_class(const AidlInterface* iface, argument 512 const InterfaceType* interfaceType = iface->GetLanguageType<InterfaceType>(); 516 interface->comment = iface->GetComments(); 536 for (const auto& item : iface->GetConstants()) { 541 for (const auto& item : iface->GetMethods()) {
|
/system/extras/tests/net_test/ |
H A 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, sysct [all...] |
H A D | sock_diag.py | 70 "InetDiagSockId", "!HH16s16sI8s", "sport dport src dst iface cookie") 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))
|
H A D | anycast_test.py | 81 iface = self.GetInterfaceName(netid) 82 self.ifindices[netid] = net_test.GetInterfaceIndex(iface)
|
H A D | net_test.py | 261 gw, iface = route[2], route[0] 263 return gw, iface 270 unused_gw, iface = GetDefaultRoute() 271 return iface
|
H A D | neighbour_test.py | 60 iface = cls.GetInterfaceName(netid) 63 "/proc/sys/net/ipv6/neigh/%s/delay_first_probe_time" % iface,
|
H A 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/ |
H A D | iptables.cc | 63 bool IsValidInterfaceName(const std::string& iface) { argument 64 // |iface| should be shorter than |kInterfaceNameSize| chars and have only 66 if (iface.length() >= kInterfaceNameSize) { 69 if (base::StartsWith(iface, "-", base::CompareCase::SENSITIVE) || 70 base::EndsWith(iface, "-", base::CompareCase::SENSITIVE) || 71 base::StartsWith(iface, ".", base::CompareCase::SENSITIVE) || 72 base::EndsWith(iface, ".", base::CompareCase::SENSITIVE)) { 75 for (auto c : iface) {
|
/system/bt/service/ipc/binder/ |
H A D | bluetooth_binder_server.cpp | 169 const bt_interface_t *iface = bluetooth::hal::BluetoothInterface::Get()->GetHALInterface(); local 170 iface->dump(fd, NULL);
|