summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-09-30 11:05:35 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-09-30 11:05:35 -0400
commit4ecb9369b56c7aa507c9c0c9fa8381ec6772a0ea (patch)
treee3770731f0c6ca9b7e78911bc11df18881fc13f7 /node/Switch.cpp
parent141b85873731db10060677e1135b8c04a1dc8613 (diff)
downloadinfinitytier-4ecb9369b56c7aa507c9c0c9fa8381ec6772a0ea.tar.gz
infinitytier-4ecb9369b56c7aa507c9c0c9fa8381ec6772a0ea.zip
Fix for multicast propagation -- supernodes must always keep propagating. Also fix mac-tap build on new version of Xcode CL tools. Must use old llvm-g++ instead of clang for i686 -mkernel.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index 7bece5f2..90f0b2e5 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -137,7 +137,7 @@ void Switch::onLocalEthernet(const SharedPtr<Network> &network,const MAC &from,c
outp.append(network->id());
outp.append(bloomNonce);
outp.append((unsigned char)ZT_MULTICAST_NUM_PROPAGATION_PREFIX_BITS);
- outp.append((uint16_t)prefix);
+ outp.append((unsigned char)prefix);
_r->identity.address().appendTo(outp);
outp.append((unsigned char)((mcid >> 16) & 0xff));
outp.append((unsigned char)((mcid >> 8) & 0xff));