/*
* ZeroTier One - Network Virtualization Everywhere
* Copyright (C) 2011-2015 ZeroTier, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
This is a suggestion. The underlying implementation is free to ignore it * for security or other reasons. This is simply a netconf parameter that * means 'DHCP is available on this network.'
*/ public final boolean isDhcpAvailable() { return dhcp; } /** * If this port is allowed to bridge to other networks * *This is informational. If this is false, bridged packets will simply * be dropped and bridging won't work.
*/ public final boolean isBridgeEnabled() { return bridge; } /** * If true, this network supports and allows broadcast (ff:ff:ff:ff:ff:ff) traffic */ public final boolean broadcastEnabled() { return broadcastEnabled; } /** * If the network is in PORT_ERROR state, this is the error most recently returned by the port config callback */ public final int portError() { return portError; } /** * Is this network enabled? If not, all frames to/from are dropped. */ public final boolean isEnabled() { return enabled; } /** * Network config revision as reported by netconf master * *If this is zero, it means we're still waiting for our netconf.
*/ public final long netconfRevision() { return netconfRevision; } /** * Multicast group subscriptions */ public final MulticastGroup[] multicastSubscriptions() { return multicastSubscriptions; } /** * ZeroTier-assigned addresses (in {@link java.net.InetSocketAddress} objects) * * For IP, the port number of the sockaddr_XX structure contains the number * of bits in the address netmask. Only the IP address and port are used. * Other fields like interface number can be ignored. * * This is only used for ZeroTier-managed address assignments sent by the * virtual network's configuration master. */ public final InetSocketAddress[] assignedAddresses() { return assignedAddresses; } }