diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-07-26 22:35:07 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-08-02 16:11:19 +0200 |
commit | 59e69bf9106e6f085f90cb33ac7241e3ded41767 (patch) | |
tree | 95d82ae7f5205972ff8b74f7f1f4b258138d3e88 /trafgen_conf.h | |
parent | a378db32a6e88a04d839bf2c2f27f62d81986186 (diff) |
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>
Diffstat (limited to 'trafgen_conf.h')
-rw-r--r-- | trafgen_conf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/trafgen_conf.h b/trafgen_conf.h index 50b437b..efce29c 100644 --- a/trafgen_conf.h +++ b/trafgen_conf.h @@ -63,5 +63,7 @@ extern void cleanup_packets(void); extern void set_fill(uint8_t val, size_t len); extern struct packet *current_packet(void); +extern uint32_t current_packet_id(void); +extern struct packet *packet_get(uint32_t id); #endif /* TRAFGEN_CONF */ |