Updated golang/x/net. Also updated golang.org/x/sys, as required by

hack/lint-dependencies.sh.
This commit is contained in:
Chao Xu
2020-10-31 16:21:08 -07:00
parent 24a9d07bf8
commit ec6e232126
225 changed files with 5186 additions and 8241 deletions

View File

@@ -90,17 +90,9 @@ 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 roundup(sizeofCmsghdr) + roundup(dataLen)
return controlMessageSpace(dataLen)
}
// A ControlMessage represents the head message in a stream of control