Skip to main content

zts_net_info_t

More...

#include <ZeroTierSockets.h>

Public Attributes#

Name
uint64_tnet_id
uint64_tmac
charname
zts_network_status_tstatus
zts_net_info_type_ttype
unsigned intmtu
intdhcp
intbridge
intbroadcast_enabled
intport_error
unsigned longnetconf_rev
unsigned intassigned_addr_count
struct zts_sockaddr_storageassigned_addrs
unsigned introute_count
zts_route_info_troutes
unsigned intmulticast_sub_count
uint32_tadi
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 25 October 2021 at 23:59:59 UTC