Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Without this the unit tests might core dump as the allocated_block
pointer would point to already freed memory.
|
|
Fixes BMC#25993
|
|
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.
|
|
Not all allocated blocks info data structure have a pool associated.
|
|
|
|
|
|
Track only private address ranges in a list. If the first IP is
assigned for a range check if a pool collides. For this we need
to check all entries in the list if the new IP is the range of an
allocated pool.
This can be made faster with the right data structure and
algorithm (e.g. segment overlap detection algorithms).
|
|
|
|
|
|
|
|
This is based on Guillaume Zajac intial IP pool patches.
|