on_ping_success() function
Re-implement ping_init and ping_deinit with the APIs from ping_sock.h for back-ward compatibility sake. It's highly recommended that users should use the new APIs from ping_sock.h. ToDo: ping.h and esp_ping.h are deprecated now and should be removed in idf v5.x.