]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r342884:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 18 Jan 2019 08:55:26 +0000 (08:55 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 18 Jan 2019 08:55:26 +0000 (08:55 +0000)
commitfbff30e15cde8c9f433e4feab97463d5a9c0f0c5
treeae22410295931460edd61e4715b9c4aca6ecec59
parent2aba3d2b152847edf0b48fb345be5015f8684fe0
MFC r342884:
Fix loopback traffic when using non-lo0 link local IPv6 addresses.

The loopback interface can only receive packets with a single scope ID,
namely the scope ID of the loopback interface itself. To mitigate this
packets which use the scope ID are appearing as received by the real
network interface, see "origifp" in the patch. The current code would
drop packets which are designated for loopback which use a link-local
scope ID in the destination address or source address, because they
won't match the lo0's scope ID. To fix this restore the network
interface pointer from the scope ID in the destination address for
the problematic cases. See comments added in patch for a more detailed
description.

This issue was introduced with route caching by karels@ .

Reviewed by: bz (network)
Differential Revision: https://reviews.freebsd.org/D18769
Sponsored by: Mellanox Technologies
sys/netinet6/ip6_output.c