Skip to content
Snippets Groups Projects
Commit 36ffdbc0 authored by Jian Wang's avatar Jian Wang Committed by Daniel Borkmann
Browse files

bpf, selftest: check tunnel type more accurately


Grep tunnel type directly to make sure 'ip' command supports it.

Signed-off-by: default avatarJian Wang <jianjian.wang1@gmail.com>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 902196a5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment