mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
Add rule type to match a COM field of the peer by ID and value because this will be powerful.
This commit is contained in:
parent
eee59ec9ce
commit
330c80f3f5
2 changed files with 27 additions and 1 deletions
|
@ -507,7 +507,17 @@ enum ZT_VirtualNetworkRuleType
|
|||
/**
|
||||
* 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
|
||||
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
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -618,6 +628,11 @@ 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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue