modify Ping.cpp