Thread (5 messages) 5 messages, 3 authors, 2007-03-30

[NET] Change "not found" return value for rule lookup

From: Steven Whitehouse <hidden>
Date: 2007-03-30 09:07:35
Subsystem: networking [general], networking [ipv4/ipv6], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, David Ahern, Ido Schimmel, Linus Torvalds

From 657baf6bbaa8302660d6b218149dcb5546b9b08c Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <redacted>
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 <redacted>
Signed-off-by: Patrick Caulfield <redacted>
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


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help