[Openswan dev] changes for _updown.in

Tuomo Soini tis at foobar.fi
Thu Aug 25 00:09:45 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patch to simplify _updown script a little.

- --
Tuomo Soini <tis at foobar.fi>
Linux and network services
+358 40 5240030
Foobar Oy <http://foobar.fi/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Foobar - http://enigmail.mozdev.org

iD8DBQFDDNQJTlrZKzwul1ERAgKKAJ9uDzN2bMf1gz5fht/JdyplgV6iTQCdFIWn
8A36mqoY8qONrf6s0Q8CEno=
=QL+G
-----END PGP SIGNATURE-----
-------------- next part --------------
--- openswan-2.4.0rc1/programs/_updown/_updown.in.client	2005-07-27 23:51:50.000000000 +0300
+++ openswan-2.4.0rc1/programs/_updown/_updown.in	2005-08-24 23:05:49.000000000 +0300
@@ -227,8 +227,8 @@
 	then
 	    parms3="$parms3 table '$IPROUTETABLE'"
 	fi
- 	case "$PLUTO_PEER_CLIENT_NET/$PLUTO_PEER_CLIENT_MASK" in
- 	"0.0.0.0/0.0.0.0")
+ 	case "$PLUTO_PEER_CLIENT" in
+ 	"0.0.0.0/0")
 		# opportunistic encryption work around
 		it=
  		;;
@@ -251,8 +251,8 @@
 	it2=
 	iprule="from $PLUTO_MY_CLIENT"
 	iprule2="to $PLUTO_PEER_CLIENT table $IPROUTETABLE $IPRULEARGS"
-	case "$PLUTO_PEER_CLIENT_NET/$PLUTO_PEER_CLIENT_MASK" in
-	"0.0.0.0/0.0.0.0")
+	case "$PLUTO_PEER_CLIENT" in
+	"0.0.0.0/0")
 		# opportunistic encryption work around
 		st=0
 		;;
@@ -345,8 +345,8 @@
 	    parms3="$parms3 src ${PLUTO_MY_SOURCEIP%/*}"
 	fi
 
-	case "$PLUTO_PEER_CLIENT_NET/$PLUTO_PEER_CLIENT_MASK" in
-	"0.0.0.0/0.0.0.0")
+	case "$PLUTO_PEER_CLIENT" in
+	"0.0.0.0/0")
 		# opportunistic encryption work around
 		# need to provide route that eclipses default, without 
 		# replacing it.
@@ -374,8 +374,8 @@
 case "$PLUTO_VERB:$1" in
 prepare-host:*|prepare-client:*)
 	# delete possibly-existing route (preliminary to adding a route)
-	case "$PLUTO_PEER_CLIENT_NET/$PLUTO_PEER_CLIENT_MASK" in
-	"0.0.0.0/0.0.0.0")
+	case "$PLUTO_PEER_CLIENT" in
+	"0.0.0.0/0")
 		# need to provide route that eclipses default, without 
 		# replacing it.
 		parms1="0.0.0.0/1"


More information about the Dev mailing list