Feature #423
ipsec.conf can't include more then 20 files
Start date:
27.09.2013
Due date:
Estimated time:
Resolution:
Fixed
Description
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);
History
#1 Updated by Joe Crayne almost 12 years ago
- File strongswan-include.patch strongswan-include.patch added
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.
#2 Updated by Tobias Brunner about 11 years ago
- Tracker changed from Issue to Feature
- Category set to starter
- Status changed from New to Closed
- Assignee set to Tobias Brunner
- Target version set to 5.2.0
- Resolution set to Fixed
Fixed with the associated merge.