summaryrefslogtreecommitdiff
path: root/cesar/lib/src/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/lib/src/stats.c')
-rw-r--r--cesar/lib/src/stats.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cesar/lib/src/stats.c b/cesar/lib/src/stats.c
index 26fbb0985a..f355fce906 100644
--- a/cesar/lib/src/stats.c
+++ b/cesar/lib/src/stats.c
@@ -16,6 +16,7 @@
#include "stats.h"
#include "slab.h"
+#include "common/defs/ethernet.h"
#include "common/defs/homeplugAV.h"
#include <string.h>
@@ -560,7 +561,7 @@ lib_stats_write_stats (const char *stats)
{
/* Check parameter. */
dbg_assert (stats);
- dbg_assert (strlen (stats) < HPAV_MME_PAYLOAD_MAX_SIZE);
+ dbg_assert (strlen (stats) < HPAV_MME_PAYLOAD_MAX_SIZE_WITHOUT_VLAN);
/* Empty string is tolerated. */
if (stats[0] == '\0')
@@ -568,7 +569,7 @@ lib_stats_write_stats (const char *stats)
const char delim[] = " ";
char *stat;
- char copy_stats[HPAV_MME_PAYLOAD_MAX_SIZE];
+ char copy_stats[HPAV_MME_PAYLOAD_MAX_SIZE_WITHOUT_VLAN];
/* Copy stats. */
strcpy (copy_stats, stats);