mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
added --with-routing-table= configure option
This commit is contained in:
parent
98f97433af
commit
4e411c8361
@ -107,6 +107,13 @@ AC_ARG_WITH(
|
||||
)
|
||||
AC_SUBST(LINUX_HEADERS)
|
||||
|
||||
AC_ARG_WITH(
|
||||
[routing-table],
|
||||
AS_HELP_STRING([--with-routing-table=num],[use routing table for IPsec routes (default: 100)]),
|
||||
[AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, $withval) AC_SUBST(IPSEC_ROUTING_TABLE, "$withval")],
|
||||
[AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, 100) AC_SUBST(IPSEC_ROUTING_TABLE, "100")]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(
|
||||
[uid],
|
||||
AS_HELP_STRING([--with-uid=uid],[change user of the daemons to UID after startup (default is 0).]),
|
||||
|
@ -1,3 +1,10 @@
|
||||
dist_ipsec_SCRIPTS = _updown
|
||||
CLEANFILES = _updown
|
||||
dist_man8_MANS = _updown.8
|
||||
EXTRA_DIST = _updown.in
|
||||
|
||||
_updown : _updown.in
|
||||
sed \
|
||||
-e "s:\@IPSEC_ROUTING_TABLE\@:$(IPSEC_ROUTING_TABLE):" \
|
||||
$< > $@
|
||||
chmod +x $@
|
||||
|
2
src/_updown/_updown → src/_updown/_updown.in
Executable file → Normal file
2
src/_updown/_updown → src/_updown/_updown.in
Executable file → Normal file
@ -137,7 +137,7 @@ FAC_PRIO=local0.notice
|
||||
# must be enabled
|
||||
#
|
||||
# special routing table for sourceip routes
|
||||
SOURCEIP_ROUTING_TABLE=100
|
||||
SOURCEIP_ROUTING_TABLE=@IPSEC_ROUTING_TABLE@
|
||||
#
|
||||
# priority of the sourceip routing table
|
||||
SOURCEIP_ROUTING_TABLE_PRIO=100
|
Loading…
x
Reference in New Issue
Block a user