summaryrefslogtreecommitdiff
path: root/src/ippool.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-27/+27
2013-06-12ippool: Clear allocated block pointer at cleanupJukka Rissanen1-0/+1
Without this the unit tests might core dump as the allocated_block pointer would point to already freed memory.
2013-06-12ippool: Private address check was incorrectJukka Rissanen1-13/+5
Fixes BMC#25993
2012-06-20ippool: Fix endless loop issue with 32 prefix lengthGuillaume Zajac1-1/+5
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.
2012-02-28ippool: Fix NULL pointer accessMario Domenech Goulart1-1/+1
Not all allocated blocks info data structure have a pool associated.
2012-02-28ippool: Fix typo in error messageMario Domenech Goulart1-1/+1
2012-02-24ippool: Add error and warning messagesDaniel Wagner1-2/+6
2012-02-13ippool: Fix collision detection altorithmDaniel Wagner1-63/+169
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).
2012-02-13ippool: Fix 16 bit block iteratorDaniel Wagner1-3/+2
2012-02-13ippool: Add prefixlen argument to __connman_ippool_new/deladdr()Daniel Wagner1-2/+4
2012-02-01ippool: Add API to notify when IP is externally assignedDaniel Wagner1-3/+75
2012-02-01ippool: Add IP pool layerDaniel Wagner1-0/+289
This is based on Guillaume Zajac intial IP pool patches.