Searched refs:Tether4Value (Results 1 – 9 of 9) sorted by relevance
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 216 @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() { 1351 private Tether4Value makeUpstream4Value() { in makeUpstream4Value() 1352 return new Tether4Value(UPSTREAM_IFINDEX, in makeUpstream4Value() 1360 private Tether4Value makeDownstream4Value() { in makeDownstream4Value() 1361 return new Tether4Value(DOWNSTREAM_IFINDEX, MAC_A /* client mac */, DOWNSTREAM_MAC, in makeDownstream4Value() 1453 final Tether4Value expectedUpstream4ValueTcp = makeUpstream4Value(); in testSetDataLimitOnRule4Change() 1454 final Tether4Value expectedDownstream4ValueTcp = makeDownstream4Value(); in testSetDataLimitOnRule4Change() [all …]
|
/packages/modules/Connectivity/Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/ |
D | BpfCoordinatorShim.java | 28 import com.android.networkstack.tethering.Tether4Value; 146 @NonNull Tether4Value value); in tetherOffloadRuleAdd() 166 @NonNull BiConsumer<Tether4Key, Tether4Value> action); in tetherOffloadRuleForEach()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 305 @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() 1061 Tether4Key key, Tether4Value value) { in ipv4RuleToString() 1088 BpfMap<Tether4Key, Tether4Value> map, IndentingPrintWriter pw) throws ErrnoException { in dumpIpv4ForwardingRuleMap() 1103 try (BpfMap<Tether4Key, Tether4Value> upstreamMap = mDeps.getBpfUpstream4Map(); in dumpIpv4ForwardingRules() 1104 BpfMap<Tether4Key, Tether4Value> downstreamMap = mDeps.getBpfDownstream4Map()) { in dumpIpv4ForwardingRules() 1549 private Tether4Value makeTetherUpstream4Value(@NonNull ConntrackEvent e, in makeTetherUpstream4Value() 1551 return new Tether4Value(upstreamIndex, in makeTetherUpstream4Value() [all …]
|
D | Tether4Value.java | 32 public class Tether4Value extends Struct { class 63 public Tether4Value(final long oif, @NonNull final MacAddress ethDstMac, in Tether4Value() method in Tether4Value
|
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/ |
D | BpfCoordinatorShimImpl.java | 37 import com.android.networkstack.tethering.Tether4Value; 69 private final BpfMap<Tether4Key, Tether4Value> mBpfDownstream4Map; 73 private final BpfMap<Tether4Key, Tether4Value> mBpfUpstream4Map; 354 @NonNull Tether4Value value) { in tetherOffloadRuleAdd() 413 @NonNull BiConsumer<Tether4Key, Tether4Value> action) { in tetherOffloadRuleForEach()
|
/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/ |
D | BpfCoordinatorShimImpl.java | 33 import com.android.networkstack.tethering.Tether4Value; 154 @NonNull Tether4Value value) { in tetherOffloadRuleAdd() 167 @NonNull BiConsumer<Tether4Key, Tether4Value> action) { in tetherOffloadRuleForEach()
|
/packages/modules/Connectivity/Tethering/bpf_progs/ |
D | bpf_tethering.h | 202 } Tether4Value; typedef 203 STRUCT_SIZE(Tether4Value, 4 + 14 + 2 + 16 + 16 + 2 + 2 + 8); // 64
|
D | offload.c | 351 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) 494 Tether4Value* v = downstream ? bpf_tether_downstream4_map_lookup_elem(&k) in do_forward4()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 108 import com.android.networkstack.tethering.Tether4Value; 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()
|