From 35e36db1d726f5741e7d8d83d2556e1417642be9 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Thu, 26 Feb 2015 01:25:36 +0900 Subject: Separate NAT from forwarding. Bug: 19500693 Change-Id: I39878644e21d51def1c31d1857e815f473ef0938 --- core/java/android/os/INetworkManagementService.aidl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'core/java/android/os') diff --git a/core/java/android/os/INetworkManagementService.aidl b/core/java/android/os/INetworkManagementService.aidl index 5d5d2b3..154a5a5 100644 --- a/core/java/android/os/INetworkManagementService.aidl +++ b/core/java/android/os/INetworkManagementService.aidl @@ -178,6 +178,18 @@ interface INetworkManagementService String[] getDnsForwarders(); /** + * Enables unidirectional packet forwarding from {@code fromIface} to + * {@code toIface}. + */ + void startInterfaceForwarding(String fromIface, String toIface); + + /** + * Disables unidirectional packet forwarding from {@code fromIface} to + * {@code toIface}. + */ + void stopInterfaceForwarding(String fromIface, String toIface); + + /** * Enables Network Address Translation between two interfaces. * The address and netmask of the external interface is used for * the NAT'ed network. -- cgit v1.1