Lines Matching refs:iface
197 int ClatdController::generateIpv6Address(const char* iface, const in_addr v4, in generateIpv6Address() argument
202 if (setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE, iface, strlen(iface) + 1) == -1) { in generateIpv6Address()
231 auto isEthernet = android::net::isEthernet(tracker.iface); in maybeStartBpf()
233 ALOGE("isEthernet(%s[%d]) failure: %s", tracker.iface, tracker.ifIndex, in maybeStartBpf()
336 ALOGI("tcFilterAddDevIngressClatIpv6(%d[%s], %d): %s", tracker.ifIndex, tracker.iface, in maybeStartBpf()
340 tracker.iface, isEthernet.value(), strerror(-rv)); in maybeStartBpf()
363 void ClatdController::setIptablesDropRule(bool add, const char* iface, const char* pfx96Str, in setIptablesDropRule() argument
369 (add ? "-A" : "-D"), LOCAL_RAW_PREROUTING, iface, pfx96Str, v6Str); in setIptablesDropRule()
379 ALOGE("tcFilterDelDevIngressClatIpv6(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStopBpf()
427 strlcpy(iface, interface.c_str(), sizeof(iface)); in init()
428 ifIndex = if_nametoindex(iface); in init()
457 if (generateIpv6Address(iface, v4, pfx96, &v6)) { in init()
458 ALOGE("Unable to find global source address on %s for %s", iface, pfx96String); in init()
463 ALOGD("starting clatd on %s v4=%s v6=%s pfx96=%s", iface, v4Str, v6Str, pfx96String); in init()
534 progname += tracker.iface; in startClatd()
538 "-i", tracker.iface, in startClatd()
578 setIptablesDropRule(true, tracker.iface, tracker.pfx96String, tracker.v6Str); in startClatd()
613 setIptablesDropRule(false, tracker->iface, tracker->pfx96String, tracker->v6Str); in stopClatd()
690 dw.println("%u[%s] %s/96 %s -> %s %u[%s] [%s]", tracker.ifIndex, tracker.iface, in dumpTrackers()