diff --git a/src/l2_packet/l2_packet_haiku.c b/src/l2_packet/l2_packet_haiku.c index c6d4d5fd5..392061d4e 100644 --- a/src/l2_packet/l2_packet_haiku.c +++ b/src/l2_packet/l2_packet_haiku.c @@ -127,7 +127,7 @@ static void l2_packet_receive(int sock, void *eloop_ctx, void *sock_ctx) ssize_t bytesReceived; u8 buffer[2300]; - bytesReceived = recvfrom(l2->rx_fd, buffer, sizeof(buffer), MSG_TRUNC, + bytesReceived = recvfrom(l2->rx_fd, buffer, sizeof(buffer), 0, (struct sockaddr*)&from, &fromLength); if (bytesReceived <= 0)