mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-10 15:05:13 +00:00
netutils/netlib/netlib_autoconfig.c: Correct ICMPv6 socket create error.
This commit is contained in:
parent
64bf39fd71
commit
2c34489e81
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue