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

Issue 5617051: code review 5617051: net: replace implementatin of file/test parseProcNetIGMP

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

Description

net: replace implementatin of file/test parseProcNetIGMP Changed the internal file type to implement a new interface called readStringer that bytes.Buffer also implements. Fixed issue with parseProcNetIGMP incorrectly parsing /proc/net/igmp and panicing. Added test case to test the condition. The old version is still there to demonstrate the problem. The simplest fix, but providing no testing, is to just adopt the parsing logic in interface_linux.c. Alternatively this CL can go in with the _oldParseProcNetIGMP function removed and the igmp_test.go file named in such a way it will only run on linux (to late to research that tonight). Note that for me the net test still fails. The panic was masking a different failure (the igmp_tet.go failure is expected): --- FAIL: TestOldParseProcNetIGMP (0.00 seconds) igmp_test.go:35: paniced --- FAIL: TestListenMulticastUDP (0.00 seconds) multicast_test.go:126: IPv4 multicast interface: <nil> multicast_test.go:136: IPv4 multicast TTL: 1 multicast_test.go:146: IPv4 multicast loopback: false multicast_test.go:82: "224.0.0.254:12345" not found in RIB fixes issue 2826

Patch Set 1 #

Patch Set 2 : diff -r f79343c8a479 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f79343c8a479 https://go.googlecode.com/hg/ #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -66 lines) Patch
M src/pkg/net/dnsconfig.go View 1 3 chunks +2 lines, -2 lines 1 comment Download
M src/pkg/net/hosts.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
A src/pkg/net/igmp_test.go View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M src/pkg/net/interface_linux.go View 1 2 2 chunks +14 lines, -11 lines 0 comments Download
M src/pkg/net/interface_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/lookup_unix.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/net/parse.go View 1 2 chunks +34 lines, -43 lines 3 comments Download
M src/pkg/net/parse_test.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/pkg/net/port.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/net/sock_linux.go View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6
borman
13 years, 11 months ago (2012-02-06 21:48:26 UTC) #1
borman
Hello mikioh.mikioh@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 11 months ago (2012-02-10 01:29:53 UTC) #2
borman
On 2012/02/10 01:29:53, borman wrote: > Hello mailto:mikioh.mikioh@gmail.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
13 years, 11 months ago (2012-02-10 01:30:58 UTC) #3
rsc1
Thanks for working on this. Can we get the delta down a bit smaller? http://codereview.appspot.com/5617051/diff/4011/src/pkg/net/dnsconfig.go ...
13 years, 11 months ago (2012-02-10 03:13:17 UTC) #4
mikio
On Fri, Feb 10, 2012 at 12:13 PM, <rsc@google.com> wrote: > http://codereview.appspot.com/5617051/diff/4011/src/pkg/net/parse.go#newcode11 > src/pkg/net/parse.go:11: "bytes" ...
13 years, 11 months ago (2012-02-10 04:02:54 UTC) #5
rsc1
13 years, 11 months ago (2012-02-10 04:23:36 UTC) #6
On Thu, Feb 9, 2012 at 23:02, Mikio Hara <mikioh.mikioh@gmail.com> wrote:
> Ah... well... I've already embedded bytes dependency in
> interface.go and sockopt.go. Is it worth to remove all of
> these dependencies before Go 1 release?

Perhaps not but let's not strengthen the links.

Russ
Sign in to reply to this message.

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