tools: bpftool: read from stdin when batch file name is "-"
authorQuentin Monnet <quentin.monnet@netronome.com>
Fri, 2 Mar 2018 04:20:10 +0000 (20:20 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 2 Mar 2018 08:46:41 +0000 (09:46 +0100)
commit416656bbaa57a5be75514498491b7e24c58537c1
treeb32f81211aeba94746f45459a783455a2934701a
parent65d538dde625d93359ca4e33d2311f8598f423a6
tools: bpftool: read from stdin when batch file name is "-"

Make bpftool read its command list from standard input when the name if
the input file is a single dash.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/main.c