summaryrefslogtreecommitdiff
path: root/netsniff-ng.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-11-10 10:28:08 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-11-10 09:44:47 +0100
commit84bf18621169ff4292707bcdcfa0552825757f60 (patch)
tree6b3536f70d6e6f340069d7180b341fae54a91edb /netsniff-ng.c
parent9d6b743e76107038d747eda9ab2dbdf03dd15e33 (diff)
netsniff-ng: Allow to specify compiled BPF from stdin
Allow read compiled BPF instructions from stdin by via '-f -' option. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r--netsniff-ng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index 5119ad5..a7aaae6 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -1193,7 +1193,7 @@ static void __noreturn help(void)
" -C|--fanout-group <id> Join packet fanout group\n"
" -K|--fanout-type <type> Apply fanout discipline: hash|lb|cpu|rnd|roll|qm\n"
" -L|--fanout-opts <opts> Additional fanout options: defrag|roll\n"
- " -f|--filter <bpf-file|expr> Use BPF filter file from bpfc or tcpdump-like expression\n"
+ " -f|--filter <bpf-file|-|expr> Use BPF filter from bpfc file/stdin or tcpdump-like expression\n"
" -t|--type <type> Filter for: host|broadcast|multicast|others|outgoing\n"
" -F|--interval <size|time> Dump interval if -o is a dir: <num>KiB/MiB/GiB/s/sec/min/hrs\n"
" -R|--rfraw Capture or inject raw 802.11 frames\n"