summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-08-25 16:04:04 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-08-25 16:04:04 -0700
commite51e212b9543b82a3994b730a39aed7796c29ea1 (patch)
tree8c7c45170a9ff459ebab95218ebf4bc7a1828b8f
parent6418d02572d91b0e53b030642d997573181d8c6b (diff)
downloadinfinitytier-e51e212b9543b82a3994b730a39aed7796c29ea1.tar.gz
infinitytier-e51e212b9543b82a3994b730a39aed7796c29ea1.zip
Add some defines of use to low level developers.
-rw-r--r--include/ZeroTierOne.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h
index e6ec8090..2a970d5b 100644
--- a/include/ZeroTierOne.h
+++ b/include/ZeroTierOne.h
@@ -93,6 +93,21 @@ extern "C" {
#define ZT_MAX_MTU 10000
/**
+ * Maximum physical UDP payload
+ */
+#define ZT_MAX_PHYSPAYLOAD 10100
+
+/**
+ * Headroom for max physical MTU
+ */
+#define ZT_MAX_HEADROOM 224
+
+/**
+ * Maximum physical MTU
+ */
+#define ZT_MAX_PHYSMTU (ZT_MAX_PHYSPAYLOAD + ZT_MAX_HEADROOM)
+
+/**
* Maximum size of a remote trace message's serialized Dictionary
*/
#define ZT_MAX_REMOTE_TRACE_SIZE 10000