diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-27 12:22:25 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-27 12:22:25 -0700 |
| commit | cc4bacc1995d5af6b8ab66973a6d22a229367eb4 (patch) | |
| tree | cb34960de2163c61ce17cc03f826d2d6f00e8fc7 /node/OutboundMulticast.cpp | |
| parent | 15c07c58b610f699fd2a7164fde96712e1595f2b (diff) | |
| download | infinitytier-cc4bacc1995d5af6b8ab66973a6d22a229367eb4.tar.gz infinitytier-cc4bacc1995d5af6b8ab66973a6d22a229367eb4.zip | |
Cleanup, and implement compression disable flag for networks.
Diffstat (limited to 'node/OutboundMulticast.cpp')
| -rw-r--r-- | node/OutboundMulticast.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node/OutboundMulticast.cpp b/node/OutboundMulticast.cpp index 6e811581..2f6bf986 100644 --- a/node/OutboundMulticast.cpp +++ b/node/OutboundMulticast.cpp @@ -31,6 +31,7 @@ void OutboundMulticast::init( const RuntimeEnvironment *RR, uint64_t timestamp, uint64_t nwid, + bool disableCompression, unsigned int limit, unsigned int gatherLimit, const MAC &src, @@ -78,7 +79,8 @@ void OutboundMulticast::init( _packet.append((uint32_t)dest.adi()); _packet.append((uint16_t)etherType); _packet.append(payload,_frameLen); - _packet.compress(); + if (!disableCompression) + _packet.compress(); memcpy(_frameData,payload,_frameLen); } |
