Hi,
You can use the file /proc/net/route to read the route table, but remember it is in HEX, and contains multi column, and the entries, not in the right form, you have to read it from right to left for ex.:
192.168.0.0 in this file you will find it : 0000A8C0
Any way, you have to try...
Have fun
