Add binder IPCs to add and remove downstream IPv6 tethering rules
Test: None
Change-Id: Idcb6b9c80de499fafb29e4e8b9202d7b7386340c
diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h
index 34d6215..0c241d7 100644
--- a/server/NetdNativeService.h
+++ b/server/NetdNativeService.h
@@ -132,6 +132,16 @@
binder::Status tetherInterfaceList(std::vector<std::string>* ifList) override;
binder::Status tetherDnsSet(int32_t netId, const std::vector<std::string>& dnsAddrs) override;
binder::Status tetherDnsList(std::vector<std::string>* dnsList) override;
+ binder::Status tetherAddForward(const std::string& intIface,
+ const std::string& extIface) override;
+ binder::Status tetherRemoveForward(const std::string& intIface,
+ const std::string& extIface) override;
+ binder::Status tetherRuleAddDownstreamIpv6(int intIfaceIndex, int extIfaceIndex,
+ const std::vector<uint8_t>& ipAddress,
+ const std::vector<uint8_t>& srcL2Address,
+ const std::vector<uint8_t>& dstL2Address) override;
+ binder::Status tetherRuleRemoveDownstreamIpv6(int extIfaceIndex,
+ const std::vector<uint8_t>& ipAddress) override;
// Interface-related commands.
binder::Status interfaceAddAddress(const std::string &ifName,
@@ -238,11 +248,6 @@
const std::string& toIface) override;
binder::Status ipfwdRemoveInterfaceForward(const std::string& fromIface,
const std::string& toIface) override;
- // Tether-forward-related commands
- binder::Status tetherAddForward(const std::string& intIface,
- const std::string& extIface) override;
- binder::Status tetherRemoveForward(const std::string& intIface,
- const std::string& extIface) override;
// tcp_mem-config command
binder::Status setTcpRWmemorySize(const std::string& rmemValues,