]> Cypherpunks repositories - gostls13.git/commit
net: tweak the ephemeral port range on dragonfly
authorMikio Hara <mikioh.mikioh@gmail.com>
Sat, 29 Mar 2014 04:04:25 +0000 (13:04 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Sat, 29 Mar 2014 04:04:25 +0000 (13:04 +0900)
commit83ac901fb9298bf29059d52bc8b084c885586d1b
tree3de769a03e89032d362c43bf9eeb60e13fb97281
parenta7858a40a5bd8481fee839fddd29c305bb4093ef
net: tweak the ephemeral port range on dragonfly

On DragonFly BSD, we adjust the ephemeral port range because
unlike other BSD systems its default ephemeral port range
doesn't conform to IANA recommendation as described in RFC 6355
and is pretty narrow.

On DragonFly BSD 3.6: default range [1024, 5000], high range [49152, 65535]
On FreeBSD 10: default range [10000, 65535], high range [49152, 65535]
On Linux 3.11: default range [32768, 61000]

Fixes #7541.

LGTM=iant
R=jsing, gobot, iant
CC=golang-codereviews
https://golang.org/cl/80610044
src/pkg/net/sockopt_bsd.go
src/pkg/syscall/net_nacl.go