From bc412cb595d8a06ae47ffc90602a25ecbde81e0d Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Tue, 26 Jan 2016 22:24:58 +0200 Subject: 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 Signed-off-by: Tobias Klauser --- trafgen_conf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'trafgen_conf.h') 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 */ -- cgit v1.2.3-54-g00ecf