summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-03-28 10:10:32 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-03-28 10:10:32 +0300
commitdd5fb4a71be0964d9a904af02b4010d87f28f66b (patch)
tree39c13cef15c2600341829d3e4e904e5073c73660 /src/common
parent68ed79b989008006897108c7978d5c65fef47711 (diff)
fix valgrind faiulre. Read memory of too short packet
Diffstat (limited to 'src/common')
-rwxr-xr-xsrc/common/Network/Packet/EthernetHeader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/Network/Packet/EthernetHeader.h b/src/common/Network/Packet/EthernetHeader.h
index 87d1ed91..c9dcdbe2 100755
--- a/src/common/Network/Packet/EthernetHeader.h
+++ b/src/common/Network/Packet/EthernetHeader.h
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2015-2015 Cisco Systems, Inc.
+Copyright (c) 2015-2016 Cisco Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@ limitations under the License.
#include "PacketHeaderBase.h"
#include "MacAddress.h"
+#define ETH_HDR_LEN 14
/**
* This class encapsulates an ethernet header.