3 # In case IPv6 is compiled as a module.
4 [ -f /proc/net/if_inet6 ] || insmod $DIR/kernel/net-next/net/ipv6/ipv6.ko
6 # Minimal network setup.
8 ip link set lo mtu 16436
11 # Allow people to run ping.
12 echo "0 65536" > /proc/sys/net/ipv4/ping_group_range
14 # Fall out to a shell once the test completes or if there's an error.
15 trap "exec /bin/bash" ERR EXIT
17 # Find and run the test.
18 test=$(cat /proc/cmdline | sed -re 's/.*net_test=([^ ]*).*/\1/g')
19 echo -e "Running $test\n"