diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-11-16 17:28:06 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-03-20 17:30:41 +0100 |
commit | f7a8fcedc0305dfca7d82adba03c88401240d039 (patch) | |
tree | e00296ac8545abdda0a6a58662711d365fbd07ff /src/libcharon/plugins/load_tester | |
parent | 3238faf8e6a91f554a76a376bacbc333c3530925 (diff) | |
download | strongswan-f7a8fcedc0305dfca7d82adba03c88401240d039.tar.bz2 strongswan-f7a8fcedc0305dfca7d82adba03c88401240d039.tar.xz |
Use enum to define IKE version on peer_cfg_t.
Replaced all those magic numbers.
Diffstat (limited to 'src/libcharon/plugins/load_tester')
-rw-r--r-- | src/libcharon/plugins/load_tester/load_tester_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/load_tester/load_tester_config.c b/src/libcharon/plugins/load_tester/load_tester_config.c index 6bc6f91e4..301c9cc63 100644 --- a/src/libcharon/plugins/load_tester/load_tester_config.c +++ b/src/libcharon/plugins/load_tester/load_tester_config.c @@ -249,7 +249,7 @@ static peer_cfg_t* generate_config(private_load_tester_config_t *this, uint num) "0.0.0.0", IKEV2_UDP_PORT, this->remote, IKEV2_UDP_PORT); } ike_cfg->add_proposal(ike_cfg, this->proposal->clone(this->proposal)); - peer_cfg = peer_cfg_create("load-test", 2, ike_cfg, + peer_cfg = peer_cfg_create("load-test", IKEV2, ike_cfg, CERT_SEND_IF_ASKED, UNIQUE_NO, 1, /* keytries */ this->ike_rekey, 0, /* rekey, reauth */ 0, this->ike_rekey, /* jitter, overtime */ |