/*
- * $Id: asn.cc,v 1.118 2008/01/07 17:12:28 hno Exp $
+ * $Id: asn.cc,v 1.119 2008/01/10 08:13:43 amosjeffries Exp $
*
* DEBUG: section 53 AS Number handling
* AUTHOR: Duane Wessels, Kostas Anagnostakis
m_ADDR() : len(sizeof(IPAddress)) {};
};
-
/* END of definitions for radix tree entries */
/* Head for ip to asn radix tree */
/*
- * $Id: ipcache.cc,v 1.265 2007/12/14 23:11:47 amosjeffries Exp $
+ * $Id: ipcache.cc,v 1.266 2008/01/10 08:13:43 amosjeffries Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
\param outlen Size of list out
*/
void
-ipcacheMergeIPLists(IPAddress *aaddrs, int alen,
- IPAddress *baddrs, int blen,
+ipcacheMergeIPLists(const IPAddress *aaddrs, const int alen,
+ const IPAddress *baddrs, const int blen,
IPAddress **out, int &outlen )
{
int fc=0, t=0, c=0;
- IPAddress *ip4ptrs[255];
+ IPAddress const *ip4ptrs[255];
#if USE_IPV6
- IPAddress *ip6ptrs[255];
+ IPAddress const *ip6ptrs[255];
#endif
int num_ip4 = 0;
int num_ip6 = 0;
i->addrs.in_addrs = NULL;
ipcacheMergeIPLists(tmpbuf, pcount, addrs->in_addrs, ccount, &(i->addrs.in_addrs), fc);
debugs(14,8, HERE << "in=" << tmpbuf << ", out=" << i->addrs.in_addrs );
- assert(tmpbuf);
+ assert( (pcount>0 ? tmpbuf!=NULL : tmpbuf==NULL) );
safe_free(tmpbuf);
if( pcount > 0) {