core: Move send ping packets functions to ping.c