Pass the full list of pools to acquire_address, enumerate in providers
authorMartin Willi <martin@revosec.ch>
Tue, 11 Sep 2012 08:41:11 +0000 (10:41 +0200)
committerMartin Willi <martin@revosec.ch>
Tue, 11 Sep 2012 14:18:28 +0000 (16:18 +0200)
commit594c58e1118e496eadd284647755b16b74665337
tree743e0f33a01beffab57e363fe1e154944c63dd01
parentdc7b79d8a5c8104001bba4c52a8b3716a0cf6d88
Pass the full list of pools to acquire_address, enumerate in providers

If the provider has access to the full pool list, it can enumerate
them twice, for example to search for existing leases first, and
only search for new leases in a second step.

Fixes lease enumeration in attr-sql using multiple pools.
src/libcharon/plugins/dhcp/dhcp_provider.c
src/libcharon/plugins/ha/ha_attribute.c
src/libcharon/plugins/stroke/stroke_attribute.c
src/libcharon/plugins/unit_tester/tests/test_pool.c
src/libcharon/sa/ikev1/tasks/mode_config.c
src/libcharon/sa/ikev2/tasks/ike_config.c
src/libhydra/attributes/attribute_manager.c
src/libhydra/attributes/attribute_manager.h
src/libhydra/attributes/attribute_provider.h
src/libhydra/plugins/attr_sql/sql_attribute.c