summaryrefslogtreecommitdiff
path: root/node/OutboundMulticast.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-30 17:26:34 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-30 17:26:34 -0700
commitb41437780b5740f7fcb813412b2bf4157ac8d807 (patch)
tree2f2168808ec882fb06d7497c3ea308251126554b /node/OutboundMulticast.cpp
parent2659427864aee89977a58440705f7069c0e6c639 (diff)
downloadinfinitytier-b41437780b5740f7fcb813412b2bf4157ac8d807.tar.gz
infinitytier-b41437780b5740f7fcb813412b2bf4157ac8d807.zip
Add origin to new MULTICAST_FRAME, move security check for certs into Network to remove redundant code and bug-proneness, more work on IncomingPacket...
Diffstat (limited to 'node/OutboundMulticast.cpp')
-rw-r--r--node/OutboundMulticast.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node/OutboundMulticast.cpp b/node/OutboundMulticast.cpp
index 0643820e..cd11a523 100644
--- a/node/OutboundMulticast.cpp
+++ b/node/OutboundMulticast.cpp
@@ -43,6 +43,7 @@ void OutboundMulticast::init(uint64_t timestamp,const Address &self,uint64_t nwi
_packet.setSource(self);
_packet.setVerb(Packet::VERB_MULTICAST_FRAME);
+ self.appendTo(_packet);
_packet.append((uint64_t)nwid);
_packet.append((uint8_t)((com) ? 0x01 : 0x00));
_packet.append((uint32_t)gatherLimit); // gather limit -- set before send, start with 0