From 11c4252ebcd9a36d3407a1af0ee951c11a6ba816 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 8 Feb 2021 16:16:19 +0100 Subject: [PATCH] flag --- sink/sink20169.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sink/sink20169.c b/sink/sink20169.c index aff0f93..df20bd4 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -19,10 +19,10 @@ int main() { bind(sockfd, (const struct sockaddr *) &servaddr, sizeof(servaddr)); - uint8_t buf[1024]; + uint8_t buf[800]; while (1) { - int n = recvfrom(sockfd, buf, sizeof(buf), 0, + int n = recvfrom(sockfd, buf, sizeof(buf), MSG_TRUNC, (struct sockaddr *) &cliaddr, &cliaddrlen); printf("received %d octets from %04x\n", n, cliaddr.sin_addr.s_addr);