Fixed an embarrassing bug if we want to generate a netmask from a prefix == 0.
authorBernd Petrovitsch <bernd@firmix.at>
Sun, 30 Nov 2008 22:50:56 +0000 (23:50 +0100)
committerBernd Petrovitsch <bernd@firmix.at>
Sun, 30 Nov 2008 22:50:56 +0000 (23:50 +0100)
commit6d4d5dc4eec2f904b75831c5e5b53bd25801692e
treeae11c5cc58b4018bfb7046eab83a00a0c2e33e22
parente93396de5281779d72d7a9692838420ac2ee60a7
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