You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/09/02 16:08:52 UTC

[GitHub] [incubator-nuttx-apps] acassis edited a comment on issue #375: Build failure in apps/ for the 'ping' command

acassis edited a comment on issue #375:
URL: https://github.com/apache/incubator-nuttx-apps/issues/375#issuecomment-685837662


   Hi @dosadi as @Ouss4 suggested it is a good idea to use an existing network configuration as base.
   
   It appears you enabled NET_ICMP, but your forgot to enable NET_ICMP_SOCKET:
   
   $ cd ../apps/
   $ git grep NETLIB_SOCK_TYPE
   $ vi include/netutils/netlib.h
   
   <pre>
   #if NETLIB_SOCK_FAMILY == AF_INET
   #  if defined(CONFIG_NET_UDP)
   #    define NETLIB_SOCK_TYPE SOCK_DGRAM
   #  elif defined(CONFIG_NET_TCP)
   #   define NETLIB_SOCK_TYPE SOCK_STREAM
   #  elif defined(CONFIG_NET_ICMP_SOCKET)   <----------------------------------- HERE
   #   define NETLIB_SOCK_TYPE SOCK_DGRAM
   #   undef NETLIB_SOCK_PROTOCOL
   #   define NETLIB_SOCK_PROTOCOL IPPROTO_ICMP
   #  endif
   </pre>
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org