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 # 10 Seconds ageing time.
31 ip link add dev br0
type bridge ageing_time
1000 mcast_snooping
0
33 ip link
set dev
$swp1 master br0
34 ip link
set dev
$swp2 master br0
36 ip link
set dev br0 up
37 ip link
set dev
$swp1 up
38 ip link
set dev
$swp2 up
43 ip link
set dev
$swp2 down
44 ip link
set dev
$swp1 down
79 ping_test
$h1 192.0.2.2
84 ping6_test
$h1 2001:db8
:1::2
89 learning_test
"br0" $swp1 $h1 $h2
94 flood_test
$swp2 $h1 $h2