Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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