diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-01-26 22:24:58 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-01-28 13:54:33 +0100 |
commit | bc412cb595d8a06ae47ffc90602a25ecbde81e0d (patch) | |
tree | aed70780509f07f8ffe91e47032090d7f7d1ea43 /trafgen_conf.h | |
parent | fd8fc6f33688135b79022716727b06d78ee87fdc (diff) |
trafgen: Add helper to get current packet
Add current_packet() helper for getting current
used packet and make it public to other modules.
It will be used by proto generation logic.
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 887fa3d..50b437b 100644 --- a/trafgen_conf.h +++ b/trafgen_conf.h @@ -62,4 +62,6 @@ extern void cleanup_packets(void); extern void set_fill(uint8_t val, size_t len); +extern struct packet *current_packet(void); + #endif /* TRAFGEN_CONF */ |