14 Sep
2003
14 Sep
'03
7:20 p.m.
Hello!
I cannot agree. The bit ordering in structures _depends_ on the endianity. Please look into /usr/include/netinet/ip.h for examples. This structure is in the network's endianity. (The same problem is also with "struct immsb".)
Sorry, I completely overlooked that these are bit fields, not just ordinary structure members. For bit fields the suggested approach is really the best one I know. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth To avoid bugs in your room, just keep Windows closed.