]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: support comments in batch files
authorQuentin Monnet <quentin.monnet@netronome.com>
Fri, 2 Mar 2018 04:20:08 +0000 (20:20 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 2 Mar 2018 08:46:41 +0000 (09:46 +0100)
commitc68dd1657fc63894c2bb896a01f49205d10978a6
tree9f1d8bcd57bca29769ed9441fbcbdbf409d3cdff
parent669097e10a9c920cf5ed1b4b68b25a0865ffe036
tools: bpftool: support comments in batch files

Replace '#' by '\0' in commands read from batch files in order to avoid
processing the remaining part of the line, thus allowing users to use
comments in the files.

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