/*
- * $Id: acl.cc,v 1.128 1998/01/05 21:44:39 wessels Exp $
+ * $Id: acl.cc,v 1.129 1998/01/08 23:41:25 kostas Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
acl->name, r->host);
checklist->state[ACL_DST_ASN] = ACL_LOOKUP_NEEDED;
} else {
- return asnMatchIp(&(acl->data), no_addr);
+ return asnMatchIp(acl->data, no_addr);
}
return 0;
#if USE_ARP_ACL
/*
- * $Id: asn.cc,v 1.11 1998/01/02 22:04:36 wessels Exp $
+ * $Id: asn.cc,v 1.12 1998/01/08 23:41:23 kostas Exp $
*
* DEBUG: section 53 AS Number handling
* AUTHOR: Duane Wessels, Kostas Anagnostakis
lh = ntohl(addr.s_addr);
debug(53, 4) ("asnMatchIp: Called for %s.\n", inet_ntoa(addr));
- if (AS_tree_head == 0 || &addr == &no_addr)
+ if (AS_tree_head == 0 || !memcmp(&addr, &no_addr,sizeof(addr)))
return 0;
store_m_int(lh, m_addr);
rn = rn_match(m_addr, AS_tree_head);