Home
last modified time | relevance | path

Searched refs:oif (Results 1 – 14 of 14) sorted by relevance

/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
H A DTether6Value.java30 public final int oif; // The output interface index. field in Tether6Value
43 public Tether6Value(final int oif, @NonNull final MacAddress ethDstMac, in Tether6Value() argument
48 this.oif = oif; in Tether6Value()
57 return String.format("oif: %d, dstMac: %s, srcMac: %s, proto: %d, pmtu: %d", oif, in toString()
H A DTether4Value.java34 public final long oif; field in Tether4Value
63 public Tether4Value(final long oif, @NonNull final MacAddress ethDstMac, in Tether4Value() argument
70 this.oif = oif; in Tether4Value()
89 oif, ethDstMac, ethSrcMac, ethProto, pmtu, in toString()
H A DBpfCoordinator.java1040 key.iif, getIfName(key.iif), key.dstMac, value.oif, getIfName(value.oif), in ipv6UpstreamRuletoString()
1083 value.oif, getIfName(value.oif), in ipv4RuleToString()
/aosp12/system/netd/bpf_progs/
H A Dclatd.c176 if (v->oif) return bpf_redirect(v->oif, BPF_F_INGRESS);
264 if (!v->oif) return TC_ACT_OK;
318 return bpf_redirect(v->oif, 0 /* this is effectively BPF_F_EGRESS */);
/aosp12/packages/modules/Connectivity/Tethering/bpf_progs/
H A Dbpf_tethering.h118 uint32_t oif; // The output interface to redirect to member
138 uint32_t oif; // The output interface to redirect to member
194 uint32_t oif; // The output interface to redirect to member
H A Doffload.c187 uint32_t stat_and_limit_k = downstream ? skb->ifindex : v->oif;
277 return bpf_redirect(v->oif, 0 /* this is effectively BPF_F_EGRESS */);
500 uint32_t stat_and_limit_k = downstream ? skb->ifindex : v->oif;
622 return bpf_redirect(v->oif, 0 /* this is effectively BPF_F_EGRESS */);
/aosp12/system/netd/libnetdbpf/include/netdbpf/
H A Dbpf_shared.h177 uint32_t oif; // The output interface to redirect to (0 means don't redirect) member
197 uint32_t oif; // The output interface to redirect to member
/aosp12/system/netd/server/
H A DClatdController.cpp228 .oif = tracker.ifIndex, in maybeStartBpf()
247 .oif = tracker.v4ifIndex, in maybeStartBpf()
598 if_indextoname(value.oif, oifStr); in dumpEgress()
601 pfx96Str, value.oif, oifStr, value.oifIsEthernet ? "ether" : "rawip"); in dumpEgress()
629 if_indextoname(value.oif, oifStr); in dumpIngress()
632 value.oif, oifStr); in dumpIngress()
H A DRouteController.cpp248 const char* iif, const char* oif, uid_t uidStart, in modifyIpRule() argument
264 if (int ret = padInterfaceName(oif, oifName, &oifLength, &oifPadding)) { in modifyIpRule()
311 { &fraOifName, oif != OIF_NONE ? sizeof(fraOifName) : 0 }, in modifyIpRule()
335 const char* oif, uid_t uidStart, uid_t uidEnd) { in modifyIpRule() argument
336 return modifyIpRule(action, priority, FR_ACT_TO_TBL, table, fwmark, mask, iif, oif, uidStart, in modifyIpRule()
/aosp12/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_TEE.h24 char oif[16]; member
/aosp12/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
H A DBpfMapTest.java105 private Tether6Value createTether6Value(int oif, String src, String dst, int proto, int pmtu) { in createTether6Value() argument
109 return new Tether6Value(oif, dstMac, srcMac, proto, pmtu); in createTether6Value()
/aosp12/packages/modules/adb/coverage/
H A Dgen_coverage.sh13 IP_ADDR=$(adb shell ip route get 0.0.0.0 oif wlan0 | sed -En -e 's/.*src (\S+)\s.*/\1/p')
/aosp12/system/netd/tests/
H A Dbinder_test.cpp568 const char* oif) { in ipRuleExistsForRange() argument
576 if (oif) { in ipRuleExistsForRange()
577 suffix = StringPrintf(" iif lo oif %s uidrange %d-%d %s\n", oif, range.start, range.stop, in ipRuleExistsForRange()
593 const std::string& action, const char* oif) { in ipRuleExistsForRange() argument
594 bool existsIp4 = ipRuleExistsForRange(priority, range, action, IP_RULE_V4, oif); in ipRuleExistsForRange()
595 bool existsIp6 = ipRuleExistsForRange(priority, range, action, IP_RULE_V6, oif); in ipRuleExistsForRange()
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
H A DBpfCoordinatorTest.java807 assertEquals(value.oif, DOWNSTREAM_IFINDEX); in testRuleMakeTether6Value()