[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f44d9f26-046d-38a2-13aa-d25b92419d11@gmail.com>
Date: Thu, 1 Aug 2019 13:51:25 -0600
From: David Ahern <dsahern@...il.com>
To: Hangbin Liu <liuhangbin@...il.com>, netdev@...r.kernel.org
Cc: Stefano Brivio <sbrivio@...hat.com>,
Marcelo Ricardo Leitner <mleitner@...hat.com>,
David Ahern <dsahern@...il.com>,
"David S . Miller" <davem@...emloft.net>
Subject: Re: [PATCH net] ipv4/route: do not check saddr dev if iif is
LOOPBACK_IFINDEX
On 8/1/19 2:29 AM, Hangbin Liu wrote:
> Jianlin reported a bug that for IPv4, ip route get from src_addr would fail
> if src_addr is not an address on local system.
>
> \# ip route get 1.1.1.1 from 2.2.2.2
> RTNETLINK answers: Invalid argument
so this is a forwarding lookup in which case iif should be set. Based on
the above 'route get' inet_rtm_getroute is doing a lookup as if it is
locally generated traffic.
Powered by blists - more mailing lists