I can understand the output of
strace route -n, but does
route really read any of the files in
/proc to get the routing table? Also, if the routes and IP addresses are stored under
/proc, why doesn't
strace show those files being accessed?
root@xxxx:/etc/postfix# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.21.58.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0 0.0.0.0 10.21.58.1 0.0.0.0 UG 100 0 0 eth0
Edit, after more research:
It seems that
route does read a file under
/proc/net/route. How, then, did the routing information get there?