* fixed a bug in the olsr_netmask_to_prefix() function which produced
authorBernd Petrovitsch <bernd@firmix.at>
Wed, 14 Nov 2007 11:01:03 +0000 (11:01 +0000)
committerBernd Petrovitsch <bernd@firmix.at>
Wed, 14 Nov 2007 11:01:03 +0000 (11:01 +0000)
commit2106b56b2221e43435db1783b065cde55909b4b9
treef455dc986e812b061b6067c95a7b48216215eabe
parentc853ff1ce2e6a32cd56143a426b0eabcb9932680
* fixed a bug in the olsr_netmask_to_prefix() function which produced
  invalid netmasks if feeded with 255.255.255.255.
  Thnaks to Hannes Gredler <hannes@gredler.at> for pointing to that
  function.
* replaced the second "(for()" loop with a simple "switch()" for the
  9 legal/valid/supported values of 1 byte netmasks. So we can now detect
  illegal ones and report this with returning UINT_MAX as prefix length
  (and writing something out).
  That really shouldn't happen but God knows what some clowns sends over
  the net to annoy us.
src/net_olsr.c