mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-24 01:14:25 +01:00
try with sendmmsg merged back
This commit is contained in:
@@ -80,3 +80,13 @@ func getRawMessageFlags(msg *rawMessage) int {
|
||||
func setCmsgLen(h *unix.Cmsghdr, l int) {
|
||||
h.Len = uint64(l)
|
||||
}
|
||||
|
||||
func setIovecSlice(iov *iovec, b []byte) {
|
||||
if len(b) == 0 {
|
||||
iov.Base = nil
|
||||
iov.Len = 0
|
||||
return
|
||||
}
|
||||
iov.Base = &b[0]
|
||||
iov.Len = uint64(len(b))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user