Fixed an embarrassing bug if we want to generate a netmask from a prefix == 0.
authorBernd Petrovitsch <bernd@firmix.at>
Mon, 1 Dec 2008 19:24:51 +0000 (20:24 +0100)
committerBernd Petrovitsch <bernd@firmix.at>
Mon, 1 Dec 2008 19:24:51 +0000 (20:24 +0100)
commit8319f568cd46e51b57fac8ede4308ac943a4b874
tree90a9c65742104ae43c7223e003381ceef4f8dc9a
parent70de4d5a708195462cfe778e89a73ae10ae34b4b
Fixed an embarrassing bug if we want to generate a netmask from a prefix == 0.
Added an inline function to avoid someone else making the same mistake

All credits belong to Markus Kittenberger <Markus.Kittenberger@gmx.at> for finding,
reporting and hunting it down to the root cause.
lib/quagga/test/quagga.try1.c
src/ipcalc.c
src/ipcalc.h