Reduce MTU to 1280 bytes (#1032)

* Reduce MTU to 1280 bytes

* Update 5.1.07 test to use 1232 byte ping
This commit is contained in:
Nick Banks
2016-12-01 14:00:50 -08:00
committed by Jonathan Hui
parent 22532a0fdc
commit 646d9e2f19
3 changed files with 4 additions and 4 deletions
@@ -681,11 +681,11 @@ otLwfEventWorkerThread(
KWAIT_BLOCK WaitBlocks[ARRAYSIZE(WaitEvents)] = { 0 };
// Space to processing buffers
const ULONG MessageBufferSize = 1500;
const ULONG MessageBufferSize = 1280;
PUCHAR MessageBuffer = FILTER_ALLOC_MEM(pFilter->FilterHandle, MessageBufferSize);
if (MessageBuffer == NULL)
{
LogError(DRIVER_DATA_PATH, "Failed to allocate 1500 bytes for MessageBuffer!");
LogError(DRIVER_DATA_PATH, "Failed to allocate 1280 bytes for MessageBuffer!");
return;
}
+1 -1
View File
@@ -100,7 +100,7 @@ public:
enum
{
kDefaultHopLimit = 64,
kMaxDatagramLength = 1500,
kMaxDatagramLength = 1280,
};
/**
@@ -87,7 +87,7 @@ class Cert_5_1_07_MaxChildCount(unittest.TestCase):
ipaddrs = self.nodes[SED1].get_addrs()
for addr in ipaddrs:
if addr[0:4] != 'fe80' and 'ff:fe00' not in addr:
self.assertTrue(self.nodes[LEADER].ping(addr, size=1280))
self.assertTrue(self.nodes[LEADER].ping(addr, size=1232))
break
for i in range(3, 13):