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
c7131478
Commit
c7131478
authored
Feb 23, 2016
by
Dridi Boukelmoune
Committed by
Lasse Karstensen
Feb 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a new VRT_acl_match function to the VMODs ABI
VRT_MINOR_VERSION needs to be incremented for the 4.1 branch.
parent
3c11cfd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
cache_vrt.c
bin/varnishd/cache/cache_vrt.c
+11
-0
vrt.h
include/vrt.h
+1
-0
No files found.
bin/varnishd/cache/cache_vrt.c
View file @
c7131478
...
...
@@ -39,6 +39,7 @@
#include "vcl.h"
#include "vrt.h"
#include "vrt_obj.h"
#include "vsa.h"
#include "vtcp.h"
#include "vtim.h"
...
...
@@ -74,6 +75,16 @@ VRT_acl_log(VRT_CTX, const char *msg)
VSL
(
SLT_VCL_acl
,
0
,
"%s"
,
msg
);
}
int
VRT_acl_match
(
VRT_CTX
,
VCL_ACL
acl
,
VCL_IP
ip
)
{
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
acl
,
VRT_ACL_MAGIC
);
assert
(
VSA_Sane
(
ip
));
return
(
acl
->
match
(
ctx
,
ip
));
}
/*--------------------------------------------------------------------*/
struct
http
*
...
...
include/vrt.h
View file @
c7131478
...
...
@@ -248,6 +248,7 @@ struct vrt_acl {
};
void
VRT_acl_log
(
VRT_CTX
,
const
char
*
msg
);
int
VRT_acl_match
(
VRT_CTX
,
VCL_ACL
,
VCL_IP
);
/* req related */
...
...
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