OSPF endianess fix
Martin Mares
mj at ucw.cz
Sun Sep 14 21:20:29 CEST 2003
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 at 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.
More information about the Bird-users
mailing list