Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
2b623eaf
Commit
2b623eaf
authored
Apr 28, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a parameter to disable inline-C code in VCL
parent
0b008770
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
mgt.h
bin/varnishd/mgt/mgt.h
+1
-0
mgt_param.c
bin/varnishd/mgt/mgt_param.c
+6
-0
mgt_vcc.c
bin/varnishd/mgt/mgt_vcc.c
+2
-0
No files found.
bin/varnishd/mgt/mgt.h
View file @
2b623eaf
...
@@ -105,6 +105,7 @@ extern char *mgt_cc_cmd;
...
@@ -105,6 +105,7 @@ extern char *mgt_cc_cmd;
extern
const
char
*
mgt_vcl_dir
;
extern
const
char
*
mgt_vcl_dir
;
extern
const
char
*
mgt_vmod_dir
;
extern
const
char
*
mgt_vmod_dir
;
extern
unsigned
mgt_vcc_err_unref
;
extern
unsigned
mgt_vcc_err_unref
;
extern
unsigned
mgt_vcc_allow_inline_c
;
#define REPORT0(pri, fmt) \
#define REPORT0(pri, fmt) \
do { \
do { \
...
...
bin/varnishd/mgt/mgt_param.c
View file @
2b623eaf
...
@@ -1177,11 +1177,17 @@ static const struct parspec input_parspec[] = {
...
@@ -1177,11 +1177,17 @@ static const struct parspec input_parspec[] = {
"."
,
"."
,
#endif
#endif
NULL
},
NULL
},
{
"vcc_err_unref"
,
tweak_bool
,
&
mgt_vcc_err_unref
,
0
,
0
,
{
"vcc_err_unref"
,
tweak_bool
,
&
mgt_vcc_err_unref
,
0
,
0
,
"Unreferenced VCL objects result in error.
\n
"
,
"Unreferenced VCL objects result in error.
\n
"
,
0
,
0
,
"on"
,
"bool"
},
"on"
,
"bool"
},
{
"vcc_allow_inline_c"
,
tweak_bool
,
&
mgt_vcc_allow_inline_c
,
0
,
0
,
"Allow inline C code in VCL.
\n
"
,
0
,
"on"
,
"bool"
},
{
"pcre_match_limit"
,
tweak_uint
,
{
"pcre_match_limit"
,
tweak_uint
,
&
mgt_param
.
vre_limits
.
match
,
&
mgt_param
.
vre_limits
.
match
,
...
...
bin/varnishd/mgt/mgt_vcc.c
View file @
2b623eaf
...
@@ -63,6 +63,7 @@ char *mgt_cc_cmd;
...
@@ -63,6 +63,7 @@ char *mgt_cc_cmd;
const
char
*
mgt_vcl_dir
;
const
char
*
mgt_vcl_dir
;
const
char
*
mgt_vmod_dir
;
const
char
*
mgt_vmod_dir
;
unsigned
mgt_vcc_err_unref
;
unsigned
mgt_vcc_err_unref
;
unsigned
mgt_vcc_allow_inline_c
;
static
struct
vcc
*
vcc
;
static
struct
vcc
*
vcc
;
...
@@ -139,6 +140,7 @@ run_vcc(void *priv)
...
@@ -139,6 +140,7 @@ run_vcc(void *priv)
VCC_VCL_dir
(
vcc
,
mgt_vcl_dir
);
VCC_VCL_dir
(
vcc
,
mgt_vcl_dir
);
VCC_VMOD_dir
(
vcc
,
mgt_vmod_dir
);
VCC_VMOD_dir
(
vcc
,
mgt_vmod_dir
);
VCC_Err_Unref
(
vcc
,
mgt_vcc_err_unref
);
VCC_Err_Unref
(
vcc
,
mgt_vcc_err_unref
);
VCC_Allow_InlineC
(
vcc
,
mgt_vcc_allow_inline_c
);
csrc
=
VCC_Compile
(
vcc
,
sb
,
vp
->
vcl
);
csrc
=
VCC_Compile
(
vcc
,
sb
,
vp
->
vcl
);
AZ
(
VSB_finish
(
sb
));
AZ
(
VSB_finish
(
sb
));
if
(
VSB_len
(
sb
))
if
(
VSB_len
(
sb
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment