trafgen: proto: Don't store context in each proto header
commit7c14a23050eed1575a696dd77c4d5d845eab22c9
authorTobias Klauser <tklauser@distanz.ch>
Fri, 5 Aug 2016 14:17:58 +0000 (5 16:17 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 9 Aug 2016 09:42:57 +0000 (9 11:42 +0200)
treec0bf70b61ebb44a934b413b8756ab5fa2ea18191
parenta0e2b28801d2ddb5ccf80a7c5d0b9ac9b75f736d
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>
trafgen_proto.c
trafgen_proto.h