]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: Map neigh lookup keys in __ipv4_neigh_lookup_noref()
authorWang Han <wanghan1995315@gmail.com>
Fri, 2 Feb 2018 15:06:51 +0000 (23:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:14:42 +0000 (20:14 +0100)
commit796ab952d504dc938bbc331fa648a21ae96f6817
treea9666dece43fb82983f9ab6b29d238559d34adbd
parent99a223bcec506dbd8de7aa3c16995b71d3ca7bb6
ipv4: Map neigh lookup keys in __ipv4_neigh_lookup_noref()

Commit 6c16fa957e84 is an incorrect backport as we map the keys in
struct __ipv4_neigh_lookup(), but the correct place to add the
code is struct __ipv4_neigh_lookup_noref(), compared to upstream.

Fix it by moving the code, or fewer cases will be covered as
__ipv4_neigh_lookup_noref() will be called unconditionally from
__ipv4_neigh_lookup(), and it can be called from other places
such as ip_output.c.

Fixes: 6c16fa957e84 (ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY)
Signed-off-by: Wang Han <wanghan1995315@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/arp.h