Mikio Hara cfe3c2a752 icmp: don't step on recycled socket descriptors
This change fixes lazy socket descriptor handling in ListenPacket to
avoid treading on someone's socket descriptors which are recycled by
descriptor duplication. The issue happens when calling ListenPacket for
non-privileged ICMP endpoint concurrently.

Fixes golang/go#16969.

Change-Id: I4d7672535f5aeb2a0b71f8af2c7ba271a085f418
Reviewed-on: https://go-review.googlesource.com/28473
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-09-10 09:57:27 +00:00
2014-12-09 14:17:11 +11:00
2016-01-08 17:00:32 +00:00
2016-09-01 05:44:53 +00:00
2014-12-09 14:17:11 +11:00
2016-08-26 23:57:27 +00:00
2015-12-14 00:45:27 +00:00
2014-12-09 14:17:11 +11:00
2016-05-01 04:31:21 +00:00
2015-03-18 17:04:12 +00:00
2015-02-18 23:42:41 +00:00

This repository holds supplementary Go networking libraries.

To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
[mirror] Go supplementary network libraries
Readme BSD-3-Clause 13 MiB
Languages
Go 99.9%