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

Issue 7039044: code review 7039044: syscall: simplify netlink sockets (Closed)

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

Description

syscall: simplify netlink sockets

Patch Set 1 #

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

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

Total comments: 10

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

Total comments: 8

Patch Set 5 : diff -r c3b05ada7ea5 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -104 lines) Patch
M src/pkg/syscall/netlink_linux.go View 1 2 3 4 3 chunks +66 lines, -104 lines 0 comments Download

Messages

Total messages: 7
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
12 years, 6 months ago (2012-12-31 14:30:26 UTC) #1
dave_cheney.net
A few minor comments. This is a nice improvement, thank you. How is the test ...
12 years, 6 months ago (2013-01-02 03:47:55 UTC) #2
rsc
LGTM once Dave is happy.
12 years, 6 months ago (2013-01-07 04:56:43 UTC) #3
mikio
> How is the test coverage in this area, are all the changes you've made ...
12 years, 6 months ago (2013-01-09 15:51:27 UTC) #4
mikio
Hello dave@cheney.net, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 6 months ago (2013-01-09 15:52:15 UTC) #5
dave_cheney.net
LGTM. Some very minor comments. https://codereview.appspot.com/7039044/diff/10001/src/pkg/syscall/netlink_linux.go File src/pkg/syscall/netlink_linux.go (right): https://codereview.appspot.com/7039044/diff/10001/src/pkg/syscall/netlink_linux.go#newcode90 src/pkg/syscall/netlink_linux.go:90: if m.Header.Seq != uint32(1) ...
12 years, 6 months ago (2013-01-12 10:20:48 UTC) #6
mikio
12 years, 6 months ago (2013-01-14 10:29:14 UTC) #7
*** Submitted as https://code.google.com/p/go/source/detail?r=f0176b564837 ***

syscall: simplify netlink sockets

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

https://codereview.appspot.com/7039044/diff/10001/src/pkg/syscall/netlink_lin...
File src/pkg/syscall/netlink_linux.go (right):

https://codereview.appspot.com/7039044/diff/10001/src/pkg/syscall/netlink_lin...
src/pkg/syscall/netlink_linux.go:90: if m.Header.Seq != uint32(1) ||
m.Header.Pid != v.Pid {
On 2013/01/12 10:20:48, dfc wrote:
> you don't need the conversion here

Done.

https://codereview.appspot.com/7039044/diff/10001/src/pkg/syscall/netlink_lin...
src/pkg/syscall/netlink_linux.go:107: // A NetlinkMessage represents a netlink
message.
On 2013/01/12 10:20:48, dfc wrote:
> I think this reads better as
> 
> // NetlinkMessage represents a netlink message.

Done.

https://codereview.appspot.com/7039044/diff/10001/src/pkg/syscall/netlink_lin...
src/pkg/syscall/netlink_linux.go:122: m := NetlinkMessage{}
On 2013/01/12 10:20:48, dfc wrote:
> m := NetlinkMessage{
>     Header: *h,
>     Data: ... // and so forth
> }

Done.

https://codereview.appspot.com/7039044/diff/10001/src/pkg/syscall/netlink_lin...
src/pkg/syscall/netlink_linux.go:166: ra := NetlinkRouteAttr{}
On 2013/01/12 10:20:48, dfc wrote:
> ra := NetlinkRouteAddr{
>     Attr: *a
>     // and so forth
> }

Done.
Sign in to reply to this message.

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