Add binder call tetherOffloadGetStats
This binder call is separated from the existing call tetherGetStats
and used for for BPF tether stats.
Note that the default value of ifIndex of TetherStatsParcel.aidl is
applied for backward compatibility because it is added from this
commit.
Make netd modules to use netd_aidl_interface-unstable-cpp.
Both netd and libnetd_server use unstable aidl for new api
tetherOffload* and modified parcel TetherStatsParcel.
Generated with:
m netd_aidl_interface-update-api
Bug: 150736748
Test: atest
Original-Change: https://android-review.googlesource.com/1256108
Merged-In: Ie03834bc40992a4abdc8ef70150569982092b386
Change-Id: Ie03834bc40992a4abdc8ef70150569982092b386
diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h
index 0d95c8e..f9979d3 100644
--- a/server/NetdNativeService.h
+++ b/server/NetdNativeService.h
@@ -123,6 +123,8 @@
binder::Status tetherApplyDnsInterfaces(bool *ret) override;
binder::Status tetherGetStats(
std::vector<android::net::TetherStatsParcel>* tetherStatsVec) override;
+ binder::Status tetherOffloadGetStats(
+ std::vector<android::net::TetherStatsParcel>* tetherStatsVec) override;
binder::Status tetherStart(const std::vector<std::string>& dhcpRanges) override;
binder::Status tetherStartWithConfiguration(const TetherConfigParcel& config) override;
binder::Status tetherStop() override;