ipsec.conf can't include more then 20 files
When I have large number of includes ipsec daemon won't startup. It errors out with:
max inclusion depth reached 
Below patch increases the limit to larger number:
*** strongswan-5.1.0/src/starter/lexer.c.orig 2013-09-03 08:22:07.497059596 -0700 --- strongswan-5.1.0/src/starter/lexer.c 2013-09-03 08:20:42.644574870 -0700 *************** *** 513,519 **** #include "parser.h" ! #define MAX_INCLUDE_DEPTH 20 extern void yyerror(const char *); extern int yylex(void); --- 513,519 ---- #include "parser.h" ! #define MAX_INCLUDE_DEPTH 4096 extern void yyerror(const char *); extern int yylex(void);
Merge branch 'ipsec.conf-parser'
Replaces the ipsec.conf parser in starter. The new parser is also based
on flex/bison but it simply returns key/value collections of all sections.
It already resolves also= and allows overriding options in all included
sections (not only %default), options set in included section can also
be cleared again (key=). It provides other improvements too, like quoted
strings (with escape sequences), unlimited includes and better
#1 Updated by Joe Crayne almost 8 years ago
The issue is related to file globs. Entering a file from an expanded glob shouldn't be considered as entering a nested include.
I've done work to resolve this issue.
A side effect of the attached patch is that you can now include multiple space-delimited files with a single directive.