diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-03-19 19:30:50 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-03-19 19:30:50 +0100 |
commit | aa4d71922f2d29faa2034f75d654f2f30572eef2 (patch) | |
tree | bdd369a28b1d2469ba939de85cae44ca33e4df22 /pkg/tcpip/link/rawfile/rawfile_unsafe.go | |
parent | 40f5d9cc44305fed7ed64cf1d2e26e4c360d2e0d (diff) |
Diffstat (limited to 'pkg/tcpip/link/rawfile/rawfile_unsafe.go')
-rw-r--r-- | pkg/tcpip/link/rawfile/rawfile_unsafe.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/tcpip/link/rawfile/rawfile_unsafe.go b/pkg/tcpip/link/rawfile/rawfile_unsafe.go index cf49ce572..ba171f9f0 100644 --- a/pkg/tcpip/link/rawfile/rawfile_unsafe.go +++ b/pkg/tcpip/link/rawfile/rawfile_unsafe.go @@ -82,11 +82,11 @@ func NonBlockingWrite3(fd int, b1, b2, b3 []byte) *tcpip.Error { iovec := [3]syscall.Iovec{ { Base: &b1[0], - Len: uint64(len(b1)), + Len: IntToSizeT(len(b1)), }, { Base: &b2[0], - Len: uint64(len(b2)), + Len: IntToSizeT(len(b2)), }, } iovecLen := uintptr(2) @@ -94,7 +94,7 @@ func NonBlockingWrite3(fd int, b1, b2, b3 []byte) *tcpip.Error { if len(b3) > 0 { iovecLen++ iovec[2].Base = &b3[0] - iovec[2].Len = uint64(len(b3)) + iovec[2].Len = IntToSizeT(len(b3)) } _, _, e := syscall.RawSyscall(syscall.SYS_WRITEV, uintptr(fd), uintptr(unsafe.Pointer(&iovec[0])), iovecLen) |