diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2015-12-15 23:09:15 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-12-17 10:55:58 +0100 |
commit | 126e0038a73b38fac7b3e03173b2d791734cc497 (patch) | |
tree | 4ec36f3ba75e1ef4111134c1fc4afc1e8566dd66 /trafgen_conf.h | |
parent | 121119215276e645b358d7ce0593251f215920df (diff) |
trafgen: Added option to pass macro/define for C preprocessor
Add -D,--define option which allows to pass multiple
macro/defines which can be used in trafgen script
(e.g. by #ifdef ).
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trafgen_conf.h b/trafgen_conf.h index deadb7c..db3258f 100644 --- a/trafgen_conf.h +++ b/trafgen_conf.h @@ -56,7 +56,8 @@ static inline bool packet_dyn_has_only_csums(struct packet_dyn *p) } 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 compile_packets(char *file, bool verbose, unsigned int cpu, + bool invoke_cpp, char **cpp_argv); extern void cleanup_packets(void); #endif /* TRAFGEN_CONF */ |