You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately net.ReadFrom and ReadFromIP unconditionally drop an IPv4 header due to #7037. Also ipv4.PacketConn on darwin enables IP_STRIPHDR by default. So an IPv4 header process runs twice when we pass "ip4:icmp" to ListenPacket on Darwin.
The text was updated successfully, but these errors were encountered:
mikioh
changed the title
x/net/icmp: ReadFrom+"ip4:icmp" returns corrupted ICMPv4 message on darwin
icmp: ReadFrom+"ip4:icmp" returns corrupted ICMPv4 message on darwin
Jan 4, 2015
As shown in #9395, inaccurate implementation would be a cause of parsing
IPv4 header twice and corrupted upper-layer message issues.
Change-Id: Ia1a042e7ca58ee4fcb38fe9ec753c2ab100592ca
Reviewed-on: https://go-review.googlesource.com/3001
Reviewed-by: Ian Lance Taylor <iant@golang.org>
mikioh
changed the title
icmp: ReadFrom+"ip4:icmp" returns corrupted ICMPv4 message on darwin
x/net/icmp: ReadFrom+"ip4:icmp" returns corrupted ICMPv4 message on darwin
Jul 20, 2015
Unfortunately net.ReadFrom and ReadFromIP unconditionally drop an IPv4 header due to #7037. Also ipv4.PacketConn on darwin enables IP_STRIPHDR by default. So an IPv4 header process runs twice when we pass "ip4:icmp" to ListenPacket on Darwin.
The text was updated successfully, but these errors were encountered: