Ivan's ping.c