diff options
author | Brian Geffon <bgeffon@google.com> | 2018-06-08 10:32:30 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-06-08 10:33:25 -0700 |
commit | 2f3895d6f7ad37915edcdd80706f880ce50c519c (patch) | |
tree | 31a4be0b3fe7631e6f386b633d6e187adcba7fb9 /pkg/tcpip/stack/linkaddrcache_test.go | |
parent | 5c51bc51e43a0f1d1f06ae490b0d352d1b483766 (diff) |
rpcinet is not correctly handling MSG_TRUNC on recvmsg(2).
MSG_TRUNC can cause recvmsg(2) to return a value larger than
the buffer size. In this situation it's an indication that the
buffer was completely filled and that the msg was truncated.
Previously in rpcinet we were returning the buffer size but we
should actually be returning the payload length as returned by
the syscall.
PiperOrigin-RevId: 199814221
Change-Id: If09aa364219c1bf193603896fcc0dc5c55e85d21
Diffstat (limited to 'pkg/tcpip/stack/linkaddrcache_test.go')
0 files changed, 0 insertions, 0 deletions