revert ping.c changes