From 70e7fafaed3c8b6dce46767e3de647fd54671e5c Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 20 Sep 2019 12:47:04 -0600 Subject: [PATCH] Revert netutils/netlib: correct ICMPv6 socket create error. This reverts commit 0bcd3b76280ad100b2d0f7d813fa6d970f54b4f4. --- netutils/netlib/netlib_autoconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netutils/netlib/netlib_autoconfig.c b/netutils/netlib/netlib_autoconfig.c index 5fa29c779..e40423e5c 100644 --- a/netutils/netlib/netlib_autoconfig.c +++ b/netutils/netlib/netlib_autoconfig.c @@ -80,7 +80,7 @@ int netlib_icmpv6_autoconfiguration(FAR const char *ifname) { /* Get an IPv6 socket */ - int sockfd = socket(PF_INET6, NETLIB_SOCK_TYPE, IPPROTO_ICMP6); + int sockfd = socket(PF_INET6, NETLIB_SOCK_TYPE, 0); if (sockfd >= 0) { /* Create a request consisting only of the interface name */