diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-30 08:38:03 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-30 08:38:03 -0700 |
| commit | 8607aa7c3c0a24c3161b605e5195bfd5a7ad1258 (patch) | |
| tree | 574c02d339d04a43e595d2fe38ef8ed82f56284e /node/OutboundMulticast.cpp | |
| parent | ed0ba4950238c74e2b0115410e0e37b49dd5f26a (diff) | |
| download | infinitytier-8607aa7c3c0a24c3161b605e5195bfd5a7ad1258.tar.gz infinitytier-8607aa7c3c0a24c3161b605e5195bfd5a7ad1258.zip | |
Everything in for new multicast except IncomingPacket parsing...
Diffstat (limited to 'node/OutboundMulticast.cpp')
| -rw-r--r-- | node/OutboundMulticast.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node/OutboundMulticast.cpp b/node/OutboundMulticast.cpp index 02956dd3..0643820e 100644 --- a/node/OutboundMulticast.cpp +++ b/node/OutboundMulticast.cpp @@ -39,8 +39,10 @@ void OutboundMulticast::init(uint64_t timestamp,const Address &self,uint64_t nwi _source = src; _destination = dest; _etherType = etherType; + _packet.setSource(self); _packet.setVerb(Packet::VERB_MULTICAST_FRAME); + _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 @@ -50,6 +52,7 @@ void OutboundMulticast::init(uint64_t timestamp,const Address &self,uint64_t nwi src.appendTo(_packet); _packet.append((uint16_t)etherType); _packet.append(payload,len); + _packet.compress(); } |
