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
c878d750
Commit
c878d750
authored
Jun 03, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the layout of compiled ACLs to VPI space
parent
f8bc0ea3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
vcc_interface.h
include/vcc_interface.h
+8
-0
vrt.h
include/vrt.h
+0
-8
vmod_debug.c
lib/libvmod_debug/vmod_debug.c
+1
-1
No files found.
include/vcc_interface.h
View file @
c878d750
...
...
@@ -55,3 +55,11 @@ int VPI_Vmod_Init(VRT_CTX, struct vmod **hdl, unsigned nbr, void *ptr, int len,
const
char
*
nm
,
const
char
*
path
,
const
char
*
file_id
,
const
char
*
backup
);
void
VPI_Vmod_Unload
(
VRT_CTX
,
struct
vmod
**
hdl
);
typedef
int
acl_match_f
(
VRT_CTX
,
const
VCL_IP
);
struct
vrt_acl
{
unsigned
magic
;
#define VRT_ACL_MAGIC 0x78329d96
acl_match_f
*
match
;
};
include/vrt.h
View file @
c878d750
...
...
@@ -387,14 +387,6 @@ struct vrt_backend_probe {
* Implementation details of ACLs
*/
typedef
int
acl_match_f
(
VRT_CTX
,
const
VCL_IP
);
struct
vrt_acl
{
unsigned
magic
;
#define VRT_ACL_MAGIC 0x78329d96
acl_match_f
*
match
;
};
void
VRT_acl_log
(
VRT_CTX
,
const
char
*
);
int
VRT_acl_match
(
VRT_CTX
,
VCL_ACL
,
VCL_IP
);
...
...
lib/libvmod_debug/vmod_debug.c
View file @
c878d750
...
...
@@ -513,7 +513,7 @@ xyzzy_match_acl(VRT_CTX, VCL_ACL acl, VCL_IP ip)
{
CHECK_OBJ_ORNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_ORNULL
(
acl
,
VRT_ACL_MAGIC
);
AN
(
acl
);
assert
(
VSA_Sane
(
ip
));
return
(
VRT_acl_match
(
ctx
,
acl
,
ip
));
...
...
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