mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 05:13:58 -07:00
Moar Go
This commit is contained in:
parent
b34aa10bf8
commit
02a6b15e6b
9 changed files with 297 additions and 40 deletions
|
@ -62,14 +62,14 @@ void ZT_GoNode_leave(ZT_GoNode *gn,uint64_t nwid);
|
|||
|
||||
void ZT_GoTap_setEnabled(ZT_GoTap *tap,int enabled);
|
||||
|
||||
int ZT_GoTap_addIp(ZT_GoTap *tap,int af,const void *ip,int port);
|
||||
int ZT_GoTap_addIp(ZT_GoTap *tap,int af,const void *ip,int netmaskBits);
|
||||
|
||||
int ZT_GoTap_removeIp(ZT_GoTap *tap,int af,const void *ip,int port);
|
||||
int ZT_GoTap_removeIp(ZT_GoTap *tap,int af,const void *ip,int netmaskBits);
|
||||
|
||||
/* The buf buffer is filled with tuplies of:
|
||||
* uint8_t family
|
||||
* uint8_t ip[4 or 16]
|
||||
* uint16_t port (big-endian byte order)
|
||||
* uint8_t netmask bits (up to 32 for ipv4, 128 for ipv6)
|
||||
*
|
||||
* This function returns the number of such tuples in the result.
|
||||
* If the buffer isn't big enough results are incomplete.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue