-#ident "$Id: acl.cc,v 1.5 1996/04/11 17:27:17 wessels Exp $"
+#ident "$Id: acl.cc,v 1.6 1996/04/11 17:27:55 wessels Exp $"
/*
* DEBUG: Section 28 acl
Tail = &L->next;
}
if (A->acl_list == NULL) {
- debug(28,0,"aclParseAccessLine: Access line contains no ACL's, skipping\n");
- debug(28,0,"aclParseAccessLine: '%s'\n", line_in);
+ debug(28, 0, "aclParseAccessLine: Access line contains no ACL's, skipping\n");
+ debug(28, 0, "aclParseAccessLine: '%s'\n", line_in);
xfree(A);
return;
}
struct in_addr h;
while (data) {
h.s_addr = c.s_addr & data->mask1.s_addr;
- debug(28,1,"aclMatchIp: h = %s\n", inet_ntoa(h));
- debug(28,1,"aclMatchIp: addr1 = %s\n", inet_ntoa(data->addr1));
+ debug(28, 1, "aclMatchIp: h = %s\n", inet_ntoa(h));
+ debug(28, 1, "aclMatchIp: addr1 = %s\n", inet_ntoa(data->addr1));
if (h.s_addr == data->addr1.s_addr) {
- debug(28,1,"aclMatchIp: returning 1\n");
+ debug(28, 1, "aclMatchIp: returning 1\n");
return 1;
}
data = data->next;
}
- debug(28,1,"aclMatchIp: returning 0\n");
+ debug(28, 1, "aclMatchIp: returning 0\n");
return 0;
}
{
debug(28, 1, "aclMatchRegex: looking for '%s'\n", word);
while (data) {
- debug(28, 1, "aclMatchRegex: checking '%s'\n", data->pattern);
+ debug(28, 1, "aclMatchRegex: checking '%s'\n", data->pattern);
if (regexec(&data->regex, word, 0, 0, 0) == 0)
return 1;
data = data->next;
debug(28, 1, "aclMatchAclList: list=%p op=%d\n", list, list->op);
while (list) {
if (aclMatchAcl(list->acl, c, pr, h, po, r) != list->op) {
- debug(28,1,"aclMatchAclList: returning 0\n");
+ debug(28, 1, "aclMatchAclList: returning 0\n");
return 0;
}
list = list->next;
}
- debug(28,1,"aclMatchAclList: returning 1\n");
+ debug(28, 1, "aclMatchAclList: returning 1\n");
return 1;
}