/*
- * $Id: neighbors.cc,v 1.202 1998/05/05 05:35:39 wessels Exp $
+ * $Id: neighbors.cc,v 1.203 1998/05/05 16:11:30 wessels Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
ap->sin_port = htons(p->icp_port);
if (p->type == PEER_MULTICAST)
peerCountMcastPeersSchedule(p, 10);
-#if USE_PEER_NETDB
eventAddIsh("netdbExchangeStart", netdbExchangeStart, p, 30);
-#endif
}
static void
/*
- * $Id: net_db.cc,v 1.85 1998/05/05 05:35:40 wessels Exp $
+ * $Id: net_db.cc,v 1.86 1998/05/05 16:11:31 wessels Exp $
*
* DEBUG: section 37 Network Measurement Database
* AUTHOR: Duane Wessels
rec_sz += 1 + sizeof(addr.s_addr);
rec_sz += 1 + sizeof(int);
rec_sz += 1 + sizeof(int);
- ex->seen += size;
+ ex->seen = ex->used + size;
debug(0, 0) ("netdbExchangeHandleReply: %d bytes\n", (int) size);
if (!cbdataValid(ex->p)) {
netdbExchangeDone(ex);
netdbExchangeDone(ex);
return;
}
- assert(size > hdr_sz);
+ assert(size >= hdr_sz);
ex->used += hdr_sz;
size -= hdr_sz;
p += hdr_sz;
size = 0;
}
}
- while (size > rec_sz) {
+ while (size >= rec_sz) {
addr.s_addr = 0;
hops = rtt = 0.0;
for (o = 0; o < rec_sz;) {