From: Thomas Graf <tgraf@suug.ch>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: davem@davemloft.net, netdev@oss.sgi.com
Subject: Re: [PATCH] [NET]: Fix deletion of local addresses only varying in prefix length
Date: Sat, 5 Mar 2005 01:29:10 +0100 [thread overview]
Message-ID: <20050305002910.GJ31837@postel.suug.ch> (raw)
In-Reply-To: <20050304233212.GA27421@gondor.apana.org.au>
* Herbert Xu <20050304233212.GA27421@gondor.apana.org.au> 2005-03-05 10:32
> On Fri, Mar 04, 2005 at 02:14:19PM +0100, Thomas Graf wrote:
> >
> > I do not agree but I might have a better idea. Let's change iproute2
> > to provide a prefixlength of 0 if no prefix was specified and only
> > compare the prefixes if it is non zero. This allows for accurate
>
> A bigger problem with this approach is that we don't have a magical
> way of getting people to upgrade their ip(8) binary.
>
> To do this safely, we'll need a way of indicating that the ip(8) binary
> is setting the prefixlen in the way you propose. Perhaps this can be
> done using a new IFA payload type.
>
> Alternatively you can use the value of /32 to indicate a wildcard match
> instead of /0. After all, /0 has a specific meaning in this context so
> it's just as arbitrary to choose /0 as opposed to /32.
I've been thinking about this since yesterday and the best solution I
came up so far is to encode it in one of the yet unused bits in
the prefixlength field. After all we're only using 5bits of it. What
i'm thinking of in particular is to encode it as in 1 bit wildcard
flag 5 bits prefix length.
next prev parent reply other threads:[~2005-03-05 0:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-04 1:20 [PATCH] [NET]: Fix deletion of local addresses only varying in prefix length Thomas Graf
2005-03-04 8:31 ` Herbert Xu
2005-03-04 13:14 ` Thomas Graf
2005-03-04 20:40 ` Herbert Xu
2005-03-04 20:46 ` Herbert Xu
2005-03-04 23:32 ` Herbert Xu
2005-03-05 0:29 ` Thomas Graf [this message]
2005-03-05 0:31 ` Thomas Graf
2005-03-05 0:46 ` Patrick McHardy
2005-03-05 1:03 ` Herbert Xu
2005-03-05 1:11 ` Patrick McHardy
2005-03-05 1:20 ` Thomas Graf
2005-03-05 1:28 ` Patrick McHardy
2005-03-05 0:59 ` Herbert Xu
2005-03-05 16:23 ` Thomas Graf
2005-03-05 18:30 ` Herbert Xu
2005-03-08 16:01 ` [PATCH] [NET]: Fix deletion of equal local IPv4 " Thomas Graf
2005-03-04 13:30 ` [PATCH] [NET]: Fix deletion of local " Thomas Graf
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=20050305002910.GJ31837@postel.suug.ch \
--to=tgraf@suug.ch \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@oss.sgi.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).