From: Thomas Graf <tgraf@suug.ch>
To: "YOSHIFUJI Hideaki / ?$B5HF#1QL@" <yoshfuji@linux-ipv6.org>
Cc: davem@davemloft.net, takamiya@po.ntts.co.jp, netdev@vger.kernel.org
Subject: Re: [PATCH net-2.6.22] [IPV6] FIB6RULE: Find source address during looking up route.
Date: Tue, 27 Mar 2007 16:25:19 +0200 [thread overview]
Message-ID: <20070327142519.GN521@postel.suug.ch> (raw)
In-Reply-To: <20070327.224537.09436398.yoshfuji@linux-ipv6.org>
* YOSHIFUJI Hideaki / ?$B5HF#1QL@ <yoshfuji@linux-ipv6.org> 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 <yoshfuji@linux-ipv6.org>
> ---
> 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.
next prev parent reply other threads:[~2007-03-27 14:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-27 13:45 [PATCH net-2.6.22] [IPV6] FIB6RULE: Find source address during looking up route YOSHIFUJI Hideaki / 吉藤英明
2007-03-27 14:25 ` Thomas Graf [this message]
2007-03-27 15:27 ` Ethernet Frame Generation Simba
2007-03-27 15:47 ` Evgeniy Polyakov
2007-03-28 3:49 ` [PATCH net-2.6.22] [IPV6] FIB6RULE: Find source address during looking up route YOSHIFUJI Hideaki / 吉藤英明
2007-03-28 4:02 ` Noriaki TAKAMIYA
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070327142519.GN521@postel.suug.ch \
--to=tgraf@suug.ch \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=takamiya@po.ntts.co.jp \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.