Revert "Updated golang/x/net. Also updated golang.org/x/sys"

This commit is contained in:
Jordan Liggitt
2020-11-02 08:28:24 -05:00
parent cb0389c827
commit 4012fb0052
225 changed files with 8246 additions and 5191 deletions

View File

@@ -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