aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/stroke/stroke_attribute.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-10-14 14:30:14 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-10-14 14:30:14 +0200
commit270bb348e3856bad1eb91e74be01d756949d0aaa (patch)
tree66ac5838a6b2ab842ee7de80bd1803ffbacdb665 /src/charon/plugins/stroke/stroke_attribute.c
parent601bc1df20d934030a0acf342f38169e50a799ad (diff)
downloadstrongswan-270bb348e3856bad1eb91e74be01d756949d0aaa.tar.bz2
strongswan-270bb348e3856bad1eb91e74be01d756949d0aaa.tar.xz
pluto now supports SQL-based virtual IP pools
Diffstat (limited to 'src/charon/plugins/stroke/stroke_attribute.c')
-rw-r--r--src/charon/plugins/stroke/stroke_attribute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/charon/plugins/stroke/stroke_attribute.c b/src/charon/plugins/stroke/stroke_attribute.c
index 14464e0bd..5c24d346b 100644
--- a/src/charon/plugins/stroke/stroke_attribute.c
+++ b/src/charon/plugins/stroke/stroke_attribute.c
@@ -320,7 +320,7 @@ static bool release_address(private_stroke_attribute_t *this,
*/
static void add_pool(private_stroke_attribute_t *this, stroke_msg_t *msg)
{
- if (msg->add_conn.other.sourceip_size)
+ if (msg->add_conn.other.sourceip_mask)
{
pool_t *pool;
@@ -344,7 +344,7 @@ static void add_pool(private_stroke_attribute_t *this, stroke_msg_t *msg)
DBG1(DBG_CFG, "adding virtual IP address pool '%s': %s/%d",
msg->add_conn.name, msg->add_conn.other.sourceip,
- msg->add_conn.other.sourceip_size);
+ msg->add_conn.other.sourceip_mask);
pool->base = host_create_from_string(msg->add_conn.other.sourceip, 0);
if (!pool->base)
@@ -354,7 +354,7 @@ static void add_pool(private_stroke_attribute_t *this, stroke_msg_t *msg)
return;
}
family = pool->base->get_family(pool->base);
- bits = (family == AF_INET ? 32 : 128) - msg->add_conn.other.sourceip_size;
+ bits = (family == AF_INET ? 32 : 128) - msg->add_conn.other.sourceip_mask;
if (bits > POOL_LIMIT)
{
bits = POOL_LIMIT;