diff --git a/netutils/netlib/netlib_autoconfig.c b/netutils/netlib/netlib_autoconfig.c index e40423e5c..5fa29c779 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, 0); + int sockfd = socket(PF_INET6, NETLIB_SOCK_TYPE, IPPROTO_ICMP6); if (sockfd >= 0) { /* Create a request consisting only of the interface name */