I tried to do my homework on this. I located the source for "ping" in C several years ago, reviewed it, and did not think it was possible without having low-level socket API access. I have now refreshed my fading memory. (I guess that ping timed out) ;-)