For VCL_acl, log the ACL entry's netmask

As of now, this makes no difference to the vcc-generated code.
parent 9a1c431c
...@@ -416,6 +416,8 @@ vcc_acl_emit_tokens(const struct vcc *tl, const struct acl_e *ae) ...@@ -416,6 +416,8 @@ vcc_acl_emit_tokens(const struct vcc *tl, const struct acl_e *ae)
Fh(tl, 0, "%s\"\\\"\" ", sep); Fh(tl, 0, "%s\"\\\"\" ", sep);
EncToken(tl->fh, t); EncToken(tl->fh, t);
Fh(tl, 0, " \"\\\"\""); Fh(tl, 0, " \"\\\"\"");
} else if (t == ae->t_mask) {
Fh(tl, 0, " \"%u\"", ae->mask - 8);
} else { } else {
Fh(tl, 0, "%s\"%.*s\"", sep, PF(t)); Fh(tl, 0, "%s\"%.*s\"", sep, PF(t));
} }
......
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