Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java216 @Mock private BpfMap<Tether4Key, Tether4Value> mBpfDownstream4Map;
217 @Mock private BpfMap<Tether4Key, Tether4Value> mBpfUpstream4Map;
275 public BpfMap<Tether4Key, Tether4Value> getBpfDownstream4Map() {
280 public BpfMap<Tether4Key, Tether4Value> getBpfUpstream4Map() {
1332 private Tether4Key makeUpstream4Key(int proto) { in makeUpstream4Key()
1336 return new Tether4Key(DOWNSTREAM_IFINDEX, DOWNSTREAM_MAC, (short) proto, in makeUpstream4Key()
1341 private Tether4Key makeDownstream4Key(int proto) { in makeDownstream4Key()
1345 return new Tether4Key(UPSTREAM_IFINDEX, in makeDownstream4Key()
1367 private Tether4Key makeDownstream4Key() { in makeDownstream4Key()
1451 final Tether4Key expectedUpstream4KeyTcp = makeUpstream4Key(IPPROTO_TCP); in testSetDataLimitOnRule4Change()
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java305 @Nullable public BpfMap<Tether4Key, Tether4Value> getBpfDownstream4Map() { in getBpfDownstream4Map()
309 BpfMap.BPF_F_RDWR, Tether4Key.class, Tether4Value.class); in getBpfDownstream4Map()
317 @Nullable public BpfMap<Tether4Key, Tether4Value> getBpfUpstream4Map() { in getBpfUpstream4Map()
321 BpfMap.BPF_F_RDWR, Tether4Key.class, Tether4Value.class); in getBpfUpstream4Map()
751 final Set<Tether4Key> deleteUpstreamRuleKeys = new ArraySet<Tether4Key>(); in tetherOffloadRuleClear()
752 final Set<Tether4Key> deleteDownstreamRuleKeys = new ArraySet<Tether4Key>(); in tetherOffloadRuleClear()
778 for (final Tether4Key k : deleteUpstreamRuleKeys) { in tetherOffloadRuleClear()
781 for (final Tether4Key k : deleteDownstreamRuleKeys) { in tetherOffloadRuleClear()
1061 Tether4Key key, Tether4Value value) { in ipv4RuleToString()
1088 BpfMap<Tether4Key, Tether4Value> map, IndentingPrintWriter pw) throws ErrnoException { in dumpIpv4ForwardingRuleMap() argument
[all …]
DTether4Key.java32 public class Tether4Key extends Struct { class
54 public Tether4Key(final long iif, @NonNull final MacAddress dstMac, final short l4proto, in Tether4Key() method in Tether4Key
/packages/modules/Connectivity/Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/
DBpfCoordinatorShim.java27 import com.android.networkstack.tethering.Tether4Key;
145 public abstract boolean tetherOffloadRuleAdd(boolean downstream, @NonNull Tether4Key key, in tetherOffloadRuleAdd()
155 public abstract boolean tetherOffloadRuleRemove(boolean downstream, @NonNull Tether4Key key); in tetherOffloadRuleRemove()
166 @NonNull BiConsumer<Tether4Key, Tether4Value> action); in tetherOffloadRuleForEach() argument
/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/
DBpfCoordinatorShimImpl.java32 import com.android.networkstack.tethering.Tether4Key;
153 public boolean tetherOffloadRuleAdd(boolean downstream, @NonNull Tether4Key key, in tetherOffloadRuleAdd()
160 public boolean tetherOffloadRuleRemove(boolean downstream, @NonNull Tether4Key key) { in tetherOffloadRuleRemove()
167 @NonNull BiConsumer<Tether4Key, Tether4Value> action) { in tetherOffloadRuleForEach() argument
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java36 import com.android.networkstack.tethering.Tether4Key;
69 private final BpfMap<Tether4Key, Tether4Value> mBpfDownstream4Map;
73 private final BpfMap<Tether4Key, Tether4Value> mBpfUpstream4Map;
353 public boolean tetherOffloadRuleAdd(boolean downstream, @NonNull Tether4Key key, in tetherOffloadRuleAdd()
379 public boolean tetherOffloadRuleRemove(boolean downstream, @NonNull Tether4Key key) { in tetherOffloadRuleRemove()
413 @NonNull BiConsumer<Tether4Key, Tether4Value> action) { in tetherOffloadRuleForEach() argument
/packages/modules/Connectivity/Tethering/bpf_progs/
Dbpf_tethering.h190 } Tether4Key; typedef
191 STRUCT_SIZE(Tether4Key, 4 + 6 + 2 + 4 + 4 + 2 + 2); // 24
Doffload.c351 DEFINE_BPF_MAP_GRW(tether_downstream4_map, HASH, Tether4Key, Tether4Value, 1024, AID_NETWORK_STACK)
353 DEFINE_BPF_MAP_GRW(tether_upstream4_map, HASH, Tether4Key, Tether4Value, 1024, AID_NETWORK_STACK)
484 Tether4Key k = { in do_forward4()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java107 import com.android.networkstack.tethering.Tether4Key;
185 @Mock private BpfMap<Tether4Key, Tether4Value> mBpfDownstream4Map;
186 @Mock private BpfMap<Tether4Key, Tether4Value> mBpfUpstream4Map;
317 public BpfMap<Tether4Key, Tether4Value> getBpfDownstream4Map() { in setUp()
322 public BpfMap<Tether4Key, Tether4Value> getBpfUpstream4Map() { in setUp()