Hello Johnny,
The ping function is included as part of the networking utilities included on the Yocto BSPs from Open Embedded.
You can find more information for this package if you look at the fping recipe inside Yocto. Inside the recipe you can find the repository for this package’s source code.
I hope this helps!
Regards,