[master] 3ea061c99 Teach ACLs their name
Poul-Henning Kamp
phk at FreeBSD.org
Mon Jun 3 13:01:09 UTC 2019
commit 3ea061c9955d5a9875eb2686090689ed86820878
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jun 3 13:00:14 2019 +0000
Teach ACLs their name
diff --git a/include/vcc_interface.h b/include/vcc_interface.h
index 10df9d49a..682767265 100644
--- a/include/vcc_interface.h
+++ b/include/vcc_interface.h
@@ -61,5 +61,6 @@ struct vrt_acl {
unsigned magic;
#define VRT_ACL_MAGIC 0x78329d96
acl_match_f *match;
+ const char *name;
};
diff --git a/lib/libvcc/vcc_acl.c b/lib/libvcc/vcc_acl.c
index 43a5b43a1..023a73d52 100644
--- a/lib/libvcc/vcc_acl.c
+++ b/lib/libvcc/vcc_acl.c
@@ -454,6 +454,7 @@ vcc_acl_emit(struct vcc *tl, const char *name, const char *rname, int anon)
Fh(tl, 0, "\nconst struct vrt_acl %s[] = {{\n", rname);
Fh(tl, 0, "\t.magic = VRT_ACL_MAGIC,\n");
Fh(tl, 0, "\t.match = &%s,\n", VSB_data(func));
+ Fh(tl, 0, "\t.name = \"%s\",\n", name);
Fh(tl, 0, "}};\n\n");
}
VSB_destroy(&func);
More information about the varnish-commit
mailing list