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

Issue 12898045: code review 12898045: net: use protocol number literals instead of names in r... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by mikio
Modified:
10 years, 7 months ago
Reviewers:
brainman, ioe, bradfitz
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

net: add minimal internet protocol number information base This CL adds minimal information for supporting platforms that don't have a complete list of internet protocol numbers. Fixes issue 5344.

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

Patch Set 2 : diff -r 5600ebc3b0b1 https://code.google.com/p/go #

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

Patch Set 4 : diff -r 3a166dbdf846 https://code.google.com/p/go #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -7 lines) Patch
M src/pkg/net/lookup.go View 1 2 1 chunk +13 lines, -0 lines 1 comment Download
M src/pkg/net/lookup_unix.go View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M src/pkg/net/lookup_windows.go View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 12
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
10 years, 8 months ago (2013-08-21 08:22:49 UTC) #1
bradfitz
I think it was prettier before. I'd prefer to see the net package have its ...
10 years, 8 months ago (2013-08-21 14:56:51 UTC) #2
mikio
PTAL > I'd prefer to see the net package have its own small map of ...
10 years, 8 months ago (2013-08-22 00:37:21 UTC) #3
bradfitz
LGTM
10 years, 8 months ago (2013-08-22 01:03:35 UTC) #4
mikio
*** Submitted as https://code.google.com/p/go/source/detail?r=911d3644ba26 *** net: add minimal internet protocol number information base This CL ...
10 years, 8 months ago (2013-08-22 01:33:42 UTC) #5
brainman
No test? How do we know that this works? Alex
10 years, 8 months ago (2013-08-22 01:46:29 UTC) #6
mikio
Good catch. Just sent CL 12966046. On Thu, Aug 22, 2013 at 10:46 AM, <alex.brainman@gmail.com> ...
10 years, 8 months ago (2013-08-22 02:31:45 UTC) #7
brainman
https://codereview.appspot.com/12898045/diff/17001/src/pkg/net/lookup.go File src/pkg/net/lookup.go (right): https://codereview.appspot.com/12898045/diff/17001/src/pkg/net/lookup.go#newcode21 src/pkg/net/lookup.go:21: "ipv6-icmp": 58, "IPV6-ICMP": 58, "IPv6-ICMP": 58, I am not ...
10 years, 8 months ago (2013-08-22 02:52:52 UTC) #8
mikio
On Thu, Aug 22, 2013 at 11:52 AM, <alex.brainman@gmail.com> wrote: > I am not convinced ...
10 years, 8 months ago (2013-08-22 03:12:37 UTC) #9
brainman
On 2013/08/22 03:12:37, mikio wrote: > > > How do you know that 58 means ...
10 years, 8 months ago (2013-08-22 07:45:05 UTC) #10
ioe
The actual numbers are from http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml You are basically just allowed to ADD to this ...
10 years, 8 months ago (2013-08-22 14:50:38 UTC) #11
brainman
10 years, 7 months ago (2013-08-23 02:33:54 UTC) #12
Message was sent while issue was closed.
On 2013/08/22 14:50:38, ioe wrote:
> 
> Did you see a different number returned on some windows systems? ...

I didn't look, I do not know. But where does it say that numbers will match
http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml?
Instead, Microsoft suggest we use getprotobyname instead. And we ignore that
advice and make some assumptions.

But I don't use any of that code myself (and I don't understand how it works),
so I will stop my arguments.

Alex
Sign in to reply to this message.

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