We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 153a6a6 commit 0d35261Copy full SHA for 0d35261
ipv4/sys_darwin.go
@@ -47,9 +47,11 @@ func init() {
47
continue
48
}
49
50
- // The IP_PKTINFO was introduced in OS X 10.7 (Darwin
51
- // 11.0.0). See http://support.apple.com/kb/HT1633.
52
- if i > 2 || i == 2 && osver[0] >= '1' && osver[1] >= '1' {
+ // The IP_PKTINFO and protocol-independent multicast API were
+ // introduced in OS X 10.7 (Darwin 11.0.0). But it looks like
+ // those features require OS X 10.8 (Darwin 12.0.0) and above.
53
+ // See http://support.apple.com/kb/HT1633.
54
+ if i > 2 || i == 2 && osver[0] >= '1' && osver[1] >= '2' {
55
ctlOpts[ctlPacketInfo].name = sysIP_PKTINFO
56
ctlOpts[ctlPacketInfo].length = sysSizeofInetPktinfo
57
ctlOpts[ctlPacketInfo].marshal = marshalPacketInfo
0 commit comments