/aosp12/packages/modules/Connectivity/Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/ |
H A D | BpfCoordinatorShim.java | 27 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
|
/aosp12/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/ |
H A D | BpfCoordinatorShimImpl.java | 32 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
|
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
H A D | BpfCoordinatorTest.java | 216 @Mock private BpfMap<Tether4Key, Tether4Value> mBpfDownstream4Map; 217 @Mock private BpfMap<Tether4Key, Tether4Value> mBpfUpstream4Map; 1332 private Tether4Key makeUpstream4Key(int 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() 1538 final Tether4Key tcpKey, final Tether4Value tcpValue, final Tether4Key udpKey, in checkRefreshConntrackTimeout() 1609 final Tether4Key tcpKey = makeUpstream4Key(IPPROTO_TCP); in testRefreshConntrackTimeout_Upstream4Map() 1610 final Tether4Key udpKey = makeUpstream4Key(IPPROTO_UDP); in testRefreshConntrackTimeout_Upstream4Map() 1625 final Tether4Key tcpKey = makeDownstream4Key(IPPROTO_TCP); in testRefreshConntrackTimeout_Downstream4Map() [all …]
|
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
H A D | BpfCoordinator.java | 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() 1533 private Tether4Key makeTetherUpstream4Key( in makeTetherUpstream4Key() 1535 return new Tether4Key(c.downstreamIfindex, c.downstreamMac, in makeTetherUpstream4Key() [all …]
|
H A D | Tether4Key.java | 32 public class Tether4Key extends Struct { class 54 public Tether4Key(final long iif, @NonNull final MacAddress dstMac, final short l4proto, in Tether4Key() method in Tether4Key
|
/aosp12/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/ |
H A D | BpfCoordinatorShimImpl.java | 36 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
|
/aosp12/packages/modules/Connectivity/Tethering/bpf_progs/ |
H A D | bpf_tethering.h | 190 } Tether4Key; typedef 191 STRUCT_SIZE(Tether4Key, 4 + 6 + 2 + 4 + 4 + 2 + 2); // 24
|
H A 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) 484 Tether4Key k = {
|
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
H A D | IpServerTest.java | 107 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()
|