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

12

/system/connectivity/shill/test-scripts/
H A Dveth17 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 Dmonitor-services9 iface = interface[interface.rfind(".") + 1:]
11 if iface not in ["Service"]:
23 print "{%s} [%s] %s = %s" % (iface, ipath, name, val)
H A Dmonitor-flimflam9 iface = interface[interface.rfind(".") + 1:]
14 print "{%s} [%s] %s = %s" % (iface, path, name, val)
H A Drouting.py45 def __init__(self, iface, dest, gway, flags, mask):
46 self.interface = iface
/system/netd/server/
H A 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,
H A 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 void notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface);
H A DNetlinkHandler.cpp63 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 DIdletimerController.cpp53 * 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 DBandwidthController.h76 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 DBandwidthController.cpp99 * . 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 DFirewallController.cpp143 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 DMDnsSdListener.h113 void discover(SocketClient *cli, const char *iface, const char *regType,
130 int ifaceNameToI(const char *iface);
H A DMDnsSdListener.cpp63 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 Dusb_osx.cpp97 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 Dgenerate_java.cpp58 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 Dgenerate_java.h34 AidlInterface* iface, java::JavaTypeNamespace* types,
38 const AidlInterface* iface, java::JavaTypeNamespace* types);
H A Dgenerate_java_binder.cpp510 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 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, sysct
[all...]
H A Dsock_diag.py70 "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 Danycast_test.py81 iface = self.GetInterfaceName(netid)
82 self.ifindices[netid] = net_test.GetInterfaceIndex(iface)
H A Dnet_test.py261 gw, iface = route[2], route[0]
263 return gw, iface
270 unused_gw, iface = GetDefaultRoute()
271 return iface
H A Dneighbour_test.py60 iface = cls.GetInterfaceName(netid)
63 "/proc/sys/net/ipv6/neigh/%s/delay_first_probe_time" % iface,
H A 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/
H A Diptables.cc63 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 Dbluetooth_binder_server.cpp169 const bt_interface_t *iface = bluetooth::hal::BluetoothInterface::Get()->GetHALInterface(); local
170 iface->dump(fd, NULL);

Completed in 1236 milliseconds

12