hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/testing/selftests/net/forwarding/router_broadcast.sh
....@@ -145,16 +145,19 @@
145145 {
146146 sysctl_set net.ipv4.conf.all.bc_forwarding 0
147147 sysctl_set net.ipv4.conf.$rp1.bc_forwarding 0
148
+ sysctl_set net.ipv4.conf.$rp2.bc_forwarding 0
148149 }
149150
150151 bc_forwarding_enable()
151152 {
152153 sysctl_set net.ipv4.conf.all.bc_forwarding 1
153154 sysctl_set net.ipv4.conf.$rp1.bc_forwarding 1
155
+ sysctl_set net.ipv4.conf.$rp2.bc_forwarding 1
154156 }
155157
156158 bc_forwarding_restore()
157159 {
160
+ sysctl_restore net.ipv4.conf.$rp2.bc_forwarding
158161 sysctl_restore net.ipv4.conf.$rp1.bc_forwarding
159162 sysctl_restore net.ipv4.conf.all.bc_forwarding
160163 }
....@@ -170,7 +173,8 @@
170173
171174 log_info "ping $dip, expected reply from $from"
172175 ip vrf exec $(master_name_get $oif) \
173
- $PING -I $oif $dip -c 10 -i 0.1 -w 2 -b 2>&1 | grep $from &> /dev/null
176
+ $PING -I $oif $dip -c 10 -i 0.1 -w $PING_TIMEOUT -b 2>&1 \
177
+ | grep "bytes from $from" > /dev/null
174178 check_err_fail $fail $?
175179 }
176180