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

Issue 4950046: code review 4950046: net: change the internal form of IPMask for IPv4 (Closed)

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

Description

net: change the internal form of IPMask for IPv4 This CL changes the internal form of IPMask for IPv4 from 16-byte to 4-byte, also adds Size method to IPMask struct and changes output string format of IPMask.String method.

Patch Set 1 #

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

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

Patch Set 4 : diff -r d294002edcac https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r d294002edcac https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 6 : diff -r 7fec8679f10d https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 7fec8679f10d https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -51 lines) Patch
M src/pkg/net/ip.go View 1 2 3 4 5 7 chunks +37 lines, -34 lines 0 comments Download
M src/pkg/net/ip_test.go View 1 2 3 4 5 6 3 chunks +50 lines, -17 lines 0 comments Download

Messages

Total messages: 9
mikio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 7 months ago (2011-08-26 00:47:16 UTC) #1
mikio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-08-26 01:56:39 UTC) #2
mikio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-08-26 02:24:22 UTC) #3
rsc
Close. http://codereview.appspot.com/4950046/diff/11001/src/pkg/net/ip.go File src/pkg/net/ip.go (left): http://codereview.appspot.com/4950046/diff/11001/src/pkg/net/ip.go#oldcode217 src/pkg/net/ip.go:217: if len(mask) == IPv6len && len(ip) == IPv4len ...
13 years, 7 months ago (2011-08-26 19:55:40 UTC) #4
mikio
http://codereview.appspot.com/4950046/diff/11001/src/pkg/net/ip.go File src/pkg/net/ip.go (left): http://codereview.appspot.com/4950046/diff/11001/src/pkg/net/ip.go#oldcode217 src/pkg/net/ip.go:217: if len(mask) == IPv6len && len(ip) == IPv4len && ...
13 years, 7 months ago (2011-08-27 02:29:58 UTC) #5
mikio
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-08-27 02:30:18 UTC) #6
mikio
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-08-27 04:55:10 UTC) #7
rsc
LGTM
13 years, 7 months ago (2011-08-29 14:48:36 UTC) #8
rsc
13 years, 7 months ago (2011-08-29 14:49:07 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=de17fe50788b ***

net: change the internal form of IPMask for IPv4

This CL changes the internal form of IPMask for IPv4
from 16-byte to 4-byte, also adds Size method to IPMask
struct and changes output string format of IPMask.String
method.

R=rsc
CC=golang-dev
http://codereview.appspot.com/4950046

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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