W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2011

IPv6 and draft-petersson-forwarded-for

From: Dan Wing <dwing@cisco.com>
Date: Mon, 25 Apr 2011 22:14:58 -0700
To: <draft-petersson-forwarded-for@tools.ietf.org>
Cc: <ietf-http-wg@w3.org>
Message-ID: <04d001cc03d0$e3192aa0$a94b7fe0$@com>
Andreas, Martin,

The relevant ABNF to construct an IPv6 address is:

       node = nodename [":" node-port]
       node-port = port | obfport
       nodename = IPv4address | IPv6address |
                   "unknown" | "hidden" | obfnode
       IPv6address = addr6 | "[" addr6 "]"

which could result in something like 2001:db8::5555, which has an ambiguous
meaning -- it could be "2001:db8 port 5555", or simply the IPv6 address
"2001:db8::5555" (without the node-port).

The simplest fix is to require the "[]" characters around an IPv6 address,
similar to how HTTP is constructed (RFC3986), like this:
       IPv6address = "[" addr6 "]"

-d
Received on Tuesday, 26 April 2011 05:15:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:40 GMT