diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2015-12-15 23:09:14 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-12-17 10:41:17 +0100 |
commit | 121119215276e645b358d7ce0593251f215920df (patch) | |
tree | 7d6c5a4d724d69d0cad54201f2d6b6f20d462339 /bpfc.8 | |
parent | 6a310b07a1c5f73998fd0ff265d5701de04ab4f1 (diff) |
bpfc: Add option to pass macro/define for C preprocessor
Add -D,--define option to pass macro/define for C preprocessor
(e.g. to use #ifdef's within bpf file). Option allows to pass
multiple -D,--define options.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Diffstat (limited to 'bpfc.8')
-rw-r--r-- | bpfc.8 | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -65,6 +65,10 @@ Pass the bpf program through the C preprocessor before reading it in bpfc. This allows #define and #include directives (e.g. to include definitions from system headers) to be used in the bpf program. .PP +.SS -D <name>=<definition>, --define <name>=<definition> +Add macro definition for the C preprocessor to use it within bpf file. This +option is used in combination with the -p,--cpp option. +.PP .SS -f <format>, --format <format> Specify a different output format than the default that is netsniff-ng compatible. The <format> specifier can be: C, netsniff-ng, xt_bpf, tcpdump. |