summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trafgen_conf.h2
-rw-r--r--trafgen_parser.y2
2 files changed, 3 insertions, 1 deletions
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];