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

ICMP #133

Open
JkDcubeai opened this issue Oct 7, 2023 · 2 comments
Open

ICMP #133

JkDcubeai opened this issue Oct 7, 2023 · 2 comments

Comments

@JkDcubeai
Copy link

JkDcubeai commented Oct 7, 2023

Socket does not have SOCK_RAW

Ping not working on SOCK_STREAM or SOCK_DGRAM

Basic networking does not work

@gvillegass
Copy link

gvillegass commented Jul 16, 2024

any update?

@vladak
Copy link

vladak commented Nov 7, 2024

Not sure what is meant by basic networking. When the WIZNET5K is initialized, it will establish a link, get IP address and then it is possible to "ping" it.

Now, the hardware supports IPRAW type of socket which paves the way to implementing ICMP outside of the hardware. For 5500 the documentation says:

W5500 IPRAW mode can handle IP layer's upper protocol in the TCP/IP Layer. W5500 IPRAW mode supports transport layer protocol such as ICMP(0x01),IGMP(0x02),TCP (0x06) and UDP(0x11) according to the protocol field of IP header, depending on the protocol number. The 'Ping' of ICMP is already implemented in W5500 as the Hardwired but when the user needs, the host can directly process the ICMP function include ping by opening the Socket n as an IPRAW mode.

The other Wiznet chips supported by this driver also have the IPRAW capability.

That said, the IPRAW guide says:

After initialization of W5500, the Ping Reply is processed automatically. However, be aware that the Hardwired Ping Reply Logic is disabled if ICMP is opened as SOCKET n in IPRAW mode,

This driver is open source, so using the IPRAW guide it should be possible to add the IPRAW support in.

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

3 participants