From: Martin Willi Date: Thu, 1 Feb 2007 15:23:31 +0000 (-0000) Subject: sending proper signal to the bus when detecting a dead peer X-Git-Tag: 4.0.7~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42dcd01ffedd7e6bb5f3e0912abf26af8b335282;p=thirdparty%2Fstrongswan.git sending proper signal to the bus when detecting a dead peer --- diff --git a/src/charon/sa/ike_sa.c b/src/charon/sa/ike_sa.c index 225a9254a3..62f18b5b17 100644 --- a/src/charon/sa/ike_sa.c +++ b/src/charon/sa/ike_sa.c @@ -498,6 +498,23 @@ static void dpd_detected(private_ike_sa_t *this) } child_sa->destroy(child_sa); } + + /* send a proper signal to brief interested bus listeners */ + switch (this->state) + { + case IKE_CONNECTING: + SIG(IKE_UP_FAILED, "establishing IKE_SA failed, peer not responding"); + break; + case IKE_REKEYING: + SIG(IKE_REKEY_FAILED, "rekeying IKE_SA failed, peer not responding"); + break; + case IKE_DELETING: + SIG(IKE_DOWN_FAILED, "proper IKE_SA delete failed, peer not responding"); + break; + default: + break; + } + DESTROY_IF(connection); }