brintos

brintos / linux-shallow public Read only

0
0
Text · 410 B · 941ba4c Raw
32 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: GPL-2.03 4lib_dir=$(dirname $0)/../../../net/forwarding5 6ALL_TESTS="7	l3_monitor_test8"9NUM_NETIFS=010source $lib_dir/lib.sh11 12swp=$NETIF_NO_CABLE13 14cleanup()15{16	pre_cleanup17}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 EXIT27 28setup_wait29tests_run30 31exit $EXIT_STATUS32