Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c44d4667 authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Freeze netd AIDL interfaces as v4.

This adds BPF tethering offload APIs that are necessary to ensure
that BPF tethering respects data limits. Specifically:

 interface INetd {
   ...
+  android.net.TetherStatsParcel[] tetherOffloadGetStats();
+  void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes);
+  android.net.TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex);
   ...
 }

 parcelable TetherOffloadRuleParcel {
   ...
+  int pmtu = 1500;
 }

 parcelable TetherStatsParcel {
   ...
+  int ifIndex = 0;
 }

Generated via:
  m netd_aidl_interface-freeze-api
  git add server/aidl_api/netd_aidl_interface/4/

Test: m, builds, atest
Bug: 150736748
Change-Id: I0b0c67d43ddf2936df57fd1df8ededec51dc6189
Merged-In: I0b0c67d43ddf2936df57fd1df8ededec51dc6189
parent af0dbed2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment