mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
add support for writing the ECN control message (Linux, macOS)
This commit is contained in:
parent
a7f807856c
commit
f919473598
8 changed files with 91 additions and 3 deletions
|
@ -15,6 +15,8 @@ const (
|
|||
ipv4PKTINFO = unix.IP_RECVPKTINFO
|
||||
)
|
||||
|
||||
const ecnIPv4DataLen = 4
|
||||
|
||||
// ReadBatch only returns a single packet on OSX,
|
||||
// see https://godoc.org/golang.org/x/net/ipv4#PacketConn.ReadBatch.
|
||||
const batchSize = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue