summaryrefslogtreecommitdiff
path: root/trafgen_conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_conf.h')
-rw-r--r--trafgen_conf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/trafgen_conf.h b/trafgen_conf.h
index efce29c..934f8fe 100644
--- a/trafgen_conf.h
+++ b/trafgen_conf.h
@@ -5,6 +5,10 @@
#include <stdio.h>
#include <sys/types.h>
+#include "trafgen_proto.h"
+
+#define PROTO_MAX_LAYERS 16
+
#define TYPE_INC 0
#define TYPE_DEC 1
@@ -34,6 +38,8 @@ struct csum16 {
struct packet {
uint8_t *payload;
size_t len;
+ struct proto_hdr *headers[PROTO_MAX_LAYERS];
+ size_t headers_count;
};
struct packet_dyn {