trafgen: proto: Reference to packet from struct proto_hdr
commit59e69bf9106e6f085f90cb33ac7241e3ded41767
authorVadim Kochan <vadim4j@gmail.com>
Tue, 26 Jul 2016 19:35:07 +0000 (26 22:35 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 2 Aug 2016 14:11:19 +0000 (2 16:11 +0200)
tree95d82ae7f5205972ff8b74f7f1f4b258138d3e88
parenta378db32a6e88a04d839bf2c2f27f62d81986186
trafgen: proto: Reference to packet from struct proto_hdr

Using of current_packet() is not possible for dynamically updated fields
so we need to keep the packet index in proto_hdr struct to reference the
correct packet.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
trafgen_conf.h
trafgen_parser.y
trafgen_proto.c
trafgen_proto.h