]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: icmp: Updating pmtu for link local route
authorGeorg Kohmann <geokohma@cisco.com>
Thu, 2 Aug 2018 11:56:58 +0000 (13:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2018 00:12:44 +0000 (17:12 -0700)
commitadb511da07f224d786f0cc7f7c7493f32f3e2603
treea54a4171f8e64f52d876e5a8a941e7d1e8b1cdc4
parent4c526f74053e15d4acab2e6f3a1369bba87e9e82
ipv6: icmp: Updating pmtu for link local route

When a ICMPV6_PKT_TOOBIG is received from a link local address the pmtu will
be updated on a route with an arbitrary interface index. Subsequent packets
sent back to the same link local address may therefore end up not
considering the updated pmtu.

Current behavior breaks TAHI v6LC4.1.4 Reduce PMTU On-link. Referring to RFC
1981: Section 3: "Note that Path MTU Discovery must be performed even in
cases where a node "thinks" a destination is attached to the same link as
itself. In a situation such as when a neighboring router acts as proxy [ND]
for some destination, the destination can to appear to be directly
connected but is in fact more than one hop away."

Using the interface index from the incoming ICMPV6_PKT_TOOBIG when updating
the pmtu.

Signed-off-by: Georg Kohmann <geokohma@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/icmp.c