1#!/bin/bash 2# SPDX-License-Identifier: GPL-2.0 3 4lib_dir=$(dirname $0)/../../../net/forwarding 5 6ALL_TESTS=" 7 l3_monitor_test 8" 9NUM_NETIFS=0 10source $lib_dir/lib.sh 11 12swp=$NETIF_NO_CABLE 13 14cleanup() 15{ 16 pre_cleanup 17} 18 19l3_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 26trap cleanup EXIT 27 28setup_wait 29tests_run 30 31exit $EXIT_STATUS 32