FileDocCategorySizeDatePackage
Support_NetworkInterface.javaAPI DocAndroid 1.5 API1963Wed May 06 22:41:06 BST 2009tests.support

Support_NetworkInterface

public class Support_NetworkInterface extends Object

Fields Summary
Constructors Summary
Methods Summary
public static booleanuseInterface(java.net.NetworkInterface theInterface)
On windows platforms with IPV6 enabled there are a number of pseudo interfaces which don't work with our tests. This function is called to make sure we only use the non-pseudo interfaces

        boolean result = true;
        String platform = System.getProperty("os.name");
        // only use these on windows platforms
        if (platform.startsWith("Windows")) {
            if ((theInterface.getDisplayName()
                    .equals("Teredo Tunneling Pseudo-Interface"))
                    || (theInterface.getDisplayName()
                            .equals("6to4 Tunneling Pseudo-Interface"))
                    || (theInterface.getDisplayName()
                            .equals("Automatic Tunneling Pseudo-Interface"))
                    || (theInterface.getDisplayName()
                            .equals("Loopback Pseudo-Interface"))) {
                result = false;
            }
        }
        return result;