mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
inet:fix libuvtest udp multicast error
Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user