IPv6 address/port format

Michael H. Warfield mhw@wittsend.com
Tue, 18 Jan 2000 08:41:39 -0500


	Just love playing devil's advocate...

On Tue, Jan 18, 2000 at 07:13:14AM +0100, Wojtek Bojdo/l wrote:
> 
> On Mon, 17 Jan 2000, Jim Bound wrote:
> 
> > 	>What about the IPv4 compatibility notation?
> > 
> > 	>::130.205.0.20 for my address.  Now port would be ::130.205.0.20.80?
> > 
> > We could just get rid of IPv4 compatible addresses :---)....

> we don't need to...
> When we write IPv4 compatible address it can look:
> :k.l.m.n:o.p.q.r
> but it can't look:
> :k.l.m.n:o.p.q.r.s

	Ok...  Pop quiz.

	::130.205.1.143

	Is that port 143 on system 130.205.1.0 (host 1.0 on network 130.205)
or is that host 130.205.1.143?  It's a rare case, but legitimate.  In
IPv4 notation they allow 130.20.1 to be the equivalent of 130.205.1.0 in
full.  This is BUTT UGLY, IMHO, but apparently legal and I've actually
encountered some people using it and pointing it out to me.  So this one
particular instance is ambiguous, unless we specify, up front, that all four
of the dotted quads are specified in full for IPv4 compat notation.

> If our resolver function 'll count how many dot's it got after last :
> and if there's no next :, and it's 5th dot, it can get it as port.

	I had parsers that have to do things like that (although you have
to do things like that for syntax checking anyways).  :-)

> I think it can be good idea, but we should check if it would be hard to
> implement.

> -- 
> -------------------------------------------------------------
> = Wojciech Bojdo/l  wojboj@lp.net.pl  www.lp.net.pl/~wojboj =
> [    No things are impossible - they're only incredible     ]
> -------------------------------------------------------------

	Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw@WittsEnd.com
  (The Mad Wizard)      |  (770) 331-2437   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!