On Son, 2008-11-30 at 22:42 +0100, Bernd Petrovitsch wrote: [...] > I think I will make a sane inline function for this in src/ipcalc.h and > use that everywhere. see http://gredler.at/hg/olsrd/rev/15bb00f25929 The commit message should sday it all: ---- snip ---- 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 for finding, reporting and hunting it down to the root cause. ---- snip ---- Ok, the English could be better.... Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services