aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/attributes/mem_pool.c
Commit message (Collapse)AuthorAgeFilesLines
* libhydra: Use lib->ns instead of hydra->daemonTobias Brunner2014-02-121-1/+1
|
* mem-pool: add option for reusing online leases, and disable it by defaultMartin Willi2013-07-291-1/+13
| | | | | | | | | | | Mainly for reauthentication with third party implementations, we allowed to reuse an online lease, but only for the same peer identity and when it explicitly requested the same address. This has always been problematic, because it changes the reqid of the CHILD_SA with the same traffic selectors, breaking the old tunnel. As we now reject such policy overwrites, this usually lets the installation of the new policies fail. We therefore disable reassignment of online leases by default.
* mem-pool: replace per-identity online/offline lists by more efficient arraysMartin Willi2013-07-291-48/+52
| | | | This saves two lists per connected peer identity, up to 0.4KB.
* mem-pool: refcount online lease when reassigning it to another tunnelMartin Willi2013-07-261-5/+28
| | | | | | | When we reassign an online lease for the same peer, we have to refcount it. Otherwise we would set it offline if one of the tunnels goes down, but it is actually still in use by a the second tunnel. This can finally lead in assigning the same virtual IP to different peers.
* Add a constructor to create in-memory pools from an address rangeMartin Willi2013-03-111-3/+48
|
* Fix maximum size of a mem_pool_tTobias Brunner2013-03-071-2/+2
|
* Moved debug.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* Moved data structures to new collections subfolderTobias Brunner2012-10-241-2/+2
|
* In mem_pool, check for an existing ID entry before creating a new oneMartin Willi2012-09-201-7/+10
|
* Use uintptr_t in mem pool to avoid compiler warning if sizeof(void*) != ↵Martin Willi2012-09-121-3/+2
| | | | sizeof(int)
* Check for an existing lease in all stroke pools before creating a new oneMartin Willi2012-09-111-75/+129
|
* Properly remove broadcast address from mem poolsTobias Brunner2012-09-101-1/+1
|
* Strictly enforce address family match while acquiring mem_pool IPsMartin Willi2012-08-301-3/+1
|
* Add a getter for the mem_pool_t base addressMartin Willi2012-08-241-0/+7
|
* Validate netmask in mem_pool_createTobias Brunner2012-08-131-0/+1
|
* Reimplemented mem pool to support multiple leases for a single identityMartin Willi2010-08-041-129/+172
|
* Mem pool does not support multiple leases for an identityMartin Willi2010-07-271-2/+11
|
* Replaced some DBG_LIB with more specific groups.Tobias Brunner2010-04-061-8/+8
|
* Adding DBG_LIB to all calls of libstrongswan's version of DBG*.Tobias Brunner2010-04-061-9/+10
|
* Make in-memory pool thread-safe.Tobias Brunner2010-04-061-15/+36
|
* Extracted in-memory IP address pool from stroke plugin to libhydra.Tobias Brunner2010-04-061-0/+429