[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1175246035.1636.138.camel@quoit.chygwyn.com>
Date: Fri, 30 Mar 2007 10:13:55 +0100
From: Steven Whitehouse <swhiteho@...hat.com>
To: David Miller <davem@...emloft.net>
Cc: tgraf@...g.ch, netdev@...r.kernel.org, pcaulfie@...hat.com
Subject: [NET] Change "not found" return value for rule lookup
>>From 657baf6bbaa8302660d6b218149dcb5546b9b08c Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <swhiteho@...hat.com>
Date: Fri, 30 Mar 2007 09:06:34 +0100
Subject: [PATCH] [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@...hat.com>
Signed-off-by: Patrick Caulfield <pcaulfie@...hat.com>
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c
index 06f304a..cb2dae1 100644
--- a/net/core/fib_rules.c
+++ b/net/core/fib_rules.c
@@ -164,7 +164,7 @@ jumped:
}
}
- err = -ENETUNREACH;
+ err = -ESRCH;
out:
rcu_read_unlock();
--
1.4.4.2
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists