Lines Matching refs:id_return
260 unsigned char *id_return,
538 bucket_middle(struct bucket *b, unsigned char *id_return)
547 memcpy(id_return, b->first, 20);
548 id_return[bit / 8] |= (0x80 >> (bit % 8));
554 bucket_random(struct bucket *b, unsigned char *id_return)
562 memcpy(id_return, b->first, 20);
566 memcpy(id_return, b->first, bit / 8);
567 id_return[bit / 8] = b->first[bit / 8] & (0xFF00 >> (bit % 8));
568 id_return[bit / 8] |= random() & 0xFF >> (bit % 8);
570 id_return[i] = random() & 0xFF;
2727 unsigned char *id_return, unsigned char *info_hash_return,
2761 if(id_return) {
2765 memcpy(id_return, p + 7, 20);
2767 memset(id_return, 0, 20);