2 # SPDX-License-Identifier: GPL-2.0
4 ALL_TESTS
="ping_ipv4 ping_ipv6 learning flooding"
10 simple_if_init
$h1 192.0.2.1/24 2001:db8
:1::1/64
15 simple_if_fini
$h1 192.0.2.1/24 2001:db8
:1::1/64
20 simple_if_init
$h2 192.0.2.2/24 2001:db8
:1::2/64
25 simple_if_fini
$h2 192.0.2.2/24 2001:db8
:1::2/64
30 ip link add dev br0
type bridge \
31 ageing_time
$LOW_AGEING_TIME \
34 ip link
set dev
$swp1 master br0
35 ip link
set dev
$swp2 master br0
37 ip link
set dev br0 up
38 ip link
set dev
$swp1 up
39 ip link
set dev
$swp2 up
44 ip link
set dev
$swp2 down
45 ip link
set dev
$swp1 down
80 ping_test
$h1 192.0.2.2
85 ping6_test
$h1 2001:db8
:1::2
90 learning_test
"br0" $swp1 $h1 $h2
95 flood_test
$swp2 $h1 $h2