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

Issue 684041: code review 684041: net: implement raw sockets (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by cw
Modified:
14 years, 10 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

net: implement raw sockets

Patch Set 1 #

Patch Set 2 : code review 684041: net: implement raw sockets #

Patch Set 3 : code review 684041: net: implement raw sockets #

Patch Set 4 : code review 684041: net: implement raw sockets #

Patch Set 5 : code review 684041: net: implement raw sockets #

Patch Set 6 : code review 684041: net: implement raw sockets #

Patch Set 7 : code review 684041: net: implement raw sockets #

Patch Set 8 : code review 684041: net: implement raw sockets #

Patch Set 9 : code review 684041: net: implement raw sockets #

Patch Set 10 : code review 684041: net: implement raw sockets #

Total comments: 9

Patch Set 11 : code review 684041: net: implement raw sockets #

Patch Set 12 : code review 684041: net: implement raw sockets #

Total comments: 7

Patch Set 13 : code review 684041: net: implement raw sockets #

Patch Set 14 : code review 684041: net: implement raw sockets #

Patch Set 15 : code review 684041: net: implement raw sockets #

Patch Set 16 : code review 684041: net: implement raw sockets #

Patch Set 17 : code review 684041: net: implement raw sockets #

Patch Set 18 : code review 684041: net: implement raw sockets #

Patch Set 19 : code review 684041: net: implement raw sockets #

Patch Set 20 : code review 684041: net: implement raw sockets #

Patch Set 21 : code review 684041: net: implement raw sockets #

Patch Set 22 : code review 684041: net: implement raw sockets #

Total comments: 1

Patch Set 23 : code review 684041: net: implement raw sockets #

Patch Set 24 : code review 684041: net: implement raw sockets #

Patch Set 25 : code review 684041: net: implement raw sockets #

Patch Set 26 : code review 684041: net: implement raw sockets #

Total comments: 1

Patch Set 27 : code review 684041: net: implement raw sockets #

Patch Set 28 : code review 684041: net: implement raw sockets #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -91 lines) Patch
M src/pkg/net/Makefile View 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/net/ipraw_test.go View 11 12 13 1 chunk +117 lines, -0 lines 0 comments Download
M src/pkg/net/iprawsock.go View 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 8 chunks +171 lines, -81 lines 0 comments Download
M src/pkg/net/ipsock.go View 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/net/net.go View 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +34 lines, -4 lines 0 comments Download
M src/pkg/net/parse.go View 13 14 15 16 17 18 19 1 chunk +10 lines, -0 lines 0 comments Download
M src/pkg/net/tcpsock.go View 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/net/udpsock.go View 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 38
cw
This is quite rough in places, all the same, feedback at this point might be ...
15 years ago (2010-03-22 10:26:11 UTC) #1
rsc
Thanks for taking care of this. A bunch of high level things. Please hg cp ...
15 years ago (2010-03-24 01:43:14 UTC) #2
cw
On Tue, Mar 23, 2010 at 06:43:10PM -0700, Russ Cox wrote: > This will change ...
15 years ago (2010-03-24 02:31:04 UTC) #3
rsc
> i considered that but assumed the codereview extention wouldn't handle > that knowledge it ...
15 years ago (2010-03-24 03:19:32 UTC) #4
cw
On Tue, Mar 23, 2010 at 08:19:29PM -0700, Russ Cox wrote: > isn't the port ...
15 years ago (2010-03-24 04:36:17 UTC) #5
rsc
> is the test harness that's fine, in net/ i would argue it's out of ...
15 years ago (2010-03-24 05:27:51 UTC) #6
rsc
I still think that it makes sense to use the host:port syntax here rather than ...
15 years ago (2010-03-24 05:39:02 UTC) #7
cw
On Tue, Mar 23, 2010 at 10:38:59PM -0700, Russ Cox wrote: > I still think ...
15 years ago (2010-03-24 06:49:42 UTC) #8
rsc
>> I'd suggest saying that for Dial with net == "ip", laddr and raddr >> ...
15 years ago (2010-03-24 07:13:28 UTC) #9
cw
On Wed, Mar 24, 2010 at 12:13:24AM -0700, Russ Cox wrote: > i don't think ...
15 years ago (2010-03-24 08:05:43 UTC) #10
cw
On Tue, Mar 23, 2010 at 06:43:10PM -0700, Russ Cox wrote: > hg cp udp.go ...
15 years ago (2010-03-25 03:09:26 UTC) #11
cw
Still not 100% happy with this. But much fewer rough edges.
15 years ago (2010-03-25 03:40:36 UTC) #12
rsc
looking at http://codereview.appspot.com/684041/show i don't see the new patch.
15 years ago (2010-03-25 03:44:11 UTC) #13
cw
On Wed, Mar 24, 2010 at 08:44:07PM -0700, Russ Cox wrote: > looking at http://codereview.appspot.com/684041/show ...
15 years ago (2010-03-25 03:49:51 UTC) #14
cw
Closer, most comments addresses. I think it should be split up though to: 1. syscall ...
15 years ago (2010-03-25 04:31:53 UTC) #15
cw
Should compile everywhere, might even work. Test case added where a raw ipv4 socket is ...
15 years ago (2010-03-25 07:18:47 UTC) #16
cw
Hello rsc, r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years ago (2010-03-27 00:47:30 UTC) #17
cw
Hello rsc, r (cc: golang-dev@googlegroups.com), Please take another look.
15 years ago (2010-03-28 07:19:32 UTC) #18
rsc
http://codereview.appspot.com/684041/diff/42008/43002 File src/pkg/net/iprawsock.go (right): http://codereview.appspot.com/684041/diff/42008/43002#newcode25 src/pkg/net/iprawsock.go:25: // IPAddr represents the address of a IP end ...
15 years ago (2010-03-28 07:59:49 UTC) #19
cw
On Sun, Mar 28, 2010 at 07:59:49AM +0000, rsc@golang.org wrote: > http://codereview.appspot.com/684041/diff/42008/43002#newcode25 > src/pkg/net/iprawsock.go:25: // ...
15 years ago (2010-03-28 08:19:54 UTC) #20
cw
Hello rsc, r (cc: golang-dev@googlegroups.com), Please take another look.
15 years ago (2010-03-28 08:34:18 UTC) #21
cw
Any more thoughts on this?
14 years, 11 months ago (2010-04-12 05:45:39 UTC) #22
rsc1
Looks reasonable. It's at least self-contained. I'm still not happy with the interface but I ...
14 years, 11 months ago (2010-04-14 00:11:41 UTC) #23
cw
This should address everything except the copy for ipv4 packets. Is that really needed? http://codereview.appspot.com/684041/diff/51002/55002 ...
14 years, 11 months ago (2010-04-14 06:04:00 UTC) #24
cw
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 11 months ago (2010-04-14 22:52:33 UTC) #25
cw
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 11 months ago (2010-04-22 19:55:56 UTC) #26
cw
Updated to accommodate upstream pkg/net changes.
14 years, 11 months ago (2010-04-27 08:56:17 UTC) #27
cw
Keeping in sync with upstream.
14 years, 11 months ago (2010-04-28 06:17:25 UTC) #28
cw
Ping. Should I shelve this for now?
14 years, 11 months ago (2010-05-05 08:16:54 UTC) #29
rsc
On Wed, May 5, 2010 at 01:16, <cw@f00f.org> wrote: > Ping. > > Should I ...
14 years, 11 months ago (2010-05-05 08:26:29 UTC) #30
cw
On Wed, May 05, 2010 at 01:26:25AM -0700, Russ Cox wrote: > The doc comment ...
14 years, 11 months ago (2010-05-05 08:49:14 UTC) #31
cw
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 11 months ago (2010-05-05 08:56:23 UTC) #32
rsc1
even a CL that added stubs for the other systems so that the TODO was ...
14 years, 11 months ago (2010-05-05 16:39:03 UTC) #33
cw
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 10 months ago (2010-05-18 08:24:31 UTC) #34
cw
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 10 months ago (2010-05-19 07:54:11 UTC) #35
rsc1
LGTM Please fix the doc comment. http://codereview.appspot.com/684041/diff/116001/117003 File src/pkg/net/iprawsock.go (right): http://codereview.appspot.com/684041/diff/116001/117003#newcode343 src/pkg/net/iprawsock.go:343: // BindToDevice is ...
14 years, 10 months ago (2010-05-20 16:49:24 UTC) #36
cw
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 10 months ago (2010-05-20 16:52:15 UTC) #37
rsc
14 years, 10 months ago (2010-05-22 00:30:48 UTC) #38
*** Submitted as http://code.google.com/p/go/source/detail?r=b0bae48d2241 ***

net: implement raw sockets

R=rsc
CC=golang-dev
http://codereview.appspot.com/684041

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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