Commit 9e07b947 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Add a new VRT_acl_match function to the VMODs ABI

VRT_MINOR_VERSION needs to be incremented for the 4.1 branch.
parent 05d2f561
......@@ -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 *
......
......@@ -251,6 +251,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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment