From: Steven Whitehouse <steve@chygwyn.com>
To: Patrick McHardy <kaber@trash.net>
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 16:30:56 +0100 [thread overview]
Message-ID: <20060811153056.GA32708@souterrain.chygwyn.com> (raw)
In-Reply-To: <44DCA0A9.7010800@trash.net>
Hi,
On Fri, Aug 11, 2006 at 05:22:17PM +0200, Patrick McHardy wrote:
> 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.
Yes, good spotting :-) I'll send a patch shortly,
Steve.
next prev parent reply other threads:[~2006-08-11 15:26 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
2006-08-11 15:30 ` Steven Whitehouse [this message]
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=20060811153056.GA32708@souterrain.chygwyn.com \
--to=steve@chygwyn.com \
--cc=davem@davemloft.net \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
--cc=patrick@tykepenguin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).