Skip to main content



#include <ZeroTierOne.h>

Public Attributes#

enum ZT_VirtualNetworkStatusstatus
enum ZT_VirtualNetworkTypetype
unsigned intmtu
unsigned longnetconfRevision
unsigned intassignedAddressCount
struct sockaddr_storageassignedAddresses
unsigned introuteCount
unsigned intmulticastSubscriptionCount
struct ZT_VirtualNetworkConfig::@8multicastSubscriptions

Detailed Description#

struct ZT_VirtualNetworkConfig;

Virtual network configuration

Public Attributes Documentation#

variable nwid#

uint64_t nwid;

64-bit ZeroTier network ID

variable mac#

uint64_t mac;

Ethernet MAC (48 bits) that should be assigned to port

variable name#

char name;

Network name (from network configuration master)

variable status#

enum ZT_VirtualNetworkStatus status;

Network configuration request status

variable type#

enum ZT_VirtualNetworkType type;

Network type

variable mtu#

unsigned int mtu;

Maximum interface MTU

variable dhcp#

int dhcp;

If nonzero, the network this port belongs to indicates DHCP availability

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.'

variable bridge#

int bridge;

If nonzero, this port is allowed to bridge to other networks

This is informational. If this is false (0), bridged packets will simply be dropped and bridging won't work.

variable broadcastEnabled#

int broadcastEnabled;

If nonzero, this network supports and allows broadcast (ff:ff:ff:ff:ff:ff) traffic

variable portError#

int portError;

If the network is in PORT_ERROR state, this is the (negative) error code most recently reported

variable netconfRevision#

unsigned long netconfRevision;

Revision number as reported by controller or 0 if still waiting for config

variable assignedAddressCount#

unsigned int assignedAddressCount;

Number of assigned addresses

variable assignedAddresses#

struct sockaddr_storage assignedAddresses;

ZeroTier-assigned addresses (in sockaddr_storage structures)

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.

variable routeCount#

unsigned int routeCount;

Number of ZT-pushed routes

variable routes#

ZT_VirtualNetworkRoute routes;

Routes (excluding those implied by assigned addresses and their masks)

variable multicastSubscriptionCount#

unsigned int multicastSubscriptionCount;

Number of multicast groups subscribed

variable adi#

uint32_t adi;

variable multicastSubscriptions#

struct ZT_VirtualNetworkConfig::@8 multicastSubscriptions;

Multicast groups to which this network's device is subscribed

variable dns#

ZT_VirtualNetworkDNS dns;

Network specific DNS configuration

Updated on 25 October 2021 at 23:59:59 UTC