mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
Replace self defined macros with NET_SOCK_[FAMILY|TYPE|PROTOCOL]
NET_SOCK_* is defined by nuttx/net/netconfig.h and then can be shared Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Gustavo Henrique Nihei

parent
fcd69d1cdf
commit
66dbaa4539
@@ -65,7 +65,7 @@ int netlib_icmpv6_autoconfiguration(FAR const char *ifname)
|
||||
{
|
||||
/* Get an IPv6 socket */
|
||||
|
||||
int sockfd = socket(PF_INET6, NETLIB_SOCK_TYPE, 0);
|
||||
int sockfd = socket(NET_SOCK_FAMILY, NET_SOCK_TYPE, NET_SOCK_PROTOCOL);
|
||||
if (sockfd >= 0)
|
||||
{
|
||||
/* Create a request consisting only of the interface name */
|
||||
|
Reference in New Issue
Block a user