Lines Matching defs:nodes
72 uint8_t *nodes;
153 tr_ninf( "DHT", "Bootstrapping from %d IPv4 nodes", num );
156 tr_ninf( "DHT", "Bootstrapping from %d IPv6 nodes", num6 );
166 memcpy(&addr.addr.addr4, &cl->nodes[i * 6], 4);
167 memcpy(&port, &cl->nodes[i * 6 + 4], 2);
183 /* Our DHT code is able to take up to 9 nodes in a row without
185 So ping the first 8 nodes quickly, then slow down. */
238 /* We don't want to abuse our bootstrap nodes, so be very
239 slow. The initial wait is to give other nodes a chance
253 if( cl->nodes )
254 tr_free( cl->nodes );
268 uint8_t * nodes = NULL, * nodes6 = NULL;
289 tr_bencDictFindRaw( &benc, "nodes", &raw, &len ) && !(len%6) ) {
290 nodes = tr_memdup( raw, len );
299 if(nodes == NULL)
321 cl->nodes = nodes;
353 /* Since we only save known good nodes, avoid erasing older data if we
354 don't know enough nodes. */
356 tr_ninf( "DHT", "Not saving nodes, DHT not ready" );
366 tr_ninf( "DHT", "Saving %d (%d + %d) nodes", n, num, num6 );
383 tr_bencDictAddRaw( &benc, "nodes", compact, num * 6 );
471 /* Since we don't want to abuse our bootstrap nodes,
572 tr_torinf(tor, "Starting %s DHT announce (%s, %d nodes)",
581 tr_torerr(tor, "%s DHT announce failed (%s, %d nodes): %s",
587 tr_tordbg(tor, "%s DHT not ready (%s, %d nodes)",