summaryrefslogtreecommitdiff
path: root/libhw/host_net.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-04 12:49:09 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-10 22:07:33 -0700
commit1e8897a61addec5c2067ffbab38122d6c236ced3 (patch)
tree0e81b9b4d07fa8a3394ccadee919b79e059ba19e /libhw/host_net.c
parent3c81186daf97cf7011fd2806dfd0bc3b875e92f3 (diff)
libhw: net.h: Clarify UDP truncation behavior
Diffstat (limited to 'libhw/host_net.c')
-rw-r--r--libhw/host_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhw/host_net.c b/libhw/host_net.c
index 27df2e2..75486aa 100644
--- a/libhw/host_net.c
+++ b/libhw/host_net.c
@@ -457,7 +457,8 @@ static void *hostnet_pthread_recvfrom(void *_args) {
if (*(args->ret_size) < 0)
goto end;
- *(args->ret_size) = recvfrom(args->connfd, args->buf, args->count, 0, &addr.gen, &addr_size);
+ *(args->ret_size) = recvfrom(args->connfd, args->buf, args->count,
+ MSG_TRUNC, &addr.gen, &addr_size);
if (*(args->ret_size) < 0)
goto end;