aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/dhcp/dhcp_plugin.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-10-24 15:40:09 +0200
committerTobias Brunner <tobias@strongswan.org>2014-10-30 12:32:44 +0100
commit9d2a3554e5ca88b190f95a0616ae2fe05bb4062b (patch)
treefd267ce7c764e56a2f7daa5d5636158cf6bb4e49 /src/libcharon/plugins/dhcp/dhcp_plugin.c
parent1201ddcbc5dda4849524f08a0923071d1b15b387 (diff)
downloadstrongswan-9d2a3554e5ca88b190f95a0616ae2fe05bb4062b.tar.bz2
strongswan-9d2a3554e5ca88b190f95a0616ae2fe05bb4062b.tar.xz
mem-pool: Correctly ignore first and last addresses of subnets and adjust size
Previously one more than the first and last address was ignored. And if the base address is not the network ID of the subnet we should not skip it. But we should adjust the size as it does not represent the actual number of IP addresses assignable.
Diffstat (limited to 'src/libcharon/plugins/dhcp/dhcp_plugin.c')
0 files changed, 0 insertions, 0 deletions