selftests: pmtu: maximum MTU for vti4 is 2^16-1-20
[linux-2.6-block.git] / tools / testing / selftests / net / pmtu.sh
index f8cc38afffa2e6a35dd316a40e2493356c16063c..0ecf2609b9a4ff69c6144ca4a2afb2f1b601cb84 100755 (executable)
@@ -334,7 +334,7 @@ test_pmtu_vti4_link_add_mtu() {
        fail=0
 
        min=68
-       max=$((65528 - 20))
+       max=$((65535 - 20))
        # Check invalid values first
        for v in $((min - 1)) $((max + 1)); do
                ${ns_a} ip link add vti4_a mtu ${v} type vti local ${veth4_a_addr} remote ${veth4_b_addr} key 10 2>/dev/null