Re: [PATCH 0/1] tidbits: net-ping: add ping tidbit using raw socket
Hannes Diethelm <[email protected]> Sun, 5 Jul 2026 17:21:01 +0200
| Newsgroups | dev.linux.lists.xenomai |
|---|---|
| Message-ID | <[email protected]> |
Am 05.07.26 um 17:01 schrieb Philippe Gerum: > Hannes Diethelm <[email protected]> writes: > >> This patch is the result from experimenting with evl networking. I use it to do basic >> connection tests from the out of band network and check the timing. >> >> It is a bit complex due to evl doesn't support IPPROTO_ICMP sockets. >> >> Using the in-band network stack, you can use: sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); >> and then only send the icmp part of the message. However, such a support is not really needed, >> it works fine without. >> > > This said, we have an ICMP protocol module in the evl stack since > recently, which only responds to ICMP_ECHO requests ATM, directly from > kernel space. Extending IPPROTO_ICMP by implementing the oob_sendmsg() > handler for it there has become an option. > That would make the ping tool way simpler. I can also wait until this is available and create a new patch. It's mostly done just to figure out that IPPROTO_ICMP is not available.