summaryrefslogtreecommitdiffstats
path: root/server/NetdNativeService.h
diff options
context:
space:
mode:
authorHungming Chen <nuccachen@google.com>2020-03-12 16:21:03 +0800
committerHungming Chen <nuccachen@google.com>2020-05-29 22:50:24 +0800
commitf40dc09cc7008ded099bd9d8a61df3ee92a23685 (patch)
tree74b793e6945f13cb42b15a211e3856ea3f464f54 /server/NetdNativeService.h
parentf14b23d56eba8ed2d5c4be2a753a8444916c2069 (diff)
downloadplatform_system_netd-f40dc09cc7008ded099bd9d8a61df3ee92a23685.tar.gz
platform_system_netd-f40dc09cc7008ded099bd9d8a61df3ee92a23685.tar.bz2
platform_system_netd-f40dc09cc7008ded099bd9d8a61df3ee92a23685.zip
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 Change-Id: Ie03834bc40992a4abdc8ef70150569982092b386
Diffstat (limited to 'server/NetdNativeService.h')
-rw-r--r--server/NetdNativeService.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h
index 0d95c8ea4..f9979d316 100644
--- a/server/NetdNativeService.h
+++ b/server/NetdNativeService.h
@@ -123,6 +123,8 @@ class NetdNativeService : public BinderService<NetdNativeService>, public BnNetd
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;