1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 3 4 lib_dir=$(dirname $0)/../../../net/forwarding 5 6 ALL_TESTS=" 7 l3_monitor_test 8 " 9 NUM_NETIFS=0 10 source $lib_dir/lib.sh 11 12 swp=$NETIF_NO_CABLE 13 14 cleanup() 15 { 16 pre_cleanup 17 } 18 19 l3_monitor_test() 20 { 21 hw_stats_monitor_test $swp l3 \ 22 "ip addr add dev $swp 192.0.2.1/28" \ 23 "ip addr del dev $swp 192.0.2.1/28" 24 } 25 26 trap cleanup EXIT 27 28 setup_wait 29 tests_run 30 31 exit $EXIT_STATUS
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.