summaryrefslogtreecommitdiff
path: root/trafgen_proto.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-08-05 16:17:58 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-08-09 11:42:57 +0200
commit7c14a23050eed1575a696dd77c4d5d845eab22c9 (patch)
treec0bf70b61ebb44a934b413b8756ab5fa2ea18191 /trafgen_proto.h
parenta0e2b28801d2ddb5ccf80a7c5d0b9ac9b75f736d (diff)
trafgen: proto: Don't store context in each proto header
Use a module variable to access the proto context instead of storing a pointer in every header. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_proto.h')
-rw-r--r--trafgen_proto.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/trafgen_proto.h b/trafgen_proto.h
index d2fde62..f25078a 100644
--- a/trafgen_proto.h
+++ b/trafgen_proto.h
@@ -5,10 +5,6 @@
#include <stdint.h>
#include <stdbool.h>
-struct proto_ctx {
- const char *dev;
-};
-
enum proto_id {
PROTO_NONE,
PROTO_ETH,
@@ -50,7 +46,6 @@ struct proto_hdr {
enum proto_layer layer;
struct proto_hdr *next;
- struct proto_ctx *ctx;
uint16_t pkt_offset;
uint32_t pkt_id;
struct proto_field *fields;