[Openswan dev] Re: Openswan 2.4.0dr9 multiple defaultroute patch

Paul Wouters paul at xelerance.com
Mon Aug 15 22:30:34 CEST 2005


On Mon, 15 Aug 2005, mcr at xelerance.com wrote:

>  How about, instead:
>
> defaultinterface() {
> 	phys=`netstat -nr |
> 		awk '$1 == "0.0.0.0" && $3 == "0.0.0.0" { print $NF; exit }'`

Can we use the 'ip' command instead? Officially, netstat is obsoleted on Linux.

Paul


More information about the Dev mailing list