- 14 May, 2015 1 commit
-
-
Mikio Hara authored
Change-Id: I0c2e1a4a8261887a696e585dda46e72d691191e0 Reviewed-on: https://go-review.googlesource.com/10070 Reviewed-by:
Brad Fitzpatrick <bradfitz@golang.org>
-
- 01 Apr, 2015 1 commit
-
-
Mikio Hara authored
Fixes #10307. Change-Id: If70f36a6f1c4e465a47a0bc4d38b318424111106 Reviewed-on: https://go-review.googlesource.com/8330 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
- 31 Mar, 2015 1 commit
-
-
Mikio Hara authored
This change adds socket system call hooks to existing test cases for simulating a bit complicated network conditions to help making timeout and dual IP stack test cases work more properly in followup changes. Also test cases print debugging information in non-short mode like the following: Leaked goroutines: net.TestWriteTimeout.func2(0xc20802a5a0, 0xc20801d000, 0x1000, 0x1000, 0xc2081d2ae0) /go/src/net/timeout_test.go:170 +0x98 created by net.TestWriteTimeout /go/src/net/timeout_test.go:173 +0x745 net.runDatagramPacketConnServer(0xc2080730e0, 0x2bd270, 0x3, 0x2c1770, 0xb, 0xc2081d2ba0, 0xc2081d2c00) /go/src/net/server_test.go:398 +0x667 created by net.TestTimeoutUDP /go/src/net/timeout_test.go:247 +0xc9 (snip) Leaked sockets: 3: {Cookie:615726511685632 Err:<nil> SocketErr:0} 5: {Cookie:7934075906097152 Err:<nil> SocketErr:0} Socket statistical information: {Family:1 Type:805306370 Protocol:0 Opened:17 Accepted:0 Connected:5 Closed:17} {Family:2 Type:805306369 Protocol:0 Opened:450 Accepted:234 Connected:279 Closed:636} {Family:1 Type:805306369 Protocol:0 Opened:11 Accepted:5 Connected:5 Closed:16} {Family:28 Type:805306369 Protocol:0 Opened:95 Accepted:22 Connected:16 Closed:116} {Family:2 Type:805306370 Protocol:0 Opened:84 Accepted:0 Connected:34 Closed:83} {Family:28 Type:805306370 Protocol:0 Opened:52 Accepted:0 Connected:4 Closed:52} Change-Id: I0e84be59a0699bc31245c78e2249423459b8cdda Reviewed-on: https://go-review.googlesource.com/6390 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
- 23 Mar, 2015 1 commit
-
-
Mikio Hara authored
Fixes #10214. Change-Id: If29d26c590eb53d4976e0a6ace0ed33aaf0c3e80 Reviewed-on: https://go-review.googlesource.com/7924 Reviewed-by:
Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by:
Alex Brainman <alex.brainman@gmail.com>
-
- 03 Mar, 2015 1 commit
-
-
Mikio Hara authored
This change fixes a missing case that a routing address contains an invalid address family label but it holds a valid length of address structure. Also makes test robust. Fixes #10041. Change-Id: I2480ba273929e859896697382d1a75b01a116b98 Reviewed-on: https://go-review.googlesource.com/6391 Reviewed-by:
Brad Fitzpatrick <bradfitz@golang.org>
-
- 01 Mar, 2015 1 commit
-
-
Russ Cox authored
(Issue #10041.) Change-Id: Ia894ab60ac6b09926c684f99aacca79275cbced4 Reviewed-on: https://go-review.googlesource.com/6365 Reviewed-by:
Russ Cox <rsc@golang.org>
-
- 10 Feb, 2015 1 commit
-
-
mattn authored
Fixes #5395 Change-Id: I4322bc8a974d04d9bae6b48c71c5d32d9252973c Reviewed-on: https://go-review.googlesource.com/3024 Reviewed-by:
Alex Brainman <alex.brainman@gmail.com>
-
- 28 Jan, 2015 1 commit
-
-
Mikio Hara authored
This change extends existing test case to Windows for helping to fix golang.org/issue/5395. Change-Id: Iff077fa98ede511981df513f48d84c19375b3e04 Reviewed-on: https://go-review.googlesource.com/3304 Reviewed-by:
Alex Brainman <alex.brainman@gmail.com>
-
- 08 Sep, 2014 1 commit
-
-
Russ Cox authored
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.
-
- 24 Aug, 2013 1 commit
-
-
Mikio Hara authored
NetBSD 6 kernel and beyond require 64-bit aligned access to routing facilities. Fixes #6226. R=golang-dev, bsiegert, bradfitz CC=golang-dev https://golang.org/cl/13170043
-
- 06 Aug, 2013 1 commit
-
-
Mikio Hara authored
Looks like latest FreeBSD doesn't set address family identifer for RTAX_NETMASK stuff; probably RTAX_GENMASK too, not confirmed. This CL tries to identify address families by using the length of each socket address if possible. The issue is confirmed on FreeBSD 9.1. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12332043
-
- 23 Mar, 2013 1 commit
-
-
Mikio Hara authored
This CL provides IPv6 scoped addressing zone support as defined in RFC 4007 for internet protocol family connection setups. Follwoing types and functions allow a literal IPv6 address with zone identifer as theirs parameter. pkg net, func Dial(string, string) (Conn, error) pkg net, func DialOpt(string, ...DialOption) (Conn, error) pkg net, func DialTimeout(string, string, time.Duration) (Conn, error) pkg net, func Listen(string, string) (Listener, error) pkg net, func ListenPacket(string, string) (PacketConn, error) pkg net, func ResolveIPAddr(string, string) (*IPAddr, error) pkg net, func ResolveTCPAddr(string, string) (*TCPAddr, error) pkg net, func ResolveUDPAddr(string, string) (*UDPAddr, error) pkg net, type IPAddr struct, Zone string pkg net, type TCPAddr struct, Zone string pkg net, type UDPAddr struct, Zone string Also follwoing methods return a literal IPv6 address with zone identifier string if possible. pkg net, method (*IPAddr) String() string pkg net, method (*TCPAddr) String() string pkg net, method (*UDPAddr) String() string Fixes #4234. Fixes #4501. Update #5081. R=rsc, iant CC=golang-dev https://golang.org/cl/6816116
-
- 25 Feb, 2013 1 commit
-
-
Mikio Hara authored
This CL addresses the comments on CL 7368046 that I've overlooked. Update #4866. R=golang-dev, dave CC=golang-dev https://golang.org/cl/7369052
-
- 21 Feb, 2013 1 commit
-
-
Mikio Hara authored
Current results on linux/amd64: BenchmarkInterfaces 20000 80902 ns/op BenchmarkInterfaceByIndex 50000 71591 ns/op BenchmarkInterfaceByName 20000 79908 ns/op BenchmarkInterfaceAddrs 2000 836413 ns/op BenchmarkInterfacesAndAddrs 5000 605946 ns/op BenchmarkInterfacesAndMulticastAddrs 10000 169029 ns/op Update #4866. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7368046
-
- 22 Jan, 2013 1 commit
-
-
Mikio Hara authored
On NetBSD routing sockaddrs for interface address contain sockaddr_dl. R=dave, rsc CC=golang-dev https://golang.org/cl/7085064
-
- 21 Jul, 2012 1 commit
-
-
Mikio Hara authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/6434043
-
- 04 Mar, 2012 1 commit
-
-
Mikio Hara authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5727054
-
- 22 Feb, 2012 1 commit
-
-
Mikio Hara authored
Suggested by Paul Borman. Fixes #2826. R=rsc, borman CC=golang-dev https://golang.org/cl/5689048
-
- 21 Dec, 2011 1 commit
-
-
Mikio Hara authored
This CL makes both InterfaceAddrs and Addrs method on Interface return IPNet struct for representing interface address and mask like below: interface "lo0": flags "up|loopback|multicast", ifindex 1, mtu 16384 interface address "fe80::1/64" interface address "127.0.0.1/8" interface address "::1/128" joined group address "ff02::fb" joined group address "224.0.0.251" joined group address "ff02::2:65d0:d71e" joined group address "224.0.0.1" joined group address "ff01::1" joined group address "ff02::1" joined group address "ff02::1:ff00:1" Fixes #2571. R=rsc CC=golang-dev https://golang.org/cl/5489062
-
- 02 Nov, 2011 1 commit
-
-
Russ Cox authored
R=golang-dev, bsiegert, iant CC=golang-dev https://golang.org/cl/5294074
-
- 24 Aug, 2011 1 commit
-
-
Paul Borman authored
ParseMAC parses a string representing MAC-48, EUI-48, or EUI-64 into a HardwareAddr. R=rsc, fshahriar CC=golang-dev https://golang.org/cl/4922048
-
- 04 Aug, 2011 1 commit
-
-
Mikio Hara authored
This CL enables to list the multicast, joined group addresses for a specific interface by using Interface.MulticastAddrs method. R=rsc CC=golang-dev https://golang.org/cl/4808062
-
- 14 Jun, 2011 1 commit
-
-
Mikio Hara authored
Fixes #1942. R=fullung, rsc CC=golang-dev https://golang.org/cl/4602044
-
- 03 Jun, 2011 1 commit
-
-
Mikio Hara authored
This CL introduces new API into package net to identify the network interface. A functionality of new API is very similar to RFC3493 - "Interface Identification". R=r, gri, bradfitz, robert.hencke, fullung, rsc CC=golang-dev https://golang.org/cl/4437087
-