Home
last modified time | relevance | path

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

12

/system/netd/server/
DNetlinkHandler.cpp63 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 …]
DIdletimerController.cpp191 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()
DNetlinkHandler.h42 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);
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.h65 int setInterfaceSharedQuota(const char *iface, int64_t bytes);
67 int removeInterfaceSharedQuota(const char *iface);
69 int setInterfaceQuota(const char *iface, int64_t bytes);
70 int getInterfaceQuota(const char *iface, int64_t *bytes);
71 int removeInterfaceQuota(const char *iface);
86 int setInterfaceAlert(const char *iface, int64_t bytes);
87 int removeInterfaceAlert(const char *iface);
DBandwidthController.cpp563 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 …]
DFirewallController.cpp143 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()
DMDnsSdListener.h113 void discover(SocketClient *cli, const char *iface, const char *regType,
130 int ifaceNameToI(const char *iface);
DMDnsSdListener.cpp63 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/
Dveth22 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"
Dmonitor-services9 iface = interface[interface.rfind(".") + 1:]
11 if iface not in ["Service"]:
23 print "{%s} [%s] %s = %s" % (iface, ipath, name, val)
Dmonitor-flimflam9 iface = interface[interface.rfind(".") + 1:]
14 print "{%s} [%s] %s = %s" % (iface, path, name, val)
Drouting.py45 def __init__(self, iface, dest, gway, flags, mask): argument
46 self.interface = iface
/system/core/adb/
Dusb_osx.cpp97 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()
276 (*iface)->USBInterfaceClose(iface); in AndroidInterfaceAdded()
[all …]
/system/tools/aidl/
Dgenerate_java.cpp58 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()
Dgenerate_java.h34 AidlInterface* iface, java::JavaTypeNamespace* types,
38 const AidlInterface* iface, java::JavaTypeNamespace* types);
Dgenerate_java_binder.cpp510 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/
Dmultinetwork_base.py215 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 …]
Dsock_diag.py282 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))
Danycast_test.py81 iface = self.GetInterfaceName(netid)
82 self.ifindices[netid] = net_test.GetInterfaceIndex(iface)
Dnet_test.py261 gw, iface = route[2], route[0]
263 return gw, iface
270 unused_gw, iface = GetDefaultRoute()
271 return iface
Dneighbour_test.py60 iface = cls.GetInterfaceName(netid)
63 "/proc/sys/net/ipv6/neigh/%s/delay_first_probe_time" % iface,
Dmultinetwork_test.py56 iface = cls.GetInterfaceName(netid)
60 iptables, add_del, iface, netid)
612 iface = self.GetInterfaceName(netid)
613 self.BindToDevice(s, iface)
/system/firewalld/
Diptables.cc63 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/
Dbluetooth_binder_server.cpp169 const bt_interface_t *iface = bluetooth::hal::BluetoothInterface::Get()->GetHALInterface(); in dump() local
170 iface->dump(fd, NULL); in dump()

12