summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-01-26 22:24:57 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-01-28 13:54:33 +0100
commitfd8fc6f33688135b79022716727b06d78ee87fdc (patch)
tree8aeda7b85ecd33cbbd1bc988f75e270fdc8eba89
parentc5bd0062b3e6b6456512d223b84e8e82aa6aa1c9 (diff)
trafgen: Export set_fill func
Make public set_fill func to be used by proto generation code. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-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];