Make public set_fill func to be used by proto generation code.
Signed-off-by: Vadim Kochan <[email protected]>
---
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];
--
2.6.3
--
You received this message because you are subscribed to the Google Groups
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.