Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(893)

Issue 6842053: code review 6842053: net: consoldate literal target address into IP address ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by mikio
Modified:
11 years, 5 months ago
Reviewers:
bradfitz
CC:
rsc, golang-dev
Visibility:
Public.

Description

net: consoldate literal target address into IP address functions This CL continues with introducing IPv6 scoped addressing capability into the net package. Update issue 4234.

Patch Set 1 : diff -r 61dc42e35948 https://code.google.com/p/go #

Total comments: 6

Patch Set 2 : diff -r b5f58df8efce https://code.google.com/p/go #

Total comments: 2

Patch Set 3 : diff -r 3b146fc28ac6 https://code.google.com/p/go #

Patch Set 4 : diff -r 616adac0bb59 https://code.google.com/p/go #

Total comments: 1

Patch Set 5 : diff -r 9049dd504139 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -102 lines) Patch
M src/pkg/net/dial.go View 3 chunks +5 lines, -8 lines 0 comments Download
M src/pkg/net/ipraw_test.go View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M src/pkg/net/iprawsock.go View 1 2 2 chunks +8 lines, -41 lines 0 comments Download
M src/pkg/net/ipsock.go View 2 chunks +59 lines, -35 lines 0 comments Download
M src/pkg/net/tcp_test.go View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M src/pkg/net/tcpsock.go View 1 2 2 chunks +7 lines, -8 lines 0 comments Download
M src/pkg/net/udp_test.go View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M src/pkg/net/udpsock.go View 1 2 2 chunks +8 lines, -10 lines 0 comments Download

Messages

Total messages: 16
mikio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 5 months ago (2012-11-26 16:04:36 UTC) #1
rsc
https://codereview.appspot.com/6842053/diff/6001/src/pkg/net/iprawsock.go File src/pkg/net/iprawsock.go (right): https://codereview.appspot.com/6842053/diff/6001/src/pkg/net/iprawsock.go#newcode40 src/pkg/net/iprawsock.go:40: return nil, &ParseError{"IP address", net + " " + ...
11 years, 5 months ago (2012-11-26 16:07:26 UTC) #2
mikio
https://codereview.appspot.com/6842053/diff/6001/src/pkg/net/iprawsock.go File src/pkg/net/iprawsock.go (right): https://codereview.appspot.com/6842053/diff/6001/src/pkg/net/iprawsock.go#newcode40 src/pkg/net/iprawsock.go:40: return nil, &ParseError{"IP address", net + " " + ...
11 years, 5 months ago (2012-11-26 16:27:51 UTC) #3
mikio
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 5 months ago (2012-11-26 16:28:15 UTC) #4
rsc
https://codereview.appspot.com/6842053/diff/6002/src/pkg/net/iprawsock.go File src/pkg/net/iprawsock.go (right): https://codereview.appspot.com/6842053/diff/6002/src/pkg/net/iprawsock.go#newcode38 src/pkg/net/iprawsock.go:38: return a.(*IPAddr), nil I'm confused. Now if I say ...
11 years, 5 months ago (2012-11-26 17:09:37 UTC) #5
mikio
https://codereview.appspot.com/6842053/diff/6002/src/pkg/net/iprawsock.go File src/pkg/net/iprawsock.go (right): https://codereview.appspot.com/6842053/diff/6002/src/pkg/net/iprawsock.go#newcode38 src/pkg/net/iprawsock.go:38: return a.(*IPAddr), nil > I'm confused. Now if I ...
11 years, 5 months ago (2012-11-27 00:50:44 UTC) #6
mikio
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 5 months ago (2012-11-27 00:50:59 UTC) #7
rsc
LGTM Thanks. Now it all makes sense to me. :-) https://codereview.appspot.com/6842053/diff/6004/src/pkg/net/ipraw_test.go File src/pkg/net/ipraw_test.go (right): https://codereview.appspot.com/6842053/diff/6004/src/pkg/net/ipraw_test.go#newcode33 ...
11 years, 5 months ago (2012-11-27 19:50:46 UTC) #8
mikio
*** Submitted as http://code.google.com/p/go/source/detail?r=589646797508 *** net: consoldate literal target address into IP address functions This ...
11 years, 5 months ago (2012-11-27 21:36:14 UTC) #9
bradfitz
This CL also makes net.SplitHostPort now take a superset of valid input than it used ...
11 years, 5 months ago (2012-11-28 02:58:11 UTC) #10
mikio
On Wed, Nov 28, 2012 at 11:58 AM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > This CL ...
11 years, 5 months ago (2012-11-28 03:15:30 UTC) #11
bradfitz
On Tue, Nov 27, 2012 at 7:15 PM, Mikio Hara <mikioh.mikioh@gmail.com> wrote: > On Wed, ...
11 years, 5 months ago (2012-11-28 03:30:10 UTC) #12
mikio
On Wed, Nov 28, 2012 at 12:30 PM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > I was ...
11 years, 5 months ago (2012-11-28 04:16:21 UTC) #13
mikio
I missed this activity at 6man-wg. http://tools.ietf.org/html/draft-ietf-6man-uri-zoneid
11 years, 4 months ago (2012-12-10 09:43:37 UTC) #14
rsc
Interesting. Should we make it an error (everywhere) to see a % if the address ...
11 years, 4 months ago (2012-12-10 14:42:41 UTC) #15
mikio
11 years, 4 months ago (2012-12-10 22:33:27 UTC) #16
On Mon, Dec 10, 2012 at 11:42 PM, Russ Cox <rsc@golang.org> wrote:

> Interesting. Should we make it an error (everywhere) to see a % if the
> address is not in fe80::/10?

I think that's application's business, not API's.

At least net API should accept both link-local unicast/multicast addresses
for signaling/routing protocols. For net/url.... not sure. If backyard/devops
guys want to write their provisioning scripts in URI? hm...
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b