From a4160529058f8fcc0bb833651c1fc3c64034ddd6 Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Mon, 30 Aug 2010 12:26:00 -0700 Subject: [PATCH] Add per network static IP settings Remove the existing global static IP settings and add support for per network configuration Change-Id: I5a6d8b877471b8c8ad07951c96d273893754607f --- core/java/android/net/DhcpInfo.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/java/android/net/DhcpInfo.java b/core/java/android/net/DhcpInfo.java index 1178bec39b..9c81c19367 100644 --- a/core/java/android/net/DhcpInfo.java +++ b/core/java/android/net/DhcpInfo.java @@ -37,6 +37,19 @@ public class DhcpInfo implements Parcelable { super(); } + /** copy constructor {@hide} */ + public DhcpInfo(DhcpInfo source) { + if (source != null) { + ipAddress = source.ipAddress; + gateway = source.gateway; + netmask = source.netmask; + dns1 = source.dns1; + dns2 = source.dns2; + serverAddress = source.serverAddress; + leaseDuration = source.leaseDuration; + } + } + public String toString() { StringBuffer str = new StringBuffer();