From 126e0038a73b38fac7b3e03173b2d791734cc497 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Tue, 15 Dec 2015 23:09:15 +0200 Subject: 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 Signed-off-by: Tobias Klauser --- trafgen.8 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trafgen.8') diff --git a/trafgen.8 b/trafgen.8 index 18b2b61..6f5d318 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -79,6 +79,10 @@ Pass the packet configuration to the C preprocessor before reading it into trafgen. This allows #define and #include directives (e.g. to include definitions from system headers) to be used in the trafgen configuration file. .PP +.SS -D =, --define = +Add macro definition for the C preprocessor to use it within trafgen file. This +option is used in combination with the -p,--cpp option. +.PP .SS -J, --jumbo-support By default trafgen's ring buffer frames are of a fixed size of 2048 bytes. This means that if you're expecting jumbo frames or even super jumbo frames to -- cgit v1.2.3-54-g00ecf