Lines Matching refs:rv

102     int rv = getClatEgressMapFd();  in init()  local
103 if (rv < 0) { in init()
104 ALOGE("getClatEgressMapFd() failure: %s", strerror(-rv)); in init()
108 mClatEgressMap.reset(rv); in init()
110 rv = getClatIngressMapFd(); in init()
111 if (rv < 0) { in init()
112 ALOGE("getClatIngressMapFd() failure: %s", strerror(-rv)); in init()
117 mClatIngressMap.reset(rv); in init()
239 int rv = getClatEgressProgFd(RAWIP); in maybeStartBpf() local
240 if (rv < 0) { in maybeStartBpf()
241 ALOGE("getClatEgressProgFd(RAWIP) failure: %s", strerror(-rv)); in maybeStartBpf()
244 unique_fd txRawIpProgFd(rv); in maybeStartBpf()
246 rv = getClatIngressProgFd(isEthernet.value()); in maybeStartBpf()
247 if (rv < 0) { in maybeStartBpf()
248 ALOGE("getClatIngressProgFd(%d) failure: %s", isEthernet.value(), strerror(-rv)); in maybeStartBpf()
251 unique_fd rxProgFd(rv); in maybeStartBpf()
297 rv = tcQdiscAddDevClsact(tracker.v4ifIndex); in maybeStartBpf()
298 if (rv) { in maybeStartBpf()
300 strerror(-rv)); in maybeStartBpf()
310 rv = tcFilterAddDevEgressClatIpv4(tracker.v4ifIndex, txRawIpProgFd, RAWIP); in maybeStartBpf()
311 if (rv) { in maybeStartBpf()
312 if ((rv == -ENOENT) && (mClatEbpfMode == ClatEbpfMaybe)) { in maybeStartBpf()
314 tracker.v4iface, strerror(-rv)); in maybeStartBpf()
317 tracker.v4iface, strerror(-rv)); in maybeStartBpf()
333 rv = tcFilterAddDevIngressClatIpv6(tracker.ifIndex, rxProgFd, isEthernet.value()); in maybeStartBpf()
334 if (rv) { in maybeStartBpf()
335 if ((rv == -ENOENT) && (mClatEbpfMode == ClatEbpfMaybe)) { in maybeStartBpf()
337 isEthernet.value(), strerror(-rv)); in maybeStartBpf()
340 tracker.iface, isEthernet.value(), strerror(-rv)); in maybeStartBpf()
342 rv = tcFilterDelDevEgressClatIpv4(tracker.v4ifIndex); in maybeStartBpf()
343 if (rv) { in maybeStartBpf()
345 tracker.v4iface, strerror(-rv)); in maybeStartBpf()
377 int rv = tcFilterDelDevIngressClatIpv6(tracker.ifIndex); in maybeStopBpf() local
378 if (rv < 0) { in maybeStopBpf()
380 strerror(-rv)); in maybeStopBpf()
383 rv = tcFilterDelDevEgressClatIpv4(tracker.v4ifIndex); in maybeStopBpf()
384 if (rv < 0) { in maybeStopBpf()
386 tracker.v4iface, strerror(-rv)); in maybeStopBpf()