Add TCP relative sequence number criterion for documentation/posterity.

This commit is contained in:
Adam Ierymenko 2016-05-09 17:00:17 -07:00
parent 8b9519f0af
commit 37b89b3944

View file

@ -500,7 +500,12 @@ enum ZT_VirtualNetworkRuleType
/** /**
* Frame size range (start-end, inclusive) * Frame size range (start-end, inclusive)
*/ */
ZT_NETWORK_RULE_MATCH_FRAME_SIZE_RANGE = 49 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
}; };
/** /**
@ -562,6 +567,11 @@ typedef struct
*/ */
uint16_t port[2]; 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) * 40-bit ZeroTier address (in least significant bits, host byte order)
*/ */