summaryrefslogtreecommitdiffstats
path: root/server/NetdNativeService.h
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2018-11-08 16:10:48 -0800
committerChenbo Feng <fengc@google.com>2018-12-05 15:16:38 -0800
commitf5663d8f971c7fe8ae3c885a31b90e082fc7d383 (patch)
tree8c9b660a85b028c0a69bcb6a0f593e3d84a9dee8 /server/NetdNativeService.h
parent767a3e84867e1d65ae5ffd7e1a6165b4cc2476d0 (diff)
downloadplatform_system_netd-f5663d8f971c7fe8ae3c885a31b90e082fc7d383.tar.gz
platform_system_netd-f5663d8f971c7fe8ae3c885a31b90e082fc7d383.tar.bz2
platform_system_netd-f5663d8f971c7fe8ae3c885a31b90e082fc7d383.zip
Add an IPC that writes to the tcp_{rmem, wmem}
The system server is controlling the tcp buffer now by writing to /sys/kernel/ipv4/tcp_{rmem,wmem}_{min,def,max}. Those files are basically the same as /proc/sys/net/ipv4/tcp_{rmem,wmem} except those latter ones contain all three values in one file. Netd can directly write to those files instead of depending on the android specific implementation. Test: netd_integration_test Bug: 118572798 Change-Id: I588b48be29ecf61fd5bbf94f97f63738be4eae25
Diffstat (limited to 'server/NetdNativeService.h')
-rw-r--r--server/NetdNativeService.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h
index 0160cf1ce..f6d459374 100644
--- a/server/NetdNativeService.h
+++ b/server/NetdNativeService.h
@@ -246,6 +246,10 @@ class NetdNativeService : public BinderService<NetdNativeService>, public BnNetd
binder::Status tetherRemoveForward(const std::string& intIface,
const std::string& extIface) override;
+ // tcp_mem-config command
+ binder::Status setTcpRWmemorySize(const std::string& rmemValues,
+ const std::string& wmemValues) override;
+
private:
std::vector<uid_t> intsToUids(const std::vector<int32_t>& intUids);
Permission convertPermission(int32_t permission);