default routing table/prio: 220/220 (as 19530 was invalid)
authorMartin Willi <martin@strongswan.org>
Mon, 27 Aug 2007 14:53:42 +0000 (14:53 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 27 Aug 2007 14:53:42 +0000 (14:53 -0000)
added configure option --with-routing-table-prio=

configure.in
src/_updown/Makefile.am
src/_updown/_updown.in

index 940ae27..b0e3439 100644 (file)
@@ -109,9 +109,16 @@ AC_SUBST(LINUX_HEADERS)
 
 AC_ARG_WITH(
     [routing-table],
-    AS_HELP_STRING([--with-routing-table=num],[use routing table for IPsec routes (default: 19530)]),
+    AS_HELP_STRING([--with-routing-table=num],[use routing table for IPsec routes (default: 220)]),
     [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, $withval) AC_SUBST(IPSEC_ROUTING_TABLE, "$withval")], 
-    [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, 19530) AC_SUBST(IPSEC_ROUTING_TABLE, "19530")]
+    [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, 220) AC_SUBST(IPSEC_ROUTING_TABLE, "220")]
+)
+
+AC_ARG_WITH(
+    [routing-table-prio],
+    AS_HELP_STRING([--with-routing-table-prio=prio],[priority for IPsec routing table (default: 220)]),
+    [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE_PRIO, $withval) AC_SUBST(IPSEC_ROUTING_TABLE_PRIO, "$withval")], 
+    [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE_PRIO, 220) AC_SUBST(IPSEC_ROUTING_TABLE_PRIO, "220")]
 )
 
 AC_ARG_WITH(
index a080990..838fa81 100644 (file)
@@ -6,5 +6,6 @@ EXTRA_DIST = _updown.in
 _updown : _updown.in
        sed \
        -e "s:\@IPSEC_ROUTING_TABLE\@:$(IPSEC_ROUTING_TABLE):" \
+       -e "s:\@IPSEC_ROUTING_TABLE_PRIO\@:$(IPSEC_ROUTING_TABLE_PRIO):" \
        $< > $@
        chmod +x $@
index c35200d..2e9a8f5 100644 (file)
@@ -140,7 +140,7 @@ FAC_PRIO=local0.notice
 SOURCEIP_ROUTING_TABLE=@IPSEC_ROUTING_TABLE@
 #
 # priority of the sourceip routing table
-SOURCEIP_ROUTING_TABLE_PRIO=100
+SOURCEIP_ROUTING_TABLE_PRIO=@IPSEC_ROUTING_TABLE_PRIO@
 
 # check interface version
 case "$PLUTO_VERSION" in