Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNDIS is not working with ping #12194

Open
acassis opened this issue Apr 20, 2024 · 3 comments
Open

RNDIS is not working with ping #12194

acassis opened this issue Apr 20, 2024 · 3 comments

Comments

@acassis
Copy link
Contributor

acassis commented Apr 20, 2024

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
@acassis
Copy link
Contributor Author

acassis commented Apr 20, 2024

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?

@wengzhe
Copy link
Contributor

wengzhe commented Apr 20, 2024

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 (cccc86da)

@acassis
Copy link
Contributor Author

acassis commented Apr 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants