OSDN Git Service

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)
commit650638a7c6e60a198573873972aafb065f200056
tree166e0579777bd8bc91309f9da84dd8420f7c22b0
parentd8c444d540beaa39aff834c5b83df7e86a1ae765
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: d0daebc3d622 ("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