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

mcr at xelerance.com mcr at xelerance.com
Mon Aug 15 12:34:58 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----


>>>>> "Dirk" == Dirk Nehring <dnehring at marcant.net> writes:
    Dirk> _startklips to compute the default route. Is this necessary
    Dirk> under Linux 2.6? Perhaps this issue should be fixed be 2.4.0
    Dirk> is released.

  if you are running KLIPS on 2.6, you'll need the same thing.
  This calculation will eventually move into pluto. 

  How about, instead:

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


  which just prints the first one.

- -- 
] Michael Richardson          Xelerance Corporation, Ottawa, ON |  firewalls  [
] mcr @ xelerance.com           Now doing IPsec training, see   |net architect[
] http://www.sandelman.ca/mcr/    www.xelerance.com/training/   |device driver[
]                    I'm a dad: http://www.sandelman.ca/lrmr/                 [
  
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys

iQCVAwUBQwC2G4qHRg3pndX9AQHWXAP+PQGxksvGSgC119/E6opbru3oUgVKtk/X
Tc7br72CHXSRJbmOSEXwAJHKcMHBtooymKh4MNsZqdMMpfQi/uOqj61hUqAITxl2
nylvkjtx8wNlzMhspxgJOFV/ugrCmd/TUp8a4gocrGGGYNn2/5SPtSZiX0+JVV3D
8HxmW6A6Gs8=
=uGKM
-----END PGP SIGNATURE-----


More information about the Dev mailing list