From fd8fc6f33688135b79022716727b06d78ee87fdc Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Tue, 26 Jan 2016 22:24:57 +0200 Subject: trafgen: Export set_fill func Make public set_fill func to be used by proto generation code. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- trafgen_conf.h | 2 ++ trafgen_parser.y | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/trafgen_conf.h b/trafgen_conf.h index b171798..887fa3d 100644 --- a/trafgen_conf.h +++ b/trafgen_conf.h @@ -60,4 +60,6 @@ extern void compile_packets(char *file, bool verbose, unsigned int cpu, bool invoke_cpp, char *const cpp_argv[]); extern void cleanup_packets(void); +extern void set_fill(uint8_t val, size_t len); + #endif /* TRAFGEN_CONF */ diff --git a/trafgen_parser.y b/trafgen_parser.y index 79a8439..49ee577 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -157,7 +157,7 @@ static void set_multi_byte(uint8_t *s, size_t len) set_byte(s[i]); } -static void set_fill(uint8_t val, size_t len) +void set_fill(uint8_t val, size_t len) { size_t i; struct packet *pkt = &packets[packet_last]; -- cgit v1.2.3-54-g00ecf