diff options
Diffstat (limited to 'zerotierone/node/OutboundMulticast.hpp')
| -rw-r--r-- | zerotierone/node/OutboundMulticast.hpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/zerotierone/node/OutboundMulticast.hpp b/zerotierone/node/OutboundMulticast.hpp index 6370d0d..3818172 100644 --- a/zerotierone/node/OutboundMulticast.hpp +++ b/zerotierone/node/OutboundMulticast.hpp @@ -56,7 +56,7 @@ public: * @param RR Runtime environment * @param timestamp Creation time * @param nwid Network ID - * @param disableCompression Disable compression of frame payload + * @param com Certificate of membership or NULL if none available * @param limit Multicast limit for desired number of packets to send * @param gatherLimit Number to lazily/implicitly gather with this frame or 0 for none * @param src Source MAC address of frame or NULL to imply compute from sender ZT address @@ -70,7 +70,7 @@ public: const RuntimeEnvironment *RR, uint64_t timestamp, uint64_t nwid, - bool disableCompression, + const CertificateOfMembership *com, unsigned int limit, unsigned int gatherLimit, const MAC &src, @@ -127,22 +127,17 @@ public: if (std::find(_alreadySentTo.begin(),_alreadySentTo.end(),toAddr) == _alreadySentTo.end()) { sendAndLog(RR,toAddr); return true; - } else { - return false; - } + } else return false; } private: uint64_t _timestamp; uint64_t _nwid; - MAC _macSrc; - MAC _macDest; unsigned int _limit; - unsigned int _frameLen; - unsigned int _etherType; - Packet _packet; + Packet _packetNoCom; + Packet _packetWithCom; std::vector<Address> _alreadySentTo; - uint8_t _frameData[ZT_MAX_MTU]; + bool _haveCom; }; } // namespace ZeroTier |
