Linux 4.19.133
[linux/fpc-iii.git] / tools / testing / selftests / net / run_afpackettests
blobbea079edc278c69e075f6dfa76647d43894697af
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 if [ $(id -u) != 0 ]; then
5 echo $msg must be run as root >&2
6 exit 0
7 fi
9 echo "--------------------"
10 echo "running psock_fanout test"
11 echo "--------------------"
12 ./in_netns.sh ./psock_fanout
13 if [ $? -ne 0 ]; then
14 echo "[FAIL]"
15 else
16 echo "[PASS]"
19 echo "--------------------"
20 echo "running psock_tpacket test"
21 echo "--------------------"
22 ./in_netns.sh ./psock_tpacket
23 if [ $? -ne 0 ]; then
24 echo "[FAIL]"
25 else
26 echo "[PASS]"