4638N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 4638N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4638N/A * This code is free software; you can redistribute it and/or modify it 4638N/A * under the terms of the GNU General Public License version 2 only, as 4638N/A * published by the Free Software Foundation. Oracle designates this 4638N/A * particular file as subject to the "Classpath" exception as provided 4638N/A * by Oracle in the LICENSE file that accompanied this code. 4638N/A * This code is distributed in the hope that it will be useful, but WITHOUT 4638N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4638N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4638N/A * version 2 for more details (a copy is included in the LICENSE file that 4638N/A * You should have received a copy of the GNU General Public License version 4638N/A * 2 along with this work; if not, write to the Free Software Foundation, 4638N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4638N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4638N/A * or visit www.oracle.com if you need additional information or have any 4638N/A * Choose a network inteface to be the default for 4638N/A * outgoing IPv6 traffic that does not specify a scope_id (and which needs one). 4638N/A * We choose the first interface that is up and is (in order of preference): 4638N/A * 1. neither loopback nor point to point 4638N/A * Platforms that do not require a default interface implement a dummy 4638N/A * Choose a default interface. This method returns an interface that is 4638N/A * both "up" and supports multicast. This method choses an interface in 4638N/A * 1. neither loopback nor point to point 4638N/A * @return the chosen interface or {@code null} if there isn't a suitable 4638N/A // unable to enumate network interfaces 4638N/A // found an interface that is not the loopback or a 4638N/A // point-to-point interface