From: Patrick McHardy <kaber@trash.net>
To: Steven Whitehouse <steve@chygwyn.com>
Cc: David Miller <davem@davemloft.net>,
Patrick Caulfield <patrick@tykepenguin.com>,
netdev@vger.kernel.org
Subject: Re: [DECNET] Fix to multiple tables routing
Date: Fri, 11 Aug 2006 17:22:17 +0200 [thread overview]
Message-ID: <44DCA0A9.7010800@trash.net> (raw)
In-Reply-To: <20060811142742.GA31748@souterrain.chygwyn.com>
Steven Whitehouse wrote:
> Here is a fix to Patrick McHardy's increase number of routing tables patch
> for DECnet. I did just test this and it appears to be working fine with
> this patch.
>
> Cc: Patrick McHardy <kaber@trash.net>
> Cc: Patrick Caulfield <patrick@tykepenguin.com>
> Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
>
> diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c
> index 878312f..c8d9411 100644
> --- a/net/decnet/dn_rules.c
> +++ b/net/decnet/dn_rules.c
> @@ -116,6 +116,7 @@ static struct nla_policy dn_fib_rule_pol
> [FRA_SRC] = { .type = NLA_U16 },
> [FRA_DST] = { .type = NLA_U16 },
> [FRA_FWMARK] = { .type = NLA_U32 },
> + [FRA_TABLE] = { .type = NLA_U32 },
> };
Looks good. BTW, I noticed something in the DecNET fib_rule conversion
that looks like a bug:
The policy includes this for FRA_SRC/FRA_DST:
[FRA_SRC] = { .type = NLA_U16 },
[FRA_DST] = { .type = NLA_U16 },
But in dn_fib_rule_compare it is used like this:
if (tb[FRA_SRC] && (r->src != nla_get_u32(tb[FRA_SRC])))
return 0;
if (tb[FRA_DST] && (r->dst != nla_get_u32(tb[FRA_DST])))
return 0;
I think this might create problems depending on the endianness.
next prev parent reply other threads:[~2006-08-11 15:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-11 14:27 [DECNET] Fix to multiple tables routing Steven Whitehouse
2006-08-11 15:22 ` Patrick McHardy [this message]
2006-08-11 15:30 ` Steven Whitehouse
2006-08-11 23:43 ` David Miller
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=44DCA0A9.7010800@trash.net \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=patrick@tykepenguin.com \
--cc=steve@chygwyn.com \
/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.