diff options
author | Martin Willi <martin@strongswan.org> | 2008-04-16 05:50:56 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-04-16 05:50:56 +0000 |
commit | 140ed97c0cfe20c93a46177a2e4ba96a6059abed (patch) | |
tree | 80431c8fcad197a116d88db7340cc87f8b49dfda /src | |
parent | 20e32cf86c475cb5a80a8ebecaa1d728437289c4 (diff) | |
download | strongswan-140ed97c0cfe20c93a46177a2e4ba96a6059abed.tar.bz2 strongswan-140ed97c0cfe20c93a46177a2e4ba96a6059abed.tar.xz |
disable DPD if dpddelay is set but dpdaction=none
Diffstat (limited to 'src')
-rw-r--r-- | src/charon/plugins/stroke/stroke_config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/charon/plugins/stroke/stroke_config.c b/src/charon/plugins/stroke/stroke_config.c index 5c2cb556e..11278b578 100644 --- a/src/charon/plugins/stroke/stroke_config.c +++ b/src/charon/plugins/stroke/stroke_config.c @@ -497,6 +497,11 @@ static peer_cfg_t *build_peer_cfg(private_stroke_config_t *this, unique = UNIQUE_NO; break; } + if (msg->add_conn.dpd.action == 0) + { /* dpdaction=none disables DPD */ + msg->add_conn.dpd.delay = 0; + } + /* other.sourceip is managed in stroke_attributes. If it is set, we define * the pool name as the connection name, which the attribute provider * uses to serve pool addresses. */ |