summaryrefslogtreecommitdiff
path: root/testnet
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-28 17:25:34 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-28 17:25:34 -0700
commit5bb854e504a0db968b47c0a983d0148629e126e7 (patch)
treedc16e7f9f66fdc00683ad85b3ef126630f9c06be /testnet
parentfaff84e63a2d58dd110015cfd3d6f5111756cefe (diff)
downloadinfinitytier-5bb854e504a0db968b47c0a983d0148629e126e7.tar.gz
infinitytier-5bb854e504a0db968b47c0a983d0148629e126e7.zip
Fix a nasty bug introduced in packet fragmentation a while back during refactoring, and a few other things related to multicast.
Diffstat (limited to 'testnet')
-rw-r--r--testnet/TestEthernetTap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/testnet/TestEthernetTap.cpp b/testnet/TestEthernetTap.cpp
index 6a151aca..afd26da6 100644
--- a/testnet/TestEthernetTap.cpp
+++ b/testnet/TestEthernetTap.cpp
@@ -128,7 +128,7 @@ bool TestEthernetTap::updateMulticastGroups(std::set<MulticastGroup> &groups)
bool TestEthernetTap::injectPacketFromHost(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len)
{
- if ((len == 0)||(len > 2800))
+ if ((len == 0)||(len > _mtu))
return false;
_pq.push(TestFrame(from,to,data,etherType & 0xffff,len));
return true;