From 65ae29bd852ff468ad003af241d5177fe016c74a Mon Sep 17 00:00:00 2001 From: Robert Greenwalt Date: Thu, 18 Feb 2010 11:25:54 -0800 Subject: Add USB RNDIS enable/disable control Also adding interface configuration to the tethering machine. Also fixing netd bug that didn't send up/down portion of iface config command. --- core/java/android/net/InterfaceConfiguration.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/java/android') diff --git a/core/java/android/net/InterfaceConfiguration.java b/core/java/android/net/InterfaceConfiguration.java index 9aa23fe..915c5d7 100644 --- a/core/java/android/net/InterfaceConfiguration.java +++ b/core/java/android/net/InterfaceConfiguration.java @@ -45,10 +45,10 @@ public class InterfaceConfiguration implements Parcelable { } private static void putAddress(StringBuffer buf, int addr) { - buf.append(addr & 0xff).append('.'). - append((addr >>>= 8) & 0xff).append('.'). - append((addr >>>= 8) & 0xff).append('.'). - append((addr >>>= 8) & 0xff); + buf.append((addr >> 24) & 0xff).append('.'). + append((addr >> 16) & 0xff).append('.'). + append((addr >> 8) & 0xff).append('.'). + append(addr & 0xff); } /** Implement the Parcelable interface {@hide} */ -- cgit v1.1