提交 36ffdbc0 编写于 作者: J Jian Wang 提交者: Daniel Borkmann

bpf, selftest: check tunnel type more accurately

Grep tunnel type directly to make sure 'ip' command supports it.
Signed-off-by: NJian Wang <jianjian.wang1@gmail.com>
Acked-by: NYonghong Song <yhs@fb.com>
Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
上级 902196a5
......@@ -668,7 +668,7 @@ cleanup_exit()
check()
{
ip link help $1 2>&1 | grep -q "^Usage:"
ip link help 2>&1 | grep -q "\s$1\s"
if [ $? -ne 0 ];then
echo "SKIP $1: iproute2 not support"
cleanup
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册