summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-11-21 23:55:42 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-11-23 11:07:57 +0100
commita685d6d030ea5599f97346d9607b149cddaec682 (patch)
tree484fc767ed7435925f65eddf7794ecb5b0ae66aa /trafgen_parser.y
parentcd9305c06068db649545dc3efdae92c56f948cfa (diff)
trafgen: parser: Fix undefined ETH_P_802AD on 2.6.x Linux
ETH_P_8021AD might be undefined on 2.6.x Linux version (tested on Ubuntu 10 with 2.6.32 Linux), so lets check and define it. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 8ebf464..54aafe7 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -37,6 +37,10 @@
#include "csum.h"
#include "cpp.h"
+#ifndef ETH_P_8021AD
+#define ETH_P_8021AD 0x88A8
+#endif
+
#define YYERROR_VERBOSE 0
#define YYDEBUG 0
#define YYENABLE_NLS 1