forked from quic-go/quic-go
read the ECN bits
This commit is contained in:
14
conn_helper_darwin.go
Normal file
14
conn_helper_darwin.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// +build darwin
|
||||
|
||||
package quic
|
||||
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
ip_recvtos = 27
|
||||
msgTypeIPTOS = ip_recvtos
|
||||
)
|
||||
|
||||
func setRECVTOS(fd uintptr) error {
|
||||
return syscall.SetsockoptInt(int(fd), syscall.IPPROTO_IP, ip_recvtos, 1)
|
||||
}
|
||||
Reference in New Issue
Block a user