summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-22 15:32:55 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-22 15:32:55 -0800
commitb679ebde3b05efeb3346e20dfb216cf3b3bc2b1d (patch)
treeeb0c0aaa1ac071eed6c30e3304f108a6584176dd /include
parentb475bf4a2129239a1143efb41d8ee3fa5e9037fa (diff)
downloadinfinitytier-b679ebde3b05efeb3346e20dfb216cf3b3bc2b1d.tar.gz
infinitytier-b679ebde3b05efeb3346e20dfb216cf3b3bc2b1d.zip
Ad-hoc networks, a cool and easy to implement little feature that allows controllerless networks. These only allow IPv6 6plane, no multicast, and the network ID encodes the allowed port range.
Diffstat (limited to 'include')
-rw-r--r--include/ZeroTierOne.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h
index 9690489a..e2380a7b 100644
--- a/include/ZeroTierOne.h
+++ b/include/ZeroTierOne.h
@@ -610,15 +610,15 @@ enum ZT_VirtualNetworkRuleType
typedef struct
{
/**
- * Least significant 7 bits: ZT_VirtualNetworkRuleType, most significant 1 bit is NOT bit
+ * Type and flags
*
- * If the NOT bit is set, then matches will be interpreted as "does not
- * match." The NOT bit has no effect on actions.
+ * Bits are: NOTTTTTT
*
- * Use "& 0x7f" to get the enum and "& 0x80" to get the NOT flag.
+ * N - If true, sense of match is inverted (no effect on actions)
+ * O - If true, result is ORed with previous instead of ANDed (no effect on actions)
+ * T - Rule or action type
*
- * The union 'v' is a variant type, and this selects which field in 'v' is
- * actually used and valid.
+ * AND with 0x3f to get type, 0x80 to get NOT bit, and 0x40 to get OR bit.
*/
uint8_t t;