mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-08 07:15:55 +00:00
rxrpc: Fix ipv6 path MTU discovery
rxrpc path MTU discovery currently only makes use of ICMPv4, but not
ICMPv6, which means that pmtud for IPv6 doesn't work correctly. Fix it to
check for ICMPv6 messages also.
Fixes: eeaedc5449 ("rxrpc: Implement path-MTU probing using padded PING ACKs (RFC8899)")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
Link: https://patch.msgid.link/3517283.1739359284@warthog.procyon.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
82c260c880
commit
540cda7588
@ -169,6 +169,13 @@ void rxrpc_input_error(struct rxrpc_local *local, struct sk_buff *skb)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((serr->ee.ee_origin == SO_EE_ORIGIN_ICMP6 &&
|
||||
serr->ee.ee_type == ICMPV6_PKT_TOOBIG &&
|
||||
serr->ee.ee_code == 0)) {
|
||||
rxrpc_adjust_mtu(peer, serr->ee.ee_info);
|
||||
goto out;
|
||||
}
|
||||
|
||||
rxrpc_store_error(peer, skb);
|
||||
out:
|
||||
rxrpc_put_peer(peer, rxrpc_peer_put_input_error);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user