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

Issue 15020047: code review 15020047: go.net/ipv6: add ICMP checksum test (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 ICMP checksum test This CL enables testing raw ICMP packets with and without a setting of ICMP checksum field. Actually it's just for Linux because almost all BSD variants never allow us to touch the checksum field of ICMP but Linux does when we use the value 255 for the socket level.

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

Total comments: 9

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -8 lines) Patch
M ipv6/mockicmp_test.go View 1 4 chunks +24 lines, -6 lines 0 comments Download
M ipv6/multicast_test.go View 1 2 chunks +14 lines, -1 line 0 comments Download
M ipv6/unicast_test.go View 1 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 9
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:03:12 UTC) #1
mikio
ping
11 years, 4 months ago (2013-11-02 02:52:17 UTC) #2
dave_cheney.net
Some tiny nits. I don't claim to understand exactly what this test is testing, but ...
11 years, 4 months ago (2013-11-02 03:34:13 UTC) #3
mikio
On Sat, Nov 2, 2013 at 12:34 PM, <dave@cheney.net> wrote: > ipv6/mockicmp_test.go:15: copy(b[:net.IPv6len], src) > ...
11 years, 4 months ago (2013-11-02 03:40:19 UTC) #4
mikio
On Sat, Nov 2, 2013 at 12:40 PM, Mikio Hara <mikioh.mikioh@gmail.com> wrote: >> when their ...
11 years, 4 months ago (2013-11-02 03:54:37 UTC) #5
mikio
ptal https://codereview.appspot.com/15020047/diff/210001/ipv6/mockicmp_test.go File ipv6/mockicmp_test.go (right): https://codereview.appspot.com/15020047/diff/210001/ipv6/mockicmp_test.go#newcode14 ipv6/mockicmp_test.go:14: b := make([]byte, 2*net.IPv6len+8) On 2013/11/02 03:34:14, dfc ...
11 years, 4 months ago (2013-11-02 04:38:14 UTC) #6
dave_cheney.net
On 2013/11/02 04:38:14, mikio wrote: > ptal > > https://codereview.appspot.com/15020047/diff/210001/ipv6/mockicmp_test.go > File ipv6/mockicmp_test.go (right): > ...
11 years, 4 months ago (2013-11-02 05:10:06 UTC) #7
dave_cheney.net
LGTM. Very nice. On Sat, Nov 2, 2013 at 4:10 PM, <dave@cheney.net> wrote: > On ...
11 years, 4 months ago (2013-11-02 06:29:24 UTC) #8
mikio
11 years, 4 months ago (2013-11-02 07:48:20 UTC) #9
*** Submitted as
https://code.google.com/p/go/source/detail?r=0d5e5101bcdd&repo=net ***

go.net/ipv6: add ICMP checksum test

This CL enables testing raw ICMP packets with and without a setting of
ICMP checksum field.

Actually it's just for Linux because almost all BSD variants never
allow us to touch the checksum field of ICMP but Linux does when we use
the value 255 for the socket level.

R=golang-dev, dave
CC=golang-dev
https://codereview.appspot.com/15020047
Sign in to reply to this message.

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