• Home
  • Raw
  • Download

Lines Matching refs:tracker

235 void ClatdController::maybeStartBpf(const ClatdTracker& tracker) {  in maybeStartBpf()  argument
238 int rv = hardwareAddressType(tracker.iface); in maybeStartBpf()
240 ALOGE("hardwareAddressType(%s[%d]) failure: %s", tracker.iface, tracker.ifIndex, in maybeStartBpf()
255 ALOGE("hardwareAddressType(%s[%d]) returned unknown type %d.", tracker.iface, in maybeStartBpf()
256 tracker.ifIndex, rv); in maybeStartBpf()
268 .iif = tracker.ifIndex, in maybeStartBpf()
269 .pfx96 = tracker.pfx96, in maybeStartBpf()
270 .local6 = tracker.v6, in maybeStartBpf()
274 .oif = tracker.v4ifIndex, in maybeStartBpf()
275 .local4 = tracker.v4, in maybeStartBpf()
287 rv = tcQdiscAddDevClsact(mNetlinkFd, tracker.ifIndex); in maybeStartBpf()
289 ALOGE("tcQdiscAddDevClsact(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStartBpf()
296 rv = tcFilterAddDevBpf(mNetlinkFd, tracker.ifIndex, progFd, isEthernet); in maybeStartBpf()
299 ALOGI("tcFilterAddDevBpf(%d[%s], %d): %s", tracker.ifIndex, tracker.iface, isEthernet, in maybeStartBpf()
302 ALOGE("tcFilterAddDevBpf(%d[%s], %d) failure: %s", tracker.ifIndex, tracker.iface, in maybeStartBpf()
305 rv = tcQdiscDelDevClsact(mNetlinkFd, tracker.ifIndex); in maybeStartBpf()
307 ALOGE("tcQdiscDelDevClsact(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStartBpf()
329 void ClatdController::maybeStopBpf(const ClatdTracker& tracker) { in maybeStopBpf() argument
334 int rv = tcQdiscDelDevClsact(mNetlinkFd, tracker.ifIndex); in maybeStopBpf()
336 ALOGE("tcQdiscDelDevClsact(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStopBpf()
343 .iif = tracker.ifIndex, in maybeStopBpf()
344 .pfx96 = tracker.pfx96, in maybeStopBpf()
345 .local6 = tracker.v6, in maybeStopBpf()
456 ClatdTracker tracker; in startClatd() local
457 int ret = tracker.init(networkId, interface, v4interface, nat64Prefix); in startClatd()
475 progname += tracker.iface; in startClatd()
479 "-i", tracker.iface, in startClatd()
480 "-n", tracker.netIdString, in startClatd()
481 "-m", tracker.fwmarkString, in startClatd()
482 "-p", tracker.pfx96String, in startClatd()
483 "-4", tracker.v4Str, in startClatd()
484 "-6", tracker.v6Str, in startClatd()
520 maybeSetIptablesDropRule(true, tracker.pfx96String, tracker.v6Str); in startClatd()
523 res = posix_spawn(&tracker.pid, kClatdPath, &fa, &attr, (char* const*)args, nullptr); in startClatd()
530 maybeStartBpf(tracker); in startClatd()
532 mClatdTrackers[interface] = tracker; in startClatd()
535 *v6Str = tracker.v6Str; in startClatd()
541 ClatdTracker* tracker = getClatdTracker(interface); in stopClatd() local
543 if (tracker == nullptr) { in stopClatd()
548 ALOGD("Stopping clatd pid=%d on %s", tracker->pid, interface.c_str()); in stopClatd()
550 maybeStopBpf(*tracker); in stopClatd()
552 kill(tracker->pid, SIGTERM); in stopClatd()
553 waitpid(tracker->pid, nullptr, 0); in stopClatd()
555 maybeSetIptablesDropRule(false, tracker->pfx96String, tracker->v6Str); in stopClatd()
575 const ClatdTracker& tracker = pair.second; in dump() local
576 dw.println("%u[%s] %s/96 %s -> %s %u[%s] [%u]", tracker.ifIndex, tracker.iface, in dump()
577 tracker.pfx96String, tracker.v6Str, tracker.v4Str, tracker.v4ifIndex, in dump()
578 tracker.v4iface, tracker.netId); in dump()