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

Issue 9353045: code review 9353045: go.net/ipv4: drop DIffServ and ECN constants, add ICMPType (Closed)

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

Description

go.net/ipv4: drop DIffServ and ECN constants, add ICMPType This CL removes DiffServ and ECN constants assigned by IANA because for now we don't have an appropriate package to put those constants as part of API. There were used for the type-of-service field of IPv4 header and the traffic class field of IPv6 header. Also adds ICMPType for convenience, makes use of internal IANA protocol number constants instead of syscall's to prevent churning of package syscall in the near future.

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

Total comments: 8

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+754 lines, -140 lines) Patch
M ipv4/control_bsd.go View 4 chunks +4 lines, -4 lines 0 comments Download
M ipv4/control_linux.go View 4 chunks +4 lines, -4 lines 0 comments Download
M ipv4/doc.go View 3 chunks +3 lines, -5 lines 0 comments Download
M ipv4/example_test.go View 6 chunks +6 lines, -6 lines 0 comments Download
A ipv4/gen.go View 1 chunk +242 lines, -0 lines 0 comments Download
A ipv4/gentest.go View 1 chunk +196 lines, -0 lines 0 comments Download
M ipv4/header.go View 2 chunks +0 lines, -45 lines 0 comments Download
A ipv4/iana.go View 1 chunk +179 lines, -0 lines 0 comments Download
A ipv4/iana_test.go View 1 chunk +38 lines, -0 lines 0 comments Download
A ipv4/icmp.go View 1 chunk +16 lines, -0 lines 0 comments Download
M ipv4/mockicmp_test.go View 3 chunks +4 lines, -14 lines 0 comments Download
M ipv4/multicast_test.go View 4 chunks +6 lines, -6 lines 0 comments Download
M ipv4/multicastsockopt_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M ipv4/sockopt_bsd.go View 12 chunks +12 lines, -12 lines 0 comments Download
M ipv4/sockopt_freebsd.go View 2 chunks +2 lines, -2 lines 0 comments Download
M ipv4/sockopt_linux.go View 12 chunks +12 lines, -12 lines 0 comments Download
M ipv4/sockopt_unix.go View 8 chunks +8 lines, -8 lines 0 comments Download
M ipv4/sockopt_windows.go View 1 12 chunks +12 lines, -12 lines 0 comments Download
M ipv4/unicast_test.go View 4 chunks +6 lines, -6 lines 0 comments Download
M ipv4/unicastsockopt_test.go View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13
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.net
11 years, 10 months ago (2013-05-12 09:19:08 UTC) #1
mikio
Hello dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 9 months ago (2013-06-04 09:58:02 UTC) #2
mikio
ping
11 years, 9 months ago (2013-06-05 11:09:08 UTC) #3
dave_cheney.net
On 2013/06/05 11:09:08, mikio wrote: > ping I'm sorry this got dropped. I will make ...
11 years, 9 months ago (2013-06-05 11:22:26 UTC) #4
dave_cheney.net
Please consider this wording for the description This CL removes DiffServ and ENC constants assigned ...
11 years, 9 months ago (2013-06-06 11:32:22 UTC) #5
dave_cheney.net
LGTM. I'd like to see one final pass before you submit.
11 years, 9 months ago (2013-06-06 11:32:37 UTC) #6
mikio
Thanks for your review. On Thu, Jun 6, 2013 at 8:32 PM, <dave@cheney.net> wrote: > ...
11 years, 9 months ago (2013-06-06 12:39:18 UTC) #7
dave_cheney.net
>> ipv4/example_test.go:153: c, err := net.ListenPacket("ip4:89", >> "0.0.0.0") // OSFP for IPv4 >> maybe net.IPv4Zero ...
11 years, 9 months ago (2013-06-06 12:42:27 UTC) #8
mikio
On Thu, Jun 6, 2013 at 9:42 PM, Dave Cheney <dave@cheney.net> wrote: >>> ipv4/mockicmp_test.go:8: "code.google.com/p/go.net/ipv4" ...
11 years, 9 months ago (2013-06-06 12:56:28 UTC) #9
mikio
PTAL https://codereview.appspot.com/9353045/diff/32001/ipv4/sockopt_windows.go File ipv4/sockopt_windows.go (right): https://codereview.appspot.com/9353045/diff/32001/ipv4/sockopt_windows.go#newcode20 ipv4/sockopt_windows.go:20: err := syscall.Getsockopt(fd, int32(ianaProtocolIP), int32(syscall.IP_TOS), (*byte)(unsafe.Pointer(&v)), &l) On ...
11 years, 9 months ago (2013-06-06 13:19:11 UTC) #10
dave_cheney.net
LGTM. Thank you.
11 years, 9 months ago (2013-06-07 04:20:01 UTC) #11
mikio
*** Abandoned ***
11 years, 9 months ago (2013-06-07 06:02:30 UTC) #12
mikio
11 years, 9 months ago (2013-06-07 06:06:25 UTC) #13
On Fri, Jun 7, 2013 at 3:02 PM,  <mikioh.mikioh@gmail.com> wrote:

> *** Abandoned ***
>
> https://codereview.appspot.com/9353045/

Nope, I just submitted.
In that process, not sure the reason, but I surely typed hg changed -d.
Sorry for the noise, TGIF.
Sign in to reply to this message.

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