1
0
mirror of https://github.com/golang/go synced 2024-10-05 16:01:22 -06:00
go/src/pkg/net
Mikio Hara 83ac901fb9 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
2014-03-29 13:04:25 +09:00
..
http net/http: disable recently-introduced flaky test on Windows 2014-03-25 15:19:58 -07:00
mail net/mail: correctly handle whitespaces when formatting an email address 2014-02-07 10:49:10 +11:00
rpc net/rpc/jsonrpc: set exactly one of result or error to non-null in response 2014-03-07 16:59:11 -08:00
smtp net/smtp: set ServerName in StartTLS, as now required by crypto/tls 2014-03-04 13:43:26 -08:00
testdata net: test dnsconfig_unix with sample resolv.conf 2013-12-18 08:26:36 -08:00
textproto net/textproto: fix CanonicalMIMEHeaderKey panic 2013-11-04 12:35:11 -05:00
url net/url: fix Encode doc comment 2013-10-25 23:00:22 +03:00
cgo_bsd.go runtime, net: add support for GOOS=solaris 2014-02-24 22:31:01 -05:00
cgo_linux.go net: introduce netgo build tag to build a pure Go net package. 2013-06-11 02:55:16 +08:00
cgo_netbsd.go net: introduce netgo build tag to build a pure Go net package. 2013-06-11 02:55:16 +08:00
cgo_openbsd.go net: introduce netgo build tag to build a pure Go net package. 2013-06-11 02:55:16 +08:00
cgo_stub.go net: introduce netgo build tag to build a pure Go net package. 2013-06-11 02:55:16 +08:00
cgo_unix_test.go net: add test cases for the both of netgo, cgo DNS lookups 2013-12-19 07:40:10 +09:00
cgo_unix.go net: remove the dreg of solaris merge 2014-03-03 07:09:28 +09:00
conn_test.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
dial_gen_test.go net: fix dial race on plan9 and windows 2013-05-08 16:19:02 +10:00
dial_gen.go net: implement TCP connection setup with fast failover 2013-09-11 10:48:53 -04:00
dial_test.go runtime, net: add support for GOOS=solaris 2014-02-24 22:31:01 -05:00
dial.go net: add Dialer.KeepAlive option 2014-02-24 13:14:48 -08:00
dialgoogle_test.go net: fix incorrect internal IPv6 address representation in test 2014-01-14 07:36:38 +09:00
dnsclient_unix_test.go net: dragonfly support 2013-08-24 02:18:22 +10:00
dnsclient_unix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
dnsclient.go net: avoid string operation and make valid domain names explicit 2013-08-08 16:33:57 -07:00
dnsconfig_unix_test.go net: rename TestReadConfig to TestDNSReadConfig 2013-12-19 13:02:06 +09:00
dnsconfig_unix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
dnsmsg_test.go
dnsmsg.go net: fix a bad cast in dnsmsg.go 2012-11-01 12:57:44 -04:00
dnsname_test.go net: avoid string operation and make valid domain names explicit 2013-08-08 16:33:57 -07:00
empty.c net: fix build with CGO_ENABLED=0 2013-03-15 22:23:35 +04:00
example_test.go net: close TCPListener in example 2013-03-29 15:07:10 +09:00
fd_mutex_test.go net: make use of testing.Errorf instead of testing.Fatalf in non-test function goroutines 2014-03-15 13:43:02 +09:00
fd_mutex.go net: fix bug in fdMutex 2013-08-16 16:02:55 +04:00
fd_plan9.go net: plan9 changes for default net directory 2014-01-22 22:21:53 +01:00
fd_poll_nacl.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
fd_poll_runtime.go runtime, net: add support for GOOS=solaris 2014-02-24 22:31:01 -05:00
fd_unix_test.go runtime, net: add support for GOOS=solaris 2014-02-24 22:31:01 -05:00
fd_unix.go net: avoid multiple calling of syscall connect on Unix variants 2014-03-25 02:56:10 +09:00
fd_windows.go net: remove superfluous type conversion 2014-02-07 16:58:45 +11:00
file_plan9.go net: plan9 changes for default net directory 2014-01-22 22:21:53 +01:00
file_test.go net: clean the dregs of NaCL merge 2014-02-26 10:20:49 +09:00
file_unix.go net: clean the dregs of NaCL merge 2014-02-26 10:20:49 +09:00
file_windows.go net: update documentation for FileConn, FilePacketConn, FileListener 2013-03-29 12:16:24 +09:00
hosts_test.go net: don't leave hostsPath unrestored on error in TestLookupStaticHost 2013-12-12 10:12:06 +04:00
hosts.go
interface_bsd_test.go net: dragonfly support 2013-08-24 02:18:22 +10:00
interface_bsd.go net: dragonfly support 2013-08-24 02:18:22 +10:00
interface_darwin.go src/pkg: fixed various typos 2013-03-20 16:32:37 -07:00
interface_dragonfly.go net: dragonfly support 2013-08-24 02:18:22 +10:00
interface_freebsd.go src/pkg: fixed various typos 2013-03-20 16:32:37 -07:00
interface_linux_test.go net: give more detail when test panics 2013-07-26 00:21:37 +09:00
interface_linux.go net: handle IP interface stack correctly on linux 2014-02-15 01:07:51 +09:00
interface_netbsd.go net: fix slow network interface manipulations 2013-02-28 14:58:41 +09:00
interface_openbsd.go net: fix slow network interface manipulations 2013-02-28 14:58:41 +09:00
interface_stub.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
interface_test.go syscall: update routing socket parser for NetBSD 6 and beyond 2013-08-25 08:44:31 +09:00
interface_unix_test.go net: dragonfly support 2013-08-24 02:18:22 +10:00
interface_windows.go net: fix slow network interface manipulations 2013-02-28 14:58:41 +09:00
interface.go net: fix slow network interface manipulations 2013-02-28 14:58:41 +09:00
ip_test.go net: ParseIP should return nil if :: doesn't expand in an IPv6 address. 2013-12-20 21:29:28 +09:00
ip.go net: ParseIP should return nil if :: doesn't expand in an IPv6 address. 2013-12-20 21:29:28 +09:00
ipraw_test.go net: clean the dregs of NaCL merge 2014-02-26 10:20:49 +09:00
iprawsock_plan9.go net: update documentation for IPConn and related stuff 2013-03-31 16:46:59 +09:00
iprawsock_posix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
iprawsock.go net: add netaddr interface 2013-08-30 09:09:45 +09:00
ipsock_plan9.go net: net: better IPv4 stack probe on Plan 9 2014-01-30 09:49:32 +09:00
ipsock_posix.go net: make IPv6 capability test more suitable for address family selection on the dual IP stack node 2014-03-28 13:27:51 +09:00
ipsock_test.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
ipsock.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
lookup_plan9.go net: only return unique hosts during hostname lookup on plan 9 2014-02-13 10:26:16 -05:00
lookup_test.go all: use t.Skip{,f} 2013-01-24 17:32:10 +11:00
lookup_unix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
lookup_windows.go net: fix misspelled variable name (fixes windows build) 2013-08-22 12:34:05 +10:00
lookup.go net: keep lookup IP stuff close 2013-08-31 16:29:50 +09:00
mac_test.go
mac.go
mockicmp_test.go net: move mock ICMP into separate file 2013-09-12 11:59:18 +09:00
mockserver_test.go net: implement TCP connection setup with fast failover 2013-09-11 10:48:53 -04:00
multicast_test.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
net_test.go net: make use of testing.Errorf instead of testing.Fatalf in non-test function goroutines 2014-03-15 13:43:02 +09:00
net_windows_test.go net: fix data race in test 2014-01-21 10:35:27 +04:00
net.go undo CL 13348045 / 43675523c526 2013-09-11 20:29:22 -04:00
netgo_unix_test.go net: remove the dreg of solaris merge 2014-03-03 07:09:28 +09:00
packetconn_test.go net: fix typo in failure message in test 2013-10-09 06:44:11 -07:00
parse_test.go all: avoid leaking fds during tests 2013-06-21 11:13:14 +10:00
parse.go net, text/tabwriter: use cap arg to make 2013-12-12 10:13:17 +04:00
pipe_test.go
pipe.go
port_test.go net: use windows GetAddrInfoW in LookupPort when possible 2013-01-18 17:05:04 +11:00
port_unix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
port.go
protoconn_test.go net: re-enable raw socket tests on windows 2013-09-24 13:15:49 +10:00
race0.go net: annotate Read/Write for race detector 2013-08-19 23:09:24 +04:00
race.go net: annotate Read/Write for race detector 2013-08-19 23:09:24 +04:00
sendfile_dragonfly.go net: dragonfly support 2013-08-24 02:18:22 +10:00
sendfile_freebsd.go net: add special netFD mutex 2013-08-09 21:43:00 +04:00
sendfile_linux.go net: add special netFD mutex 2013-08-09 21:43:00 +04:00
sendfile_stub.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
sendfile_windows.go net: have separate read and write processing threads on windows 2013-08-27 14:53:57 +10:00
server_test.go net: use original raddr if getpeername fails 2013-03-23 22:32:19 +09:00
singleflight.go net: coalesce duplicate in-flight DNS lookups 2013-06-14 08:59:43 -07:00
sock_bsd.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
sock_cloexec.go net: enable fast socket creation with close-on-exec flag on freebsd 2014-03-04 09:28:09 +09:00
sock_linux.go net: never use backlog > 65535 2013-03-12 01:48:48 -04:00
sock_plan9.go net: consolidate listenerBacklog declaration 2013-07-24 08:43:08 +09:00
sock_posix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
sock_solaris.go runtime, net: add support for GOOS=solaris 2014-02-24 22:31:01 -05:00
sock_windows.go net: add dial, listenStream and listenDatagram methods to netFD 2013-08-07 06:15:50 +09:00
sockopt_bsd.go net: tweak the ephemeral port range on dragonfly 2014-03-29 13:04:25 +09:00
sockopt_linux.go net: simplify socket option helpers 2013-07-28 11:18:06 +09:00
sockopt_plan9.go net: plan9 changes for default net directory 2014-01-22 22:21:53 +01:00
sockopt_posix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
sockopt_solaris.go runtime, net: add support for GOOS=solaris 2014-02-24 22:31:01 -05:00
sockopt_windows.go net: simplify socket option helpers 2013-07-28 11:18:06 +09:00
sockoptip_bsd.go syscall, net: clean up socket stub for solaris 2014-03-12 10:32:46 +09:00
sockoptip_linux.go net: add special netFD mutex 2013-08-09 21:43:00 +04:00
sockoptip_posix.go syscall, net: clean up socket stub for solaris 2014-03-12 10:32:46 +09:00
sockoptip_stub.go syscall, net: clean up socket stub for solaris 2014-03-12 10:32:46 +09:00
sockoptip_windows.go net: add special netFD mutex 2013-08-09 21:43:00 +04:00
sys_cloexec.go net: enable fast socket creation with close-on-exec flag on freebsd 2014-03-04 09:28:09 +09:00
tcp_test.go net: deflake TestTCPConcurrentAccept 2014-03-25 02:56:37 +09:00
tcpsock_plan9.go net: plan9 changes for default net directory 2014-01-22 22:21:53 +01:00
tcpsock_posix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
tcpsock.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
tcpsockopt_darwin.go net: add special netFD mutex 2013-08-09 21:43:00 +04:00
tcpsockopt_dragonfly.go net: fix TCP keepalive on dragonfly 2014-03-13 14:45:50 +09:00
tcpsockopt_openbsd.go net: add special netFD mutex 2013-08-09 21:43:00 +04:00
tcpsockopt_plan9.go net: plan9 changes for default net directory 2014-01-22 22:21:53 +01:00
tcpsockopt_posix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
tcpsockopt_solaris.go runtime, net: add support for GOOS=solaris 2014-02-24 22:31:01 -05:00
tcpsockopt_unix.go net: fix TCP keepalive on dragonfly 2014-03-13 14:45:50 +09:00
tcpsockopt_windows.go net: add SetKeepAlivePeriod for windows 2014-01-10 14:33:54 +11:00
timeout_test.go net: make use of testing.Errorf instead of testing.Fatalf in non-test function goroutines 2014-03-15 13:43:02 +09:00
udp_test.go net: disable "udp" to IPv6 unicast address loopback test on dragonfly 2014-03-06 00:08:03 +11:00
udpsock_plan9.go net: plan9 changes for default net directory 2014-01-22 22:21:53 +01:00
udpsock_posix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
udpsock.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
unicast_posix_test.go net: skip TestDualStackTCPListener in short mode 2014-01-17 09:49:38 +11:00
unix_test.go net: fix Close of autobind unix listener 2013-09-23 22:33:42 -04:00
unixsock_plan9.go net: Fix inaccurate docs for AcceptTCP and AcceptUnix. 2013-09-06 12:00:03 -07:00
unixsock_posix.go all: merge NaCl branch (part 1) 2014-02-25 09:47:42 -05:00
unixsock.go net: add netaddr interface 2013-08-30 09:09:45 +09:00
z_last_test.go net: disable TestDNSThreadLimit even in non-short mode by default 2014-02-14 12:20:21 +09:00