Update ping.c

Part of CAF merge