From f5600618df153d9c51388562ebf3524e3bdc8b7d Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Thu, 16 Jun 2011 10:26:28 -0700 Subject: Fix IP address cleanup on network disconnect We used to bring down the interface on network disconnect which would in turn clean up all the IP addresses. The interface bringup/shutdown is now handled by wpa_supplicant. Add netd interface for clearing all IP addresses Bug: 4676254 Change-Id: I7e24c0ab2e4a412b8d61e9c33ce028966913aaf6 --- core/java/android/os/INetworkManagementService.aidl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/java') diff --git a/core/java/android/os/INetworkManagementService.aidl b/core/java/android/os/INetworkManagementService.aidl index f17a6f2..b97ec19 100644 --- a/core/java/android/os/INetworkManagementService.aidl +++ b/core/java/android/os/INetworkManagementService.aidl @@ -59,6 +59,11 @@ interface INetworkManagementService void setInterfaceConfig(String iface, in InterfaceConfiguration cfg); /** + * Clear all IP addresses on the specified interface + */ + void clearInterfaceAddresses(String iface); + + /** * Retrieves the network routes currently configured on the specified * interface */ -- cgit v1.1