ping.c updated