From 7c14a23050eed1575a696dd77c4d5d845eab22c9 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 5 Aug 2016 16:17:58 +0200 Subject: 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 --- trafgen_proto.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'trafgen_proto.h') 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 #include -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; -- cgit v1.2.3-54-g00ecf