Re: [PATCH 0/1] tidbits: net-ping: add ping tidbit using raw socket

Philippe Gerum <[email protected]> Sun, 05 Jul 2026 17:01:17 +0200
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
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.

-- 
Philippe.