summaryrefslogtreecommitdiff
path: root/trafgen_conf.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-11-07 16:55:16 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-11-09 13:41:24 +0100
commit66e558ed51ff7d3d7bebb5f5d56114df5eb77e96 (patch)
tree4740acd0e3e239e415008a93f572b15085e316fe /trafgen_conf.h
parentc6aeff438d452be679cc3ba0a600db1d204b49a6 (diff)
trafgen: Allow to build packet from command line
Craft packet directly from command line with same syntax as for conf file. It might be as first step to extend current syntax with specific proto fields. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_conf.h')
-rw-r--r--trafgen_conf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/trafgen_conf.h b/trafgen_conf.h
index dddee8c..deadb7c 100644
--- a/trafgen_conf.h
+++ b/trafgen_conf.h
@@ -55,6 +55,7 @@ static inline bool packet_dyn_has_only_csums(struct packet_dyn *p)
return (p->clen == 0 && p->rlen == 0 && p->slen);
}
+extern void compile_packets_str(char *str, bool verbose, unsigned int cpu);
extern void compile_packets(char *file, bool verbose, unsigned int cpu, bool invoke_cpp);
extern void cleanup_packets(void);