inet:fix libuvtest udp multicast error

Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
wangchen 2023-06-30 17:24:07 +08:00 committed by Xiang Xiao
parent 4745ab64c3
commit bde91a2abd

View File

@ -38,6 +38,7 @@
#include "igmp/igmp.h"
#include "inet/inet.h"
#include "socket/socket.h"
#include "udp/udp.h"
#if defined(CONFIG_NET_IPv4) && defined(CONFIG_NET_SOCKOPTS)
@ -180,6 +181,7 @@ int ipv4_setsockopt(FAR struct socket *psock, int option,
* outgoing multicast packets */
{
FAR struct socket_conn_s *conn;
int ttl;
if (value == NULL || value_len == 0)
{