mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-28 19:49:57 +00:00
TUN-4922: Downgrade quic-go library to 0.20.0
This commit is contained in:
10
vendor/golang.org/x/net/internal/socket/socket.go
generated
vendored
10
vendor/golang.org/x/net/internal/socket/socket.go
generated
vendored
@@ -90,9 +90,17 @@ func (o *Option) SetInt(c *Conn, v int) error {
|
||||
return o.set(c, b)
|
||||
}
|
||||
|
||||
func controlHeaderLen() int {
|
||||
return roundup(sizeofCmsghdr)
|
||||
}
|
||||
|
||||
func controlMessageLen(dataLen int) int {
|
||||
return roundup(sizeofCmsghdr) + dataLen
|
||||
}
|
||||
|
||||
// ControlMessageSpace returns the whole length of control message.
|
||||
func ControlMessageSpace(dataLen int) int {
|
||||
return controlMessageSpace(dataLen)
|
||||
return roundup(sizeofCmsghdr) + roundup(dataLen)
|
||||
}
|
||||
|
||||
// A ControlMessage represents the head message in a stream of control
|
||||
|
Reference in New Issue
Block a user