fix buffer size allocation

This commit is contained in:
Bastian Bloessl
2016-08-22 15:31:47 +02:00
parent 43abd875d9
commit 23a195311a
3 changed files with 13 additions and 11 deletions
+4 -3
View File
@@ -23,9 +23,10 @@
#include <cinttypes>
#include <iostream>
#define MAX_FRAME_SIZE (1500 + 28 + 4)
#define MAX_SYM (((16 + 8 * MAX_FRAME_SIZE + 6) / 24) + 1)
#define MAX_ENCODED_BITS ((16 + 8 * MAX_FRAME_SIZE + 6) * 2 + 288)
#define MAX_PAYLOAD_SIZE 1500
#define MAX_PSDU_SIZE (MAX_PAYLOAD_SIZE + 28) // MAC, CRC
#define MAX_SYM (((16 + 8 * MAX_PSDU_SIZE + 6) / 24) + 1)
#define MAX_ENCODED_BITS ((16 + 8 * MAX_PSDU_SIZE + 6) * 2 + 288)
#define dout d_debug && std::cout