Date: Thu, 29 Sep 2016 09:52:20 +0300 From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: Mark Kamichoff <prox@prolixium.com>, freebsd-net@FreeBSD.org Subject: Re: ICMPv6 HL Exceeded Messages Generated from Wrong Address Message-ID: <fb8a71f4-3b5c-8aa8-d281-ed5de5bdb868@FreeBSD.org> In-Reply-To: <20160929031108.GA1530@prolixium.com> References: <20160929031108.GA1530@prolixium.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fTVH8HhSdOi87CuMGREr1tfUcsIQRXtqp Content-Type: multipart/mixed; boundary="mA6wG8JahqUOrIwrIuERXX9sU7uOfh9s6"; protected-headers="v1" From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: Mark Kamichoff <prox@prolixium.com>, freebsd-net@FreeBSD.org Message-ID: <fb8a71f4-3b5c-8aa8-d281-ed5de5bdb868@FreeBSD.org> Subject: Re: ICMPv6 HL Exceeded Messages Generated from Wrong Address References: <20160929031108.GA1530@prolixium.com> In-Reply-To: <20160929031108.GA1530@prolixium.com> --mA6wG8JahqUOrIwrIuERXX9sU7uOfh9s6 Content-Type: multipart/mixed; boundary="------------6785C19945533E2812476ADF" This is a multi-part message in MIME format. --------------6785C19945533E2812476ADF Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 29.09.2016 06:11, Mark Kamichoff wrote: > Hi -=20 >=20 > I've got FreeBSD 11* in a VM acting as an IPv6 router with a bunch of > tunnel interfaces and a couple virtio interfaces. I'm seeing some odd > behavior related to ICMPv6 HL exceeded messages (type 3 code 0) when > running traceroutes. Specifically, the FreeBSD box emits the ICMPv6 > messages using the outgoing interface address (ie, toward traceroute > destination) instead of the incoming interface address (expected). Hi, can you test this patch? --=20 WBR, Andrey V. Elsukov --------------6785C19945533E2812476ADF Content-Type: text/x-patch; name="icmp6.c.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="icmp6.c.diff" Index: icmp6.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- icmp6.c (revision 305970) +++ icmp6.c (working copy) @@ -2203,7 +2203,7 @@ icmp6_reflect(struct mbuf *m, size_t off) * that we do not own. Select a source address based on the * source address of the erroneous packet. */ - in6_splitscope(&ip6->ip6_dst, &dst6, &scopeid); + in6_splitscope(&ip6->ip6_src, &dst6, &scopeid); error =3D in6_selectsrc_addr(RT_DEFAULT_FIB, &dst6, scopeid, NULL, &src6, &hlim); =20 --------------6785C19945533E2812476ADF-- --mA6wG8JahqUOrIwrIuERXX9sU7uOfh9s6-- --fTVH8HhSdOi87CuMGREr1tfUcsIQRXtqp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEsBAEBCAAWBQJX7LooDxxhZUBmcmVlYnNkLm9yZwAKCRABxeoEEMihegh1CACp /nFXv8meX+dGBMX9+SoDJbQZKFeO3MMBe0UCdIqrzuEZX8KloaceooeRh1q4h3Kw Qld96vQ8U5XPQ9V9wH/tS51hy6sKRknGSQ4SR0DiGwpHlJjDaWn1J/4cRKG9BilC Oid3eXdsmbYDMMZ2TugBPOf3iTPQZPfVW6tie/FQnUIKvYCP5U19XSj7gVgfbWVS BIdgRbuFLXAKariLIuQJsiMUxjoc2EF5T5BVTE3hk8MH9e2i2tHmgdyERF7PD3qz WqTA/ogv270DYYj4M6/cp5Bqg+9qsDNztLLLOfRw8ioGF0qrfWJOjFyZiZXJDvVR 74VAYKxTpvW029j2mt7v =P0ve -----END PGP SIGNATURE----- --fTVH8HhSdOi87CuMGREr1tfUcsIQRXtqp--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fb8a71f4-3b5c-8aa8-d281-ed5de5bdb868>