summaryrefslogtreecommitdiff
path: root/bpfc.8
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-12-15 23:09:14 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-12-17 10:41:17 +0100
commit121119215276e645b358d7ce0593251f215920df (patch)
tree7d6c5a4d724d69d0cad54201f2d6b6f20d462339 /bpfc.8
parent6a310b07a1c5f73998fd0ff265d5701de04ab4f1 (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.84
1 files changed, 4 insertions, 0 deletions
diff --git a/bpfc.8 b/bpfc.8
index 8a99e2e..3456e1e 100644
--- a/bpfc.8
+++ b/bpfc.8
@@ -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.