Is there any way to customize the icmp echo response a Linux machine sends back when someone pings it? Say I ping my PC at home and I want it to send a few bytes of preset data back, a message in ASCII for example. I know that I can send data to someone through the ping command with the -p option and that it just sends that same data back, so I guess it is possible to somehow customize the data, only how?
I do know C++ so I can program an icmp client if necessary