0

I am using ubuntu server 22.04.1 LTS on raspberry pi 4. I want to know where ip.h file is located inside it. And where would I find the source codes for traceroute and ifconfig on the ubuntu server as well?

Thanks! Divya

div_01
  • 3
  • 1
  • What is this `ip.h` supposed to be? There may or may not be header files installed depending on what packages you have installed. There is a [`/usr/include/netinet/ip.h` provided by `libc6-dev`](https://packages.ubuntu.com/search?searchon=contents&mode=exactfilename&arch=any&suite=focal&keywords=ip.h) – muru Aug 25 '22 at 04:31
  • ip.h contains the source code of the ip header – div_01 Aug 25 '22 at 04:47
  • I was able to locate /usr/include. But there doesn't seem to be the folder netinet – div_01 Aug 25 '22 at 04:51
  • As I said, which header files you have in your system depends on which packages you have installed. So first it's important to clarify *which* `ip.h` you're looking for. There are many: https://packages.ubuntu.com/search?searchon=contents&mode=exactfilename&arch=any&suite=focal&keywords=ip.h – muru Aug 25 '22 at 04:54
  • Okay, that gave me some clarity. Thanks! – div_01 Aug 25 '22 at 05:04

0 Answers0