Commit 383de39d authored by Mikio Hara's avatar Mikio Hara

x/net/ipv6: re-enable IPV6_PATHMTU for TCP on darwin

Now this option works fine on latest darwin kernels.

Please be informed that using mixed RFC 2292 and RFC 3542 options
on darwin easily becomes a root cause of various kernel crashes.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/166500043
parent f0ba5dcc
......@@ -67,6 +67,9 @@ func init() {
sockOpts[ssoReceivePathMTU].level = iana.ProtocolIPv6
sockOpts[ssoReceivePathMTU].name = sysIPV6_RECVPATHMTU
sockOpts[ssoReceivePathMTU].typ = ssoTypeInt
sockOpts[ssoPathMTU].level = iana.ProtocolIPv6
sockOpts[ssoPathMTU].name = sysIPV6_PATHMTU
sockOpts[ssoPathMTU].typ = ssoTypeMTUInfo
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment