summaryrefslogtreecommitdiff
path: root/node/OutboundMulticast.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-05 15:02:01 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-05 15:02:01 -0700
commite2f783ebbd39466bc03bf115b20064d222b91944 (patch)
treee1c0bae8b5a180713435b588cecadccc858d22d5 /node/OutboundMulticast.cpp
parent4d9b74b171d243abe2d2d6a0039865ece8a4a00c (diff)
downloadinfinitytier-e2f783ebbd39466bc03bf115b20064d222b91944.tar.gz
infinitytier-e2f783ebbd39466bc03bf115b20064d222b91944.zip
.
Diffstat (limited to 'node/OutboundMulticast.cpp')
-rw-r--r--node/OutboundMulticast.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/node/OutboundMulticast.cpp b/node/OutboundMulticast.cpp
index 11268fe2..a5856164 100644
--- a/node/OutboundMulticast.cpp
+++ b/node/OutboundMulticast.cpp
@@ -39,19 +39,22 @@ void OutboundMulticast::init(
const void *payload,
unsigned int len)
{
+ uint8_t flags = 0;
+
_timestamp = timestamp;
_nwid = nwid;
- if (src)
+ if (src) {
_macSrc = src;
- else _macSrc.fromAddress(RR->identity.address(),nwid);
+ flags |= 0x04;
+ } else {
+ _macSrc.fromAddress(RR->identity.address(),nwid);
+ }
_macDest = dest.mac();
_limit = limit;
_frameLen = (len < ZT_MAX_MTU) ? len : ZT_MAX_MTU;
_etherType = etherType;
- uint8_t flags = 0;
if (gatherLimit) flags |= 0x02;
- if (src) flags |= 0x04;
/*
TRACE(">>MC %.16llx INIT %.16llx/%s limit %u gatherLimit %u from %s to %s length %u",