]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Change "not found" return value for rule lookup
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 30 Mar 2007 20:34:27 +0000 (13:34 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 2 Apr 2007 20:30:51 +0000 (13:30 -0700)
commit1d4c8e849ee00216c565c0985cf9e660d3876560
tree39db45c6c7cb4f2f3abbcc5e17202531a23ab273
parent606d9f66d2fae41c7d9c9e363583317fed2b7a4d
[NET]: Change "not found" return value for rule lookup

This changes the "not found" error return for the lookup
function to -ESRCH so that it can be distinguished from
the case where a rule or route resulting in -ENETUNREACH
has been found during the search.

It fixes a bug where if DECnet was compiled with routing
support, but no routes were added to the routing table,
it was failing to fall back to endnode routing.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c