From 5bb854e504a0db968b47c0a983d0148629e126e7 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 28 Oct 2014 17:25:34 -0700 Subject: Fix a nasty bug introduced in packet fragmentation a while back during refactoring, and a few other things related to multicast. --- testnet/TestEthernetTap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testnet/TestEthernetTap.cpp') 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 &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; -- cgit v1.2.3