netutils/netlib/netlib_autoconfig.c: Correct ICMPv6 socket create error.
This commit is contained in:
parent
64bf39fd71
commit
2c34489e81
@ -80,7 +80,7 @@ int netlib_icmpv6_autoconfiguration(FAR const char *ifname)
|
|||||||
{
|
{
|
||||||
/* Get an IPv6 socket */
|
/* 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)
|
if (sockfd >= 0)
|
||||||
{
|
{
|
||||||
/* Create a request consisting only of the interface name */
|
/* Create a request consisting only of the interface name */
|
||||||
|
Loading…
Reference in New Issue
Block a user