[master] 7821d6447 For VCL_acl, log the ACL entry's netmask
Nils Goroll
nils.goroll at uplex.de
Thu Mar 25 17:21:04 UTC 2021
commit 7821d6447b888be645235e2dce7875257df69af3
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Fri Dec 13 18:10:21 2019 +0100
For VCL_acl, log the ACL entry's netmask
As of now, this makes no difference to the vcc-generated code.
diff --git a/lib/libvcc/vcc_acl.c b/lib/libvcc/vcc_acl.c
index 46d6d2769..e03928ba0 100644
--- a/lib/libvcc/vcc_acl.c
+++ b/lib/libvcc/vcc_acl.c
@@ -416,6 +416,8 @@ vcc_acl_emit_tokens(const struct vcc *tl, const struct acl_e *ae)
Fh(tl, 0, "%s\"\\\"\" ", sep);
EncToken(tl->fh, t);
Fh(tl, 0, " \"\\\"\"");
+ } else if (t == ae->t_mask) {
+ Fh(tl, 0, " \"%u\"", ae->mask - 8);
} else {
Fh(tl, 0, "%s\"%.*s\"", sep, PF(t));
}
More information about the varnish-commit
mailing list