* YOSHIFUJI Hideaki / ?$B5HF#1QL@ <[EMAIL PROTECTED]> 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. > Signed-off-by: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> > --- > 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. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html