Home
last modified time | relevance | path

Searched refs:Tether4Key (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/
DBpfCoordinatorShim.java25 import com.android.net.module.util.bpf.Tether4Key;
144 public abstract boolean tetherOffloadRuleAdd(boolean downstream, @NonNull Tether4Key key, in tetherOffloadRuleAdd()
154 public abstract boolean tetherOffloadRuleRemove(boolean downstream, @NonNull Tether4Key key); in tetherOffloadRuleRemove()
165 @NonNull ThrowingBiConsumer<Tether4Key, Tether4Value> action); in tetherOffloadRuleForEach() argument
/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/
DBpfCoordinatorShimImpl.java30 import com.android.net.module.util.bpf.Tether4Key;
149 public boolean tetherOffloadRuleAdd(boolean downstream, @NonNull Tether4Key key, in tetherOffloadRuleAdd()
156 public boolean tetherOffloadRuleRemove(boolean downstream, @NonNull Tether4Key key) { in tetherOffloadRuleRemove()
163 @NonNull ThrowingBiConsumer<Tether4Key, Tether4Value> action) { in tetherOffloadRuleForEach() argument
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java130 import com.android.net.module.util.bpf.Tether4Key;
317 public Tether4Key build() { in build()
318 return new Tether4Key(mIif, mDstMac, mL4proto, mSrc4, mDst4, mSrcPort, mDstPort); in build()
341 public Tether4Key build() { in build()
342 return new Tether4Key(mIif, mDstMac, mL4proto, mSrc4, mDst4, mSrcPort, mDstPort); in build()
476 private final IBpfMap<Tether4Key, Tether4Value> mBpfDownstream4Map =
477 spy(new TestBpfMap<>(Tether4Key.class, Tether4Value.class));
478 private final IBpfMap<Tether4Key, Tether4Value> mBpfUpstream4Map =
479 spy(new TestBpfMap<>(Tether4Key.class, Tether4Value.class));
533 public IBpfMap<Tether4Key, Tether4Value> getBpfDownstream4Map() {
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java73 import com.android.net.module.util.bpf.Tether4Key;
377 @Nullable public IBpfMap<Tether4Key, Tether4Value> getBpfDownstream4Map() { in getBpfDownstream4Map()
381 Tether4Key.class, Tether4Value.class); in getBpfDownstream4Map()
389 @Nullable public IBpfMap<Tether4Key, Tether4Value> getBpfUpstream4Map() { in getBpfUpstream4Map()
393 Tether4Key.class, Tether4Value.class); in getBpfUpstream4Map()
898 final Set<Tether4Key> deleteUpstreamRuleKeys = new ArraySet<Tether4Key>(); in tetherOffloadRuleClear()
899 final Set<Tether4Key> deleteDownstreamRuleKeys = new ArraySet<Tether4Key>(); in tetherOffloadRuleClear()
925 for (final Tether4Key k : deleteUpstreamRuleKeys) { in tetherOffloadRuleClear()
928 for (final Tether4Key k : deleteDownstreamRuleKeys) { in tetherOffloadRuleClear()
1371 try (IBpfMap<Tether4Key, Tether4Value> upstreamMap = mDeps.getBpfUpstream4Map()) { in dumpRawMap() argument
[all …]
/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
DMtsEthernetTetheringTest.java46 import com.android.net.module.util.bpf.Tether4Key;
228 final HashMap<Tether4Key, Tether4Value> upstreamMap = pollRawMapFromDump( in runUdp4Test()
229 Tether4Key.class, Tether4Value.class, DUMPSYS_RAWMAP_ARG_UPSTREAM4); in runUdp4Test()
233 final Map.Entry<Tether4Key, Tether4Value> rule = in runUdp4Test()
236 final Tether4Key upstream4Key = rule.getKey(); in runUdp4Test()
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java35 import com.android.net.module.util.bpf.Tether4Key;
71 private final IBpfMap<Tether4Key, Tether4Value> mBpfDownstream4Map;
75 private final IBpfMap<Tether4Key, Tether4Value> mBpfUpstream4Map;
343 public boolean tetherOffloadRuleAdd(boolean downstream, @NonNull Tether4Key key, in tetherOffloadRuleAdd()
367 public boolean tetherOffloadRuleRemove(boolean downstream, @NonNull Tether4Key key) { in tetherOffloadRuleRemove()
399 @NonNull ThrowingBiConsumer<Tether4Key, Tether4Value> action) { in tetherOffloadRuleForEach() argument
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DTether4Key.java32 public class Tether4Key extends Struct { class
54 public Tether4Key(final int iif, @NonNull final MacAddress dstMac, final short l4proto, in Tether4Key() method in Tether4Key
/packages/modules/Connectivity/bpf_progs/
Doffload.h151 } Tether4Key; typedef
152 STRUCT_SIZE(Tether4Key, 4 + 6 + 2 + 4 + 4 + 2 + 2); // 24
Doffload.c358 DEFINE_BPF_MAP_GRW(tether_downstream4_map, HASH, Tether4Key, Tether4Value, 1024, TETHERING_GID)
360 DEFINE_BPF_MAP_GRW(tether_upstream4_map, HASH, Tether4Key, Tether4Value, 1024, TETHERING_GID)
415 Tether4Key k = { in do_forward4_bottom()
Doffload@mainline.c358 DEFINE_BPF_MAP_GRW(tether_downstream4_map, HASH, Tether4Key, Tether4Value, 1024, TETHERING_GID)
360 DEFINE_BPF_MAP_GRW(tether_upstream4_map, HASH, Tether4Key, Tether4Value, 1024, TETHERING_GID)
415 Tether4Key k = { in do_forward4_bottom()