Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ZTS_IN6ADDR_ANY_INIT and zts_in6addr_any #245

Merged
merged 1 commit into from
Aug 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions include/ZeroTierSockets.h
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,12 @@ typedef void (*CppCallback)(void* msg);
/** 255.255.255.255 */
#define ZTS_INADDR_BROADCAST ZTS_IPADDR_BROADCAST


#define ZTS_IN6ADDR_ANY_INIT {{{0,0,0,0}}}




// Socket protocol types
#define ZTS_SOCK_STREAM 0x0001
#define ZTS_SOCK_DGRAM 0x0002
Expand Down Expand Up @@ -503,6 +509,8 @@ struct zts_in6_addr {
//#define s6_addr un.u8_addr
};

const struct zts_in6_addr zts_in6addr_any = ZTS_IN6ADDR_ANY_INIT;

/**
* Address structure to specify an IPv4 endpoint
*/
Expand Down