i can understand the strace output of "route -n", but does the command read any of the files in /proc to get the routing table and since routes and ipaddresses are stored in file, why does strace not show those files being accessed?
-krisdigitx
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
after more research:
it does read this file, but how did this information got there???
/proc/net/route