如何用C语言获取服务器的路由表信息
如题,
加入我有一台服务器有5个网口:
eth1:192.168.201.2/24
eth2:192.168.202.2/24
eth3:192.168.203.2/24
eth4:192.168.204.2/24
eth5:192.168.205.2/24
route:
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.201.1 eth1
192.168.201.0 eth1
192.168.202.0 eth2
192.168.203.0 eth3
....
我可以使用什么接口来获取这个路由表信息呢?
或者有什么其他办法吗?