Skip to main content



#include <ZeroTierSockets.h>

Public Attributes#

unsigned intmtu
unsigned longnetconf_rev
unsigned intassigned_addr_count
struct zts_sockaddr_storageassigned_addrs
unsigned introute_count
unsigned intmulticast_sub_count
struct zts_net_info_t::@0multicast_subs

Detailed Description#

struct zts_net_info_t;

Virtual network configuration

Public Attributes Documentation#

variable net_id#

uint64_t net_id;

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#

zts_network_status_t status;

Network configuration request status

variable type#

zts_net_info_type_t 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 broadcast_enabled#

int broadcast_enabled;

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

variable port_error#

int port_error;

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

variable netconf_rev#

unsigned long netconf_rev;

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

variable assigned_addr_count#

unsigned int assigned_addr_count;

Number of assigned addresses

variable assigned_addrs#

struct zts_sockaddr_storage assigned_addrs;

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 route_count#

unsigned int route_count;

Number of ZT-pushed routes

variable routes#

zts_route_info_t routes;

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

variable multicast_sub_count#

unsigned int multicast_sub_count;

Number of multicast groups subscribed

variable adi#

uint32_t adi;

variable multicast_subs#

struct zts_net_info_t::@0 multicast_subs;

Multicast groups to which this network's device is subscribed

Updated on 14 September 2022 at 21:24:15 UTC