Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/bash
0002 # SPDX-License-Identifier: GPL-2.0
0003 
0004 lib_dir=$(dirname $0)/../../../net/forwarding
0005 
0006 ALL_TESTS="
0007         l3_monitor_test
0008 "
0009 NUM_NETIFS=0
0010 source $lib_dir/lib.sh
0011 
0012 swp=$NETIF_NO_CABLE
0013 
0014 cleanup()
0015 {
0016         pre_cleanup
0017 }
0018 
0019 l3_monitor_test()
0020 {
0021         hw_stats_monitor_test $swp l3               \
0022                 "ip addr add dev $swp 192.0.2.1/28" \
0023                 "ip addr del dev $swp 192.0.2.1/28"
0024 }
0025 
0026 trap cleanup EXIT
0027 
0028 setup_wait
0029 tests_run
0030 
0031 exit $EXIT_STATUS