Thread (6 messages) 6 messages, 5 authors, 2007-03-28

Re: [PATCH net-2.6.22] [IPV6] FIB6RULE: Find source address during looking up route.

From: Thomas Graf <tgraf@suug.ch>
Date: 2007-03-27 14:24:58

* YOSHIFUJI Hideaki / ?$B5HF#1QL@ [off-list ref] 2007-03-27 22:45
When looking up route for destination with rules with
source address restrictions, we may need to find a source
address for the traffic if not given.
Out of curiosity, what sort of rules would have this flag set?
The majority of lookups don't provide a valid source address.
This new address search could become very expensive, because
none of the results are cached.
quoted hunk ↗ jump to hunk
Signed-off-by: YOSHIFUJI Hideaki <redacted>
---
 include/linux/fib_rules.h |    7 +++++--
 net/ipv6/fib6_rules.c     |   34 +++++++++++++++++++++++++++++++---
 2 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/include/linux/fib_rules.h b/include/linux/fib_rules.h
index 8270aac..2bbfa87 100644
--- a/include/linux/fib_rules.h
+++ b/include/linux/fib_rules.h
@@ -5,8 +5,11 @@
 #include <linux/rtnetlink.h>
 
 /* rule is permanent, and cannot be deleted */
-#define FIB_RULE_PERMANENT	1
-#define FIB_RULE_INVERT		2
+#define FIB_RULE_PERMANENT	0x00000001
+#define FIB_RULE_INVERT		0x00000002
+
+/* try to find source address in routing lookups */
+#define	FIB_RULE_FIND_SADDR	0x00010000
 
 struct fib_rule_hdr
 {
This chunk won't apply to latest net-2.6.22, I've added two more
flags yesterday.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help