read the ECN bits

This commit is contained in:
Marten Seemann
2020-08-10 09:40:04 +07:00
parent 876ab1d531
commit ea3d32394d
19 changed files with 420 additions and 75 deletions

14
conn_helper_darwin.go Normal file
View 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)
}