3 # This test is for checking rtnetlink callpaths, and get as much coverage as possible.
10 # Kselftest framework requirement - SKIP code is 4.
13 # set global exit status, but never reset nonzero one.
16 if [ $ret -eq 0 ]; then
21 # same but inverted -- used when command must fail for test to pass
31 ip link add name "$devdummy" type dummy
33 ip link set "$devdummy" up
39 ip link del dev "$devdummy"
48 ip netconf show dev "$dev" > /dev/null
52 ip -$f netconf show dev "$dev" > /dev/null
56 if [ $ret -ne 0 ] ;then
57 echo "FAIL: ip netconf show $dev"
58 test $r -eq 0 && ret=0
63 # add a bridge with vlans on top
67 vlandev="testbr-vlan1"
70 ip link add name "$devbr" type bridge
73 ip link set dev "$devdummy" master "$devbr"
76 ip link set "$devbr" up
79 ip link add link "$devbr" name "$vlandev" type vlan id 1
81 ip addr add dev "$vlandev" 10.200.7.23/30
83 ip -6 addr add dev "$vlandev" dead:42::1234/64
85 ip -d link > /dev/null
87 ip r s t all > /dev/null
90 for name in "$devbr" "$vlandev" "$devdummy" ; do
91 kci_test_netconf "$name"
94 ip -6 addr del dev "$vlandev" dead:42::1234/64
97 ip link del dev "$vlandev"
99 ip link del dev "$devbr"
102 if [ $ret -ne 0 ];then
103 echo "FAIL: bridge setup"
106 echo "PASS: bridge setup"
117 ip tunnel add $gredev mode gre remote $rem local $loc ttl 1
119 ip link set $gredev up
121 ip addr add 10.23.7.10 dev $gredev
123 ip route add 10.23.8.0/30 dev $gredev
125 ip addr add dev "$devdummy" 10.23.7.11/24
132 kci_test_netconf "$gredev"
134 ip addr del dev "$devdummy" 10.23.7.11/24
140 if [ $ret -ne 0 ];then
141 echo "FAIL: gre tunnel endpoint"
144 echo "PASS: gre tunnel endpoint"
147 # tc uses rtnetlink too, for full tc testing
148 # please see tools/testing/selftests/tc-testing.
154 tc qdisc add dev "$dev" root handle 1: htb
156 tc class add dev "$dev" parent 1: classid 1:10 htb rate 1mbit
158 tc filter add dev "$dev" parent 1:0 prio 5 handle ffe: protocol ip u32 divisor 256
160 tc filter add dev "$dev" parent 1:0 prio 5 handle ffd: protocol ip u32 divisor 256
162 tc filter add dev "$dev" parent 1:0 prio 5 handle ffc: protocol ip u32 divisor 256
164 tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32 ht ffe:2: match ip src 10.0.0.3 flowid 1:10
166 tc filter add dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:2 u32 ht ffe:2: match ip src 10.0.0.2 flowid 1:10
168 tc filter show dev "$dev" parent 1:0 > /dev/null
170 tc filter del dev "$dev" protocol ip parent 1: prio 5 handle ffe:2:3 u32
172 tc filter show dev "$dev" parent 1:0 > /dev/null
174 tc qdisc del dev "$dev" root handle 1: htb
177 if [ $ret -ne 0 ];then
178 echo "FAIL: tc htb hierarchy"
181 echo "PASS: tc htb hierarchy"
185 kci_test_polrouting()
188 ip rule add fwmark 1 lookup 100
190 ip route add local 0.0.0.0/0 dev lo table 100
192 ip r s t all > /dev/null
194 ip rule del fwmark 1 lookup 100
196 ip route del local 0.0.0.0/0 dev lo table 100
199 if [ $ret -ne 0 ];then
200 echo "FAIL: policy route test"
203 echo "PASS: policy routing"
208 local hash_policy=$(sysctl -n net.ipv4.fib_multipath_hash_policy)
212 ip route get 127.0.0.1 > /dev/null
214 ip route get 127.0.0.1 dev "$devdummy" > /dev/null
216 ip route get ::1 > /dev/null
218 ip route get fe80::1 dev "$devdummy" > /dev/null
220 ip route get 127.0.0.1 from 127.0.0.1 oif lo tos 0x1 mark 0x1 > /dev/null
222 ip route get ::1 from ::1 iif lo oif lo tos 0x1 mark 0x1 > /dev/null
224 ip addr add dev "$devdummy" 10.23.7.11/24
226 ip route get 10.23.7.11 from 10.23.7.12 iif "$devdummy" > /dev/null
228 ip route add 10.23.8.0/24 \
229 nexthop via 10.23.7.13 dev "$devdummy" \
230 nexthop via 10.23.7.14 dev "$devdummy"
232 sysctl -wq net.ipv4.fib_multipath_hash_policy=0
233 ip route get 10.23.8.11 > /dev/null
235 sysctl -wq net.ipv4.fib_multipath_hash_policy=1
236 ip route get 10.23.8.11 > /dev/null
238 sysctl -wq net.ipv4.fib_multipath_hash_policy="$hash_policy"
239 ip route del 10.23.8.0/24
241 ip addr del dev "$devdummy" 10.23.7.11/24
244 if [ $ret -ne 0 ];then
245 echo "FAIL: route get"
249 echo "PASS: route get"
256 ip addrlabel add prefix dead::/64 dev lo label 1
259 ip addrlabel list |grep -q "prefix dead::/64 dev lo label 1"
262 ip addrlabel del prefix dead::/64 dev lo label 1 2> /dev/null
265 ip addrlabel add prefix dead::/64 label 1 2> /dev/null
268 ip addrlabel del prefix dead::/64 label 1 2> /dev/null
271 # concurrent add/delete
272 for i in $(seq 1 1000); do
273 ip addrlabel add prefix 1c3::/64 label 12345 2>/dev/null
276 for i in $(seq 1 1000); do
277 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
282 ip addrlabel del prefix 1c3::/64 label 12345 2>/dev/null
284 if [ $ret -ne 0 ];then
285 echo "FAIL: ipv6 addrlabel"
289 echo "PASS: ipv6 addrlabel"
296 syspathname="/sys/class/net/$devdummy/ifalias"
298 ip link set dev "$devdummy" alias "$namewant"
301 if [ $ret -ne 0 ]; then
302 echo "FAIL: cannot set interface alias of $devdummy to $namewant"
306 ip link show "$devdummy" | grep -q "alias $namewant"
309 if [ -r "$syspathname" ] ; then
310 read namehave < "$syspathname"
311 if [ "$namewant" != "$namehave" ]; then
312 echo "FAIL: did set ifalias $namewant but got $namehave"
317 echo "$namewant" > "$syspathname"
318 ip link show "$devdummy" | grep -q "alias $namewant"
321 # sysfs interface allows to delete alias again
322 echo "" > "$syspathname"
324 ip link show "$devdummy" | grep -q "alias $namewant"
327 for i in $(seq 1 100); do
328 uuidgen > "$syspathname" &
333 # re-add the alias -- kernel should free mem when dummy dev is removed
334 ip link set dev "$devdummy" alias "$namewant"
338 if [ $ret -ne 0 ]; then
339 echo "FAIL: set interface alias $devdummy to $namewant"
343 echo "PASS: set ifalias $namewant for $devdummy"
351 ip link show type vrf 2>/dev/null
352 if [ $? -ne 0 ]; then
353 echo "SKIP: vrf: iproute2 too old"
357 ip link add "$vrfname" type vrf table 10
359 if [ $ret -ne 0 ];then
360 echo "FAIL: can't add vrf interface, skipping test"
364 ip -br link show type vrf | grep -q "$vrfname"
366 if [ $ret -ne 0 ];then
367 echo "FAIL: created vrf device not found"
371 ip link set dev "$vrfname" up
374 ip link set dev "$devdummy" master "$vrfname"
376 ip link del dev "$vrfname"
379 if [ $ret -ne 0 ];then
387 kci_test_encap_vxlan()
394 ip netns exec "$testns" ip link add "$vxlan" type vxlan id 42 group 239.1.1.1 \
395 dev "$devdummy" dstport 4789 2>/dev/null
396 if [ $? -ne 0 ]; then
397 echo "FAIL: can't add vxlan interface, skipping test"
402 ip netns exec "$testns" ip addr add 10.2.11.49/24 dev "$vxlan"
405 ip netns exec "$testns" ip link set up dev "$vxlan"
408 ip netns exec "$testns" ip link add link "$vxlan" name "$vlan" type vlan id 1
411 ip netns exec "$testns" ip link del "$vxlan"
414 if [ $ret -ne 0 ]; then
427 ip fou help 2>&1 |grep -q 'Usage: ip fou'
429 echo "SKIP: fou: iproute2 too old"
433 ip netns exec "$testns" ip fou add port 7777 ipproto 47 2>/dev/null
435 echo "FAIL: can't add fou port 7777, skipping test"
439 ip netns exec "$testns" ip fou add port 8888 ipproto 4
442 ip netns exec "$testns" ip fou del port 9999 2>/dev/null
445 ip netns exec "$testns" ip fou del port 7777
448 if [ $ret -ne 0 ]; then
456 # test various encap methods, use netns to avoid unwanted interference
462 ip netns add "$testns"
463 if [ $? -ne 0 ]; then
464 echo "SKIP encap tests: cannot add net namespace $testns"
468 ip netns exec "$testns" ip link set lo up
471 ip netns exec "$testns" ip link add name "$devdummy" type dummy
473 ip netns exec "$testns" ip link set "$devdummy" up
476 kci_test_encap_vxlan "$testns"
477 kci_test_encap_fou "$testns"
479 ip netns del "$testns"
484 msname="test_macsec0"
487 ip macsec help 2>&1 | grep -q "^Usage: ip macsec"
488 if [ $? -ne 0 ]; then
489 echo "SKIP: macsec: iproute2 too old"
493 ip link add link "$devdummy" "$msname" type macsec port 42 encrypt on
495 if [ $ret -ne 0 ];then
496 echo "FAIL: can't add macsec interface, skipping test"
500 ip macsec add "$msname" tx sa 0 pn 1024 on key 01 12345678901234567890123456789012
503 ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef"
506 ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 0123456789abcdef0123456789abcdef
509 ip macsec show > /dev/null
512 ip link del dev "$msname"
515 if [ $ret -ne 0 ];then
523 #-------------------------------------------------------------------
525 # ip x s add proto esp src 14.0.0.52 dst 14.0.0.70 \
526 # spi 0x07 mode transport reqid 0x07 replay-window 32 \
527 # aead 'rfc4106(gcm(aes))' 1234567890123456dcba 128 \
528 # sel src 14.0.0.52/24 dst 14.0.0.70/24
529 # ip x p add dir out src 14.0.0.52/24 dst 14.0.0.70/24 \
530 # tmpl proto esp src 14.0.0.52 dst 14.0.0.70 \
531 # spi 0x07 mode transport reqid 0x07
533 # Subcommands not tested
540 #-------------------------------------------------------------------
544 algo="aead rfc4106(gcm(aes)) 0x3132333435363738393031323334353664636261 128"
549 ip addr add $srcip dev $devdummy
551 # flush to be sure there's nothing configured
552 ip x s flush ; ip x p flush
555 # start the monitor in the background
556 tmpfile=`mktemp /var/run/ipsectestXXX`
557 mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null`
560 ipsecid="proto esp src $srcip dst $dstip spi 0x07"
561 ip x s add $ipsecid \
562 mode transport reqid 0x07 replay-window 32 \
563 $algo sel src $srcip/24 dst $dstip/24
566 lines=`ip x s list | grep $srcip | grep $dstip | wc -l`
570 ip x s count | grep -q "SAD count 1"
573 lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l`
577 ip x s delete $ipsecid
580 lines=`ip x s list | wc -l`
584 ipsecsel="dir out src $srcip/24 dst $dstip/24"
585 ip x p add $ipsecsel \
586 tmpl proto esp src $srcip dst $dstip \
587 spi 0x07 mode transport reqid 0x07
590 lines=`ip x p list | grep $srcip | grep $dstip | wc -l`
594 ip x p count | grep -q "SPD IN 0 OUT 1 FWD 0"
597 lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l`
601 ip x p delete $ipsecsel
604 lines=`ip x p list | wc -l`
608 # check the monitor results
610 lines=`wc -l $tmpfile | cut "-d " -f1`
615 # clean up any leftovers
620 ip addr del $srcip/32 dev $devdummy
622 if [ $ret -ne 0 ]; then
629 #-------------------------------------------------------------------
631 # ip x s add proto esp src 14.0.0.52 dst 14.0.0.70 \
632 # spi 0x07 mode transport reqid 0x07 replay-window 32 \
633 # aead 'rfc4106(gcm(aes))' 1234567890123456dcba 128 \
634 # sel src 14.0.0.52/24 dst 14.0.0.70/24
635 # offload dev sim1 dir out
636 # ip x p add dir out src 14.0.0.52/24 dst 14.0.0.70/24 \
637 # tmpl proto esp src 14.0.0.52 dst 14.0.0.70 \
638 # spi 0x07 mode transport reqid 0x07
640 #-------------------------------------------------------------------
641 kci_test_ipsec_offload()
644 algo="aead rfc4106(gcm(aes)) 0x3132333435363738393031323334353664636261 128"
648 sysfsd=/sys/kernel/debug/netdevsim/$dev
651 # setup netdevsim since dummydev doesn't have offload support
654 if [ $ret -ne 0 ]; then
655 echo "FAIL: ipsec_offload can't load netdevsim"
659 ip link add $dev type netdevsim
660 ip addr add $srcip dev $dev
662 if [ ! -d $sysfsd ] ; then
663 echo "FAIL: ipsec_offload can't create device $dev"
666 if [ ! -f $sysfsf ] ; then
667 echo "FAIL: ipsec_offload netdevsim doesn't support IPsec offload"
671 # flush to be sure there's nothing configured
672 ip x s flush ; ip x p flush
674 # create offloaded SAs, both in and out
675 ip x p add dir out src $srcip/24 dst $dstip/24 \
676 tmpl proto esp src $srcip dst $dstip spi 9 \
677 mode transport reqid 42
679 ip x p add dir out src $dstip/24 dst $srcip/24 \
680 tmpl proto esp src $dstip dst $srcip spi 9 \
681 mode transport reqid 42
684 ip x s add proto esp src $srcip dst $dstip spi 9 \
685 mode transport reqid 42 $algo sel src $srcip/24 dst $dstip/24 \
686 offload dev $dev dir out
688 ip x s add proto esp src $dstip dst $srcip spi 9 \
689 mode transport reqid 42 $algo sel src $dstip/24 dst $srcip/24 \
690 offload dev $dev dir in
692 if [ $ret -ne 0 ]; then
693 echo "FAIL: ipsec_offload can't create SA"
697 # does offload show up in ip output
698 lines=`ip x s list | grep -c "crypto offload parameters: dev $dev dir"`
699 if [ $lines -ne 2 ] ; then
700 echo "FAIL: ipsec_offload SA offload missing from list output"
704 # use ping to exercise the Tx path
705 ping -I $dev -c 3 -W 1 -i 0 $dstip >/dev/null
707 # does driver have correct offload info
708 diff $sysfsf - << EOF
710 sa[0] tx ipaddr=0x00000000 00000000 00000000 00000000
711 sa[0] spi=0x00000009 proto=0x32 salt=0x61626364 crypt=1
712 sa[0] key=0x34333231 38373635 32313039 36353433
713 sa[1] rx ipaddr=0x00000000 00000000 00000000 037ba8c0
714 sa[1] spi=0x00000009 proto=0x32 salt=0x61626364 crypt=1
715 sa[1] key=0x34333231 38373635 32313039 36353433
717 if [ $? -ne 0 ] ; then
718 echo "FAIL: ipsec_offload incorrect driver data"
722 # does offload get removed from driver
725 lines=`grep -c "SA count=0" $sysfsf`
726 if [ $lines -ne 1 ] ; then
727 echo "FAIL: ipsec_offload SA not removed from driver"
731 # clean up any leftovers
735 if [ $ret -ne 0 ]; then
736 echo "FAIL: ipsec_offload"
739 echo "PASS: ipsec_offload"
748 ip netns add "$testns"
749 if [ $? -ne 0 ]; then
750 echo "SKIP gretap tests: cannot add net namespace $testns"
754 ip link help gretap 2>&1 | grep -q "^Usage:"
756 echo "SKIP: gretap: iproute2 too old"
757 ip netns del "$testns"
762 ip netns exec "$testns" ip link add dev "$DEV_NS" type gretap seq \
763 key 102 local 172.16.1.100 remote 172.16.1.200
766 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
769 ip netns exec "$testns" ip link set dev $DEV_NS up
772 ip netns exec "$testns" ip link del "$DEV_NS"
776 ip netns exec "$testns" ip link add dev "$DEV_NS" type gretap external
779 ip netns exec "$testns" ip link del "$DEV_NS"
782 if [ $ret -ne 0 ]; then
784 ip netns del "$testns"
789 ip netns del "$testns"
798 ip netns add "$testns"
799 if [ $? -ne 0 ]; then
800 echo "SKIP ip6gretap tests: cannot add net namespace $testns"
804 ip link help ip6gretap 2>&1 | grep -q "^Usage:"
806 echo "SKIP: ip6gretap: iproute2 too old"
807 ip netns del "$testns"
812 ip netns exec "$testns" ip link add dev "$DEV_NS" type ip6gretap seq \
813 key 102 local fc00:100::1 remote fc00:100::2
816 ip netns exec "$testns" ip addr add dev "$DEV_NS" fc00:200::1/96
819 ip netns exec "$testns" ip link set dev $DEV_NS up
822 ip netns exec "$testns" ip link del "$DEV_NS"
826 ip netns exec "$testns" ip link add dev "$DEV_NS" type ip6gretap external
829 ip netns exec "$testns" ip link del "$DEV_NS"
832 if [ $ret -ne 0 ]; then
833 echo "FAIL: ip6gretap"
834 ip netns del "$testns"
837 echo "PASS: ip6gretap"
839 ip netns del "$testns"
848 ip link help erspan 2>&1 | grep -q "^Usage:"
850 echo "SKIP: erspan: iproute2 too old"
854 ip netns add "$testns"
855 if [ $? -ne 0 ]; then
856 echo "SKIP erspan tests: cannot add net namespace $testns"
860 # test native tunnel erspan v1
861 ip netns exec "$testns" ip link add dev "$DEV_NS" type erspan seq \
862 key 102 local 172.16.1.100 remote 172.16.1.200 \
863 erspan_ver 1 erspan 488
866 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
869 ip netns exec "$testns" ip link set dev $DEV_NS up
872 ip netns exec "$testns" ip link del "$DEV_NS"
875 # test native tunnel erspan v2
876 ip netns exec "$testns" ip link add dev "$DEV_NS" type erspan seq \
877 key 102 local 172.16.1.100 remote 172.16.1.200 \
878 erspan_ver 2 erspan_dir ingress erspan_hwid 7
881 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
884 ip netns exec "$testns" ip link set dev $DEV_NS up
887 ip netns exec "$testns" ip link del "$DEV_NS"
891 ip netns exec "$testns" ip link add dev "$DEV_NS" type erspan external
894 ip netns exec "$testns" ip link del "$DEV_NS"
897 if [ $ret -ne 0 ]; then
899 ip netns del "$testns"
904 ip netns del "$testns"
913 ip link help ip6erspan 2>&1 | grep -q "^Usage:"
915 echo "SKIP: ip6erspan: iproute2 too old"
919 ip netns add "$testns"
920 if [ $? -ne 0 ]; then
921 echo "SKIP ip6erspan tests: cannot add net namespace $testns"
925 # test native tunnel ip6erspan v1
926 ip netns exec "$testns" ip link add dev "$DEV_NS" type ip6erspan seq \
927 key 102 local fc00:100::1 remote fc00:100::2 \
928 erspan_ver 1 erspan 488
931 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
934 ip netns exec "$testns" ip link set dev $DEV_NS up
937 ip netns exec "$testns" ip link del "$DEV_NS"
940 # test native tunnel ip6erspan v2
941 ip netns exec "$testns" ip link add dev "$DEV_NS" type ip6erspan seq \
942 key 102 local fc00:100::1 remote fc00:100::2 \
943 erspan_ver 2 erspan_dir ingress erspan_hwid 7
946 ip netns exec "$testns" ip addr add dev "$DEV_NS" 10.1.1.100/24
949 ip netns exec "$testns" ip link set dev $DEV_NS up
952 ip netns exec "$testns" ip link del "$DEV_NS"
956 ip netns exec "$testns" ip link add dev "$DEV_NS" \
957 type ip6erspan external
960 ip netns exec "$testns" ip link del "$DEV_NS"
963 if [ $ret -ne 0 ]; then
964 echo "FAIL: ip6erspan"
965 ip netns del "$testns"
968 echo "PASS: ip6erspan"
970 ip netns del "$testns"
975 IP="ip -netns testns"
976 BRIDGE="bridge -netns testns"
979 test_mac=de:ad:be:ef:13:37
984 bridge fdb help 2>&1 |grep -q 'bridge fdb get'
986 echo "SKIP: fdb get tests: iproute2 too old"
991 if [ $? -ne 0 ]; then
992 echo "SKIP fdb get tests: cannot add net namespace $testns"
996 $IP link add "$vxlandev" type vxlan id 10 local $localip \
997 dstport 4789 2>/dev/null
999 $IP link add name "$brdev" type bridge &>/dev/null
1001 $IP link set dev "$vxlandev" master "$brdev" &>/dev/null
1003 $BRIDGE fdb add $test_mac dev "$vxlandev" master &>/dev/null
1005 $BRIDGE fdb add $test_mac dev "$vxlandev" dst $dstip self &>/dev/null
1008 $BRIDGE fdb get $test_mac brport "$vxlandev" 2>/dev/null | grep -q "dev $vxlandev master $brdev"
1010 $BRIDGE fdb get $test_mac br "$brdev" 2>/dev/null | grep -q "dev $vxlandev master $brdev"
1012 $BRIDGE fdb get $test_mac dev "$vxlandev" self 2>/dev/null | grep -q "dev $vxlandev dst $dstip"
1015 ip netns del testns &>/dev/null
1017 if [ $ret -ne 0 ]; then
1018 echo "FAIL: bridge fdb get"
1022 echo "PASS: bridge fdb get"
1025 kci_test_neigh_get()
1027 dstmac=de:ad:be:ef:13:37
1032 ip neigh help 2>&1 |grep -q 'ip neigh get'
1033 if [ $? -ne 0 ];then
1034 echo "SKIP: fdb get tests: iproute2 too old"
1039 ip neigh add $dstip lladdr $dstmac dev "$devdummy" > /dev/null
1041 ip neigh get $dstip dev "$devdummy" 2> /dev/null | grep -q "$dstmac"
1043 ip neigh del $dstip lladdr $dstmac dev "$devdummy" > /dev/null
1047 ip neigh add proxy $dstip dev "$devdummy" > /dev/null
1049 ip neigh get proxy $dstip dev "$devdummy" 2>/dev/null | grep -q "$dstip"
1051 ip neigh del proxy $dstip dev "$devdummy" > /dev/null
1055 ip neigh add $dstip6 lladdr $dstmac dev "$devdummy" > /dev/null
1057 ip neigh get $dstip6 dev "$devdummy" 2> /dev/null | grep -q "$dstmac"
1059 ip neigh del $dstip6 lladdr $dstmac dev "$devdummy" > /dev/null
1063 ip neigh add proxy $dstip6 dev "$devdummy" > /dev/null
1065 ip neigh get proxy $dstip6 dev "$devdummy" 2>/dev/null | grep -q "$dstip6"
1067 ip neigh del proxy $dstip6 dev "$devdummy" > /dev/null
1070 if [ $ret -ne 0 ];then
1071 echo "FAIL: neigh get"
1075 echo "PASS: neigh get"
1081 if [ $ret -ne 0 ];then
1082 echo "FAIL: cannot add dummy interface"
1101 kci_test_ipsec_offload
1108 #check for needed privileges
1109 if [ "$(id -u)" -ne 0 ];then
1110 echo "SKIP: Need root privileges"
1115 $x -Version 2>/dev/null >/dev/null
1116 if [ $? -ne 0 ];then
1117 echo "SKIP: Could not run test without the $x tool"