diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-10-14 14:30:14 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-10-14 14:30:14 +0200 |
commit | 270bb348e3856bad1eb91e74be01d756949d0aaa (patch) | |
tree | 66ac5838a6b2ab842ee7de80bd1803ffbacdb665 /src/charon/plugins/stroke/stroke_attribute.c | |
parent | 601bc1df20d934030a0acf342f38169e50a799ad (diff) | |
download | strongswan-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.c | 6 |
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; |