netutils/netlib/netlib_autoconfig.c: Correct ICMPv6 socket create error.

This commit is contained in:
ligd 2019-09-15 08:40:05 -06:00 committed by Gregory Nutt
parent 64bf39fd71
commit 2c34489e81

View File

@ -80,7 +80,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(PF_INET6, NETLIB_SOCK_TYPE, IPPROTO_ICMP6);
if (sockfd >= 0)
{
/* Create a request consisting only of the interface name */