diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-05-06 10:57:53 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-05-06 10:57:53 -0700 |
commit | 0f17077b3d592d5c39374cf44fe5ea1173d7109c (patch) | |
tree | f4e99971eaedc50f7c76e85fa9fde55af0d35eb6 /include | |
parent | 9da8bf37d783cb1ac9b9c72a8effe2ce7c904ab6 (diff) | |
download | infinitytier-0f17077b3d592d5c39374cf44fe5ea1173d7109c.tar.gz infinitytier-0f17077b3d592d5c39374cf44fe5ea1173d7109c.zip |
Merge gateways and routes in netconf since they are the same thing.
Diffstat (limited to 'include')
-rw-r--r-- | include/ZeroTierOne.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 465fd892..6f0517ba 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -82,9 +82,9 @@ extern "C" { #define ZT_MAX_NETWORK_SHORT_NAME_LENGTH 127 /** - * Maximum number of local routes on a network + * Maximum number of pushed routes on a network */ -#define ZT_MAX_NETWORK_LOCAL_ROUTES 16 +#define ZT_MAX_NETWORK_ROUTES 32 /** * Maximum number of statically assigned IP addresses per network endpoint using ZT address management (not DHCP) @@ -92,11 +92,6 @@ extern "C" { #define ZT_MAX_ZT_ASSIGNED_ADDRESSES 16 /** - * Maximum number of default routes / gateways on a network (ZT managed) - */ -#define ZT_MAX_NETWORK_GATEWAYS 8 - -/** * Maximum number of "specialists" on a network -- bridges, relays, etc. */ #define ZT_MAX_NETWORK_SPECIALISTS 256 @@ -620,6 +615,22 @@ typedef struct } ZT_VirtualNetworkRule; /** + * A route to be pushed on a virtual network + */ +typedef struct +{ + /** + * Target network / netmask bits (in port field) or NULL or 0.0.0.0/0 for default + */ + struct sockaddr_storage target; + + /** + * Gateway IP address (port ignored) or NULL (family == 0) for LAN-local (no gateway) + */ + struct sockaddr_storage via; +} ZT_VirtualNetworkRoute; + +/** * An Ethernet multicast group */ typedef struct |