[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 8 Aug 2016 10:27:33 -0600
From: David Ahern <dsa@...ulusnetworks.com>
To: Lorenzo Colitti <lorenzo@...gle.com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Hannes Frederic Sowa <hannes@...essinduktion.org>,
Erik Kline <ek@...gle.com>, David Miller <davem@...emloft.net>,
吉藤英明 <hideaki.yoshifuji@...aclelinux.com>
Subject: Re: [PATCH net] net: ipv6: Fix ping to link-local addresses.
On 8/8/16 10:24 AM, Lorenzo Colitti wrote:
> On Tue, Aug 9, 2016 at 12:27 AM, David Ahern <dsa@...ulusnetworks.com> wrote:
>>> - if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr))
>>> - fl6.flowi6_oif = np->mcast_oif;
>>> - else if (!fl6.flowi6_oif)
>>> - fl6.flowi6_oif = np->ucast_oif;
>>> -
>>
>> That code removal is contrary to your patch description regarding flowi6_oif.
>
> Which code removal? The one I quote above? That code wasn't removed,
> it was moved to above the initialization of flowi6.
>
Your description states:
"ping_v6_sendmsg never sets flowi6_oif, so it is not possible to
ping an IPv6 address on a different interface."
That code snippet above contradicts that -- flowi6_oif is set in ping_v6_sendmsg.
You are making a different change than just setting flowi6_oif.
Powered by blists - more mailing lists