You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "acassis (via GitHub)" <gi...@apache.org> on 2024/04/20 11:48:02 UTC

[I] RNDIS is not working with ping [nuttx]

acassis opened a new issue, #12194:
URL: https://github.com/apache/nuttx/issues/12194

   I'm following this tutorial https://www.youtube.com/watch?v=8noH8v7xNgs
   
   But ping if failing:
   
   ```
   nsh> ping 10.0.0.1
   ERROR: socket() failed: 93
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org.apache.org

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


Re: [I] RNDIS is not working with ping [nuttx]

Posted by "wengzhe (via GitHub)" <gi...@apache.org>.
wengzhe commented on issue #12194:
URL: https://github.com/apache/nuttx/issues/12194#issuecomment-2067731940

   It is weird that the tutorial doesn't need `CONFIG_NET_ICMP_SOCKET`, the ping command uses `socket(AF_INET,SOCK_DGRAM,IPPROTO_ICMP)` at the very beginning (https://github.com/apache/nuttx-apps/blob/c1ec7db8a9420217365dd7c2ff27b15bb09272e5/system/ping/ping.c#L461), and the `CONFIG_NET_ICMP_SOCKET` is always needed for `IPPROTO_ICMP` socket since it was added (https://github.com/apache/nuttx/commit/cccc86da)


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

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


Re: [I] RNDIS is not working with ping [nuttx]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on issue #12194:
URL: https://github.com/apache/nuttx/issues/12194#issuecomment-2067758694

   Thank you @wengzhe! Something I noticed in the video: I only pinged from computer to the board, maybe it explains why I didn't see the issue before. But I still need to do more investigation, because ping is not working in any direction now.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

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


Re: [I] RNDIS is not working with ping [nuttx]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on issue #12194:
URL: https://github.com/apache/nuttx/issues/12194#issuecomment-2067715224

   Enabling CONFIG_NET_ICMP_SOCKET fixed the error message. It is strange because in the video tutorial only requires CONFIG_NET_ICMP maybe something changed in the NET stack. @wengzhe do you know why it is required now?
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

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