mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-13 04:38:28 +00:00
Prevent re-armoring of packets when in multipath broadcast mode
This commit is contained in:
@ -1249,6 +1249,14 @@ public:
|
||||
return (((unsigned int)(*this)[ZT_PACKET_IDX_FLAGS] & 0x38) >> 3);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Whether this packet is currently encrypted
|
||||
*/
|
||||
inline bool isEncrypted() const
|
||||
{
|
||||
return (cipher() == ZT_PROTO_CIPHER_SUITE__C25519_POLY1305_SALSA2012) || (cipher() == ZT_PROTO_CIPHER_SUITE__AES_GMAC_SIV);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set this packet's cipher suite
|
||||
*/
|
||||
|
Reference in New Issue
Block a user