4 ms·
I find it odd that in the header illustration bit 0 is put on the left. It is usually put on the right so that you can construct the bit mask easily. That is th
by chj 12y ago
I find it odd that in the header illustration bit 0 is put on the left. It is usually put on the right so that you can construct the bit mask easily. That is the way we write numbers: most significant digits first on the left, least significant digits on the right. The convention has been used in all bit twiddling literature I have ever read. Being different isn't always a smart thing.
- jgrahamc 12y agoI agree. Unfortunately, this is a DNS server and the DNS RFCs are all like this. See http://www.ietf.org/rfc/rfc1035.txt http://www.ietf.org/rfc/rfc1035.txt Section 2.3.2