I am somewhat new to kernel programming but am trying to modify the functionality of the ping command in Linux. I am using Ubuntu, which I believe uses iputils to create the binary ping command located in bin on my machine. However, I also found a ping.c file in the net/ipv4 and net/ipv6 folders of the Linux source code. So my main questions are:
What is the ping.c file doing in the net folders? How would one modify the ping command, seeing as it is a part of iputils? More specifically, I have pulled iputils from here, but I don't really know how to compile it/reinstall a custom package after I have modified the source code.
Any help would be much appreciated!