[bittorrent] Encryption, Azureus Extended Messaging and reserved bits...

Jari Sundell sundell.software at gmail.com
Tue Sep 12 22:11:52 EDT 2006


On 9/13/06, David P. Mott <dpmott at sep.com> wrote:
> Finally, this would be *the* place to reiterate (from section 10.4
> "Handshake") that:
>
> "An email from Bram suggests that trailing bits should be used first, so
> that leading bits may be used to change the meaning of trailing bits."
>
> Ummm... along with an appropriate translation of "leading" and "trailing"
> into LSB and MSB.  I'll take a wild guess here and say that LSB (bits)
> should be used first... although I'm noticing that the mainline client is
> already using bits 61 and 64.
>
> WTF?

The source of confusion lies in your understanding of endianness, it
seems. Leading bits would be those first in the handshake, but I'm
guessing you swapped MSB and LSB as the leading bits are the Most
Significant in big endian.

So Bram is doing exactly what he suggested.

Rakshasa



More information about the BitTorrent mailing list