Commit:     83886b6b636173b206f475929e58fac75c6f2446
Parent:     9a5ee4cc9ef8de5185114237a81f5f395e21d8fd
Author:     Steven Whitehouse <[EMAIL PROTECTED]>
AuthorDate: Fri Mar 30 13:34:27 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Apr 2 13:30:51 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Patrick Caulfield <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/core/fib_rules.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c
index d011819..7174ced 100644
--- a/net/core/fib_rules.c
+++ b/net/core/fib_rules.c
@@ -143,7 +143,7 @@ int fib_rules_lookup(struct fib_rules_ops *ops, struct 
flowi *fl,
-       err = -ENETUNREACH;
+       err = -ESRCH;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to