]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: distinguish EHOSTUNREACH from the ENETUNREACH
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Fri, 14 Feb 2014 10:26:22 +0000 (18:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2014 04:45:31 +0000 (23:45 -0500)
commit4181d5255c05649a7c8c54fda52c0c7bd5c94a25
tree1f9194b60c4f24a4897103c3ffec6c99d320d9be
parentb5fc56ccf2b69264c43470796df5c3969fc20954
ipv4: distinguish EHOSTUNREACH from the ENETUNREACH

since commit e96dd551("ipv4: Cache ip_error() routes even when not forwarding."),
the counter IPSTATS_MIB_INADDRERRORS can't work correctly, because the value of
err was always set to ENETUNREACH.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c