Here is a patch for getting the gateway using the command 'ip route show' on linux, when 'route -n' fails.
The reason for this patch is that on my system, route is not installed by default, but 'ip' is. 'ip' seems to be the new standard tool for managing the network, so I think it would nice to include it.
Here is a patch for getting the gateway using the command 'ip route show' on linux, when 'route -n' fails.
The reason for this patch is that on my system, route is not installed by default, but 'ip' is. 'ip' seems to be the new standard tool for managing the network, so I think it would nice to include it.