]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fix confirm_addr_indev() when enable route_localnet
authorShijie Luo <luoshijie1@huawei.com>
Tue, 18 Jun 2019 15:14:04 +0000 (15:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2019 16:02:47 +0000 (09:02 -0700)
commit2ee7b85ac1680bd321a4b809108175266b82c626
tree166e0579777bd8bc91309f9da84dd8420f7c22b0
parent4eeaf89716a018abf8244d516637234ceadd6d1f
ipv4: fix confirm_addr_indev() when enable route_localnet

When arp_ignore=3, the NIC won't reply for scope host addresses, but
if enable route_locanet, we need to reply ip address with head 127 and
scope RT_SCOPE_HOST.

Fixes: e4305a548bb7 ("ipv4: Add interface option to enable routing of 127.0.0.0/8")
Signed-off-by: Shijie Luo <luoshijie1@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c