diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-07-25 15:52:16 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-07-25 15:52:16 -0700 |
commit | eaf6d6c9384ce31d025ea5b82013de7064b0c047 (patch) | |
tree | db17f955b8760d09d291de3f7d1886bf658def8e /include | |
parent | 02d288e9d43d837ce6f12641cdffdce46a089cb1 (diff) | |
download | infinitytier-eaf6d6c9384ce31d025ea5b82013de7064b0c047.tar.gz infinitytier-eaf6d6c9384ce31d025ea5b82013de7064b0c047.zip |
Basic L2/L3 filter for rules engine (not integrated yet) and some cleanup.
Diffstat (limited to 'include')
-rw-r--r-- | include/ZeroTierOne.h | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 2d7b007b..0d1ddd4b 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -507,22 +507,7 @@ enum ZT_VirtualNetworkRuleType /** * Frame size range (start-end, inclusive) */ - ZT_NETWORK_RULE_MATCH_FRAME_SIZE_RANGE = 49, - - /** - * Match a range of relative TCP sequence numbers (e.g. approx first N bytes of stream) - */ - ZT_NETWORK_RULE_MATCH_TCP_RELATIVE_SEQUENCE_NUMBER_RANGE = 50, - - /** - * Match a certificate of network membership field from the ZT origin's COM: greater than or equal to - */ - ZT_NETWORK_RULE_MATCH_COM_FIELD_GE = 51, - - /** - * Match a certificate of network membership field from the ZT origin's COM: less than or equal to - */ - ZT_NETWORK_RULE_MATCH_COM_FIELD_LE = 52 + ZT_NETWORK_RULE_MATCH_FRAME_SIZE_RANGE = 49 }; /** @@ -585,11 +570,6 @@ typedef struct uint16_t port[2]; /** - * TCP relative sequence number range -- start-end inclusive -- host byte order - */ - uint32_t tcpseq[2]; - - /** * 40-bit ZeroTier address (in least significant bits, host byte order) */ uint64_t zt; @@ -625,7 +605,7 @@ typedef struct uint8_t ipProtocol; /** - * IP type of service + * IP type of service a.k.a. DSCP field */ uint8_t ipTos; @@ -633,11 +613,6 @@ typedef struct * Ethernet packet size in host byte order (start-end, inclusive) */ uint16_t frameSize[2]; - - /** - * COM ID and value for ZT_NETWORK_RULE_MATCH_COM_FIELD_GE and ZT_NETWORK_RULE_MATCH_COM_FIELD_LE - */ - uint64_t comIV[2]; } v; } ZT_VirtualNetworkRule; |