ping.c

added new  code