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

Issue 15550043: code review 15550043: go.net/ipv6: add missing per interface multicast listen... (Closed)

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

Description

go.net/ipv6: add missing per interface multicast listener test

Patch Set 1 : diff -r 55437409069b https://code.google.com/p/go.net #

Total comments: 4

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -8 lines) Patch
M ipv6/multicastlistener_test.go View 1 5 chunks +54 lines, -8 lines 0 comments Download

Messages

Total messages: 4
mikio
Hello golang-dev@googlegroups.com, dave@cheney.net (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.net
11 years, 5 months ago (2013-10-21 10:02:45 UTC) #1
mikio
ping
11 years, 4 months ago (2013-11-02 02:51:39 UTC) #2
dave_cheney.net
LGTM with minor nits, sorry it took so long to review. Test passes as root ...
11 years, 4 months ago (2013-11-02 06:36:50 UTC) #3
mikio
11 years, 4 months ago (2013-11-02 09:06:56 UTC) #4
*** Submitted as
https://code.google.com/p/go/source/detail?r=67397a11592e&repo=net ***

go.net/ipv6: add missing per interface multicast listener test

R=golang-dev, dave
CC=golang-dev
https://codereview.appspot.com/15550043

https://codereview.appspot.com/15550043/diff/180001/ipv6/multicastlistener_te...
File ipv6/multicastlistener_test.go (right):

https://codereview.appspot.com/15550043/diff/180001/ipv6/multicastlistener_te...
ipv6/multicastlistener_test.go:211: gaddr := &net.IPAddr{IP:
net.ParseIP("ff02::114")} // see RFC 4727
On 2013/11/02 06:36:50, dfc wrote:
> nit: gaddr := net.IPAddr{ ... }
> 
> then take the address later on as you do with ifi
> 
> this is really a small nit.

Done.

https://codereview.appspot.com/15550043/diff/180001/ipv6/multicastlistener_te...
ipv6/multicastlistener_test.go:231: defer c.Close()
On 2013/11/02 06:36:50, dfc wrote:
> is the defer sufficient to substitute for LeaveGroup on line 239 ?

yes and no, almost all cases are fine but it really depends on platform. for
example, it would be an undefined behavior if we bring down and up the interface
during this test.
Sign in to reply to this message.

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