@@ -1067,11 +1067,15 @@ test_pmtu_ipvX() {
pmtu_2="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst2})"
check_pmtu_value "1500" "${pmtu_2}" "changing local MTU on a link not on this path" || return 1
- # Increase MTU, check for PMTU increase in route exception
+ # Increase MTU, check for PMTU increase in route exception for IPv4 only
mtu "${ns_a}" veth_A-R1 1700
mtu "${ns_r1}" veth_R1-A 1700
pmtu_1="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst1})"
- check_pmtu_value "1700" "${pmtu_1}" "increasing local MTU" || return 1
+ if [ ${family} -eq 4 ]; then
+ check_pmtu_value "1700" "${pmtu_1}" "increasing local MTU" || return 1
+ else
+ check_pmtu_value "1300" "${pmtu_1}" "no change in local MTU" || return 1
+ fi
# Second exception shouldn't be modified
pmtu_2="$(route_get_dst_pmtu_from_exception "${ns_a}" ${dst2})"
check_pmtu_value "1500" "${pmtu_2}" "changing local MTU on a link not on this path" || return 1
@@ -1637,10 +1641,10 @@ test_pmtu_vti6_exception() {
pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${tunnel6_b_addr})"
check_pmtu_value "3000" "${pmtu}" "decreasing tunnel MTU" || fail=1
- # Increase tunnel MTU, check for PMTU increase in route exception
+ # Increase tunnel MTU, confirm no PMTU increase in route exception
mtu "${ns_a}" vti6_a 9000
pmtu="$(route_get_dst_pmtu_from_exception "${ns_a}" ${tunnel6_b_addr})"
- check_pmtu_value "9000" "${pmtu}" "increasing tunnel MTU" || fail=1
+ check_pmtu_value "3000" "${pmtu}" "no change in tunnel MTU" || fail=1
return ${fail}
}