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

Issue 140640045: code review 140640045: go.net/ipv4: restructure sticky socket option handling (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 7 months ago by mikio
Modified:
9 years, 6 months ago
Reviewers:
iant
CC:
iant, golang-codereviews
Visibility:
Public.

Description

go.net/ipv4: restructure sticky socket option handling This CL chops existing sticky socket option handlers and puts them into platform dependent sticky socket option binding table for supporting multicast features such as source filtering for any-source multicast, source-specific multicast. Also adds tiny syscall shims to help to support solaris, to improve existing platform support.

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

Total comments: 8

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

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

Total comments: 8

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

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

Patch Set 6 : diff -r 90e232e2462dedc03bf3c93358da62d54d55dfb6 https://code.google.com/p/go.net #

Patch Set 7 : diff -r 97a725479a8bb3921383a3a6f9a2536a58fe5b25 https://code.google.com/p/go.net #

Unified diffs Side-by-side diffs Delta from patch set Stats (+545 lines, -792 lines) Patch
M ipv4/control_bsd.go View 1 2 3 4 7 chunks +23 lines, -23 lines 0 comments Download
M ipv4/control_linux.go View 1 2 3 4 4 chunks +13 lines, -13 lines 0 comments Download
M ipv4/control_pktinfo.go View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M ipv4/dgramopt_posix.go View 1 8 chunks +12 lines, -8 lines 0 comments Download
M ipv4/endpoint.go View 1 1 chunk +1 line, -1 line 0 comments Download
M ipv4/genericopt_posix.go View 1 5 chunks +5 lines, -7 lines 0 comments Download
M ipv4/helper.go View 1 chunk +0 lines, -49 lines 0 comments Download
A ipv4/sockopt.go View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
M ipv4/sockopt_asmreq.go View 1 3 chunks +32 lines, -35 lines 0 comments Download
M ipv4/sockopt_asmreq_stub.go View 1 1 chunk +10 lines, -18 lines 0 comments Download
M ipv4/sockopt_asmreq_unix.go View 1 1 chunk +24 lines, -9 lines 0 comments Download
M ipv4/sockopt_asmreq_windows.go View 1 1 chunk +20 lines, -123 lines 0 comments Download
M ipv4/sockopt_asmreqn_stub.go View 1 1 chunk +6 lines, -18 lines 0 comments Download
M ipv4/sockopt_asmreqn_unix.go View 1 1 chunk +24 lines, -13 lines 0 comments Download
R ipv4/sockopt_bsd.go View 1 1 chunk +0 lines, -79 lines 0 comments Download
R ipv4/sockopt_linux.go View 1 chunk +0 lines, -66 lines 0 comments Download
R ipv4/sockopt_nonpktinfo.go View 1 chunk +0 lines, -15 lines 0 comments Download
R ipv4/sockopt_pktinfo.go View 1 chunk +0 lines, -24 lines 0 comments Download
M ipv4/sockopt_stub.go View 1 2 3 1 chunk +17 lines, -5 lines 0 comments Download
M ipv4/sockopt_unix.go View 1 2 3 1 chunk +67 lines, -35 lines 0 comments Download
M ipv4/sockopt_windows.go View 1 2 3 1 chunk +26 lines, -119 lines 0 comments Download
R ipv4/sys.go View 1 chunk +0 lines, -9 lines 0 comments Download
M ipv4/sys_bsd.go View 1 2 3 4 1 chunk +25 lines, -25 lines 0 comments Download
M ipv4/sys_darwin.go View 1 2 3 4 2 chunks +25 lines, -1 line 0 comments Download
M ipv4/sys_freebsd.go View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
M ipv4/sys_linux.go View 1 2 3 4 1 chunk +16 lines, -37 lines 0 comments Download
R ipv4/sys_mreq.go View 1 chunk +0 lines, -37 lines 0 comments Download
A ipv4/sys_stub.go View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M ipv4/sys_windows.go View 1 2 3 4 1 chunk +46 lines, -18 lines 0 comments Download
A ipv4/syscall_linux_386.go View 1 chunk +31 lines, -0 lines 0 comments Download
A ipv4/syscall_unix.go View 1 chunk +26 lines, -0 lines 0 comments Download
A ipv4/thunk_linux_386.s View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 14
mikio
Hello iant@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.net
9 years, 6 months ago (2014-09-25 01:29:29 UTC) #1
mikio
ping
9 years, 6 months ago (2014-09-27 00:42:38 UTC) #2
iant
https://codereview.appspot.com/140640045/diff/1910001/ipv4/sockopt_stub.go File ipv4/sockopt_stub.go (right): https://codereview.appspot.com/140640045/diff/1910001/ipv4/sockopt_stub.go#newcode12 ipv4/sockopt_stub.go:12: name int I suggest that you start these constants ...
9 years, 6 months ago (2014-09-27 00:58:08 UTC) #3
mikio
thanks. On Sat, Sep 27, 2014 at 9:58 AM, <iant@golang.org> wrote: > ipv4/thunk_linux_386.s:9: TEXT ·socketcall(SB),NOSPLIT,$0-36 ...
9 years, 6 months ago (2014-09-27 01:48:49 UTC) #4
mikio
ptal https://codereview.appspot.com/140640045/diff/1910001/ipv4/sockopt_stub.go File ipv4/sockopt_stub.go (right): https://codereview.appspot.com/140640045/diff/1910001/ipv4/sockopt_stub.go#newcode12 ipv4/sockopt_stub.go:12: name int On 2014/09/27 00:58:08, iant wrote: > ...
9 years, 6 months ago (2014-09-27 22:06:05 UTC) #5
mikio
> from syscall/asm_linux_386.s: TEXT ·socketcall(SB),NOSPLIT,$0-36 hands slipped. go1.2: TEXT ·socketcall(SB),NOSPLIT,$0-40 go1.3: TEXT ·socketcall(SB),NOSPLIT,$0-36 go1.4: TEXT ...
9 years, 6 months ago (2014-09-27 22:11:06 UTC) #6
mikio
ptal adjusted stack size for go1.2/13 assembly code
9 years, 6 months ago (2014-09-30 00:20:01 UTC) #7
iant
Is there any way this CL can be made smaller? It's very discouraging to look ...
9 years, 6 months ago (2014-09-30 14:17:24 UTC) #8
iant
https://codereview.appspot.com/140640045/diff/2070001/ipv4/sockopt.go File ipv4/sockopt.go (right): https://codereview.appspot.com/140640045/diff/2070001/ipv4/sockopt.go#newcode27 ipv4/sockopt.go:27: ssoTypeInt Where is the code that maps from these ...
9 years, 6 months ago (2014-09-30 14:28:05 UTC) #9
mikio
ptal https://codereview.appspot.com/140640045/diff/2070001/ipv4/sockopt.go File ipv4/sockopt.go (right): https://codereview.appspot.com/140640045/diff/2070001/ipv4/sockopt.go#newcode27 ipv4/sockopt.go:27: ssoTypeInt ah, overlooked, thx. moved here. https://codereview.appspot.com/140640045/diff/2070001/ipv4/sockopt_unix.go File ...
9 years, 6 months ago (2014-10-01 02:59:37 UTC) #10
iant
This CL needs to get smaller somehow. Can you separate out the control message stuff? ...
9 years, 6 months ago (2014-10-03 00:49:51 UTC) #11
mikio
Hello iant@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 6 months ago (2014-10-03 01:24:47 UTC) #12
iant
LGTM Thanks.
9 years, 6 months ago (2014-10-03 15:48:38 UTC) #13
mikio
9 years, 6 months ago (2014-10-03 23:12:49 UTC) #14
*** Submitted as
https://code.google.com/p/go/source/detail?r=2084e7244573&repo=net ***

go.net/ipv4: restructure sticky socket option handling

This CL chops existing sticky socket option handlers and puts them
into platform dependent sticky socket option binding table for
supporting multicast features such as source filtering for any-source
multicast, source-specific multicast.

Also adds tiny syscall shims to help to support solaris, to improve
existing platform support.

LGTM=iant
R=iant
CC=golang-codereviews
https://codereview.appspot.com/140640045
Sign in to reply to this message.

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