]> git.ipfire.org Git - thirdparty/strongswan.git/commit
mem-pool: Adjust the base address if it's the network ID
authorTobias Brunner <tobias@strongswan.org>
Tue, 28 May 2024 07:41:29 +0000 (09:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 17 Jun 2024 12:55:43 +0000 (14:55 +0200)
commit2b11764b705dd031b76ecb6eeaeb75dc92408af9
treecf1c4485b2fc42b76b6f65bb6887963d13d94808
parent1cbcf198abf0877e15f601e92def3b68cf3f166e
mem-pool: Adjust the base address if it's the network ID

Instead of just adding the offset internally, this way the reported
base address is always the first assignable address (e.g. for
192.168.0.0/24 vs. 192.168.0.1/24).

Closes strongswan/strongswan#2264
src/libcharon/attributes/mem_pool.c
src/libcharon/tests/suites/test_mem_pool.c