ippool: Fix endless loop issue with 32 prefix length
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>
Tue, 19 Jun 2012 13:21:24 +0000 (15:21 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 20 Jun 2012 10:13:21 +0000 (13:13 +0300)
commit697de0a99339a264948fdcb67dc374034178bc04
treec1f945ee534df62de2bde89c6a5c138017aaed5a
parentc80faf72bfdd1f78562504146f16a3b05874dd92
ippool: Fix endless loop issue with 32 prefix length

While trying to establish a DUN connection with oFono,
an endless loop was found when requesting an IP block.
The problem was on data connection activation its address
with 32 length prefix was notified through ConnMann using
__connman_ippool_newaddr() but mask address shifting with
32 bits was obsolete. So IP pool was considerating block
0.0.0.0 to 255.255.255.255 was in use.
src/ippool.c