diff options
author | Thomas Egerer <thomas.egerer@secunet.com> | 2016-02-16 12:58:20 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-06-06 14:11:02 +0200 |
commit | aa6d4a3d54698ec875fa477eb366bc3bd5e7335b (patch) | |
tree | e1fc805ba8075c29edf230605b3878ecad5752fd /src | |
parent | bd71ba0ffb03dc19f6a24e08dd8ad94eeffd9fab (diff) | |
download | strongswan-aa6d4a3d54698ec875fa477eb366bc3bd5e7335b.tar.bz2 strongswan-aa6d4a3d54698ec875fa477eb366bc3bd5e7335b.tar.xz |
error-notify: Notify listeners upon IKE retransmit
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/plugins/error_notify/error_notify_listener.c | 5 | ||||
-rw-r--r-- | src/libcharon/plugins/error_notify/error_notify_msg.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/libcharon/plugins/error_notify/error_notify_listener.c b/src/libcharon/plugins/error_notify/error_notify_listener.c index ce577c62c..be84ec05b 100644 --- a/src/libcharon/plugins/error_notify/error_notify_listener.c +++ b/src/libcharon/plugins/error_notify/error_notify_listener.c @@ -83,6 +83,11 @@ METHOD(listener_t, alert, bool, snprintf(msg.str, sizeof(msg.str), "parsing IKE message from " "%#H failed", message->get_source(message)); break; + case ALERT_RETRANSMIT_SEND: + msg.type = htonl(ERROR_NOTIFY_RETRANSMIT_SEND); + snprintf(msg.str, sizeof(msg.str), "IKE message retransmission " + "number %u", va_arg(args, u_int)); + break; case ALERT_RETRANSMIT_SEND_TIMEOUT: msg.type = htonl(ERROR_NOTIFY_RETRANSMIT_SEND_TIMEOUT); snprintf(msg.str, sizeof(msg.str), diff --git a/src/libcharon/plugins/error_notify/error_notify_msg.h b/src/libcharon/plugins/error_notify/error_notify_msg.h index c66080276..74b590800 100644 --- a/src/libcharon/plugins/error_notify/error_notify_msg.h +++ b/src/libcharon/plugins/error_notify/error_notify_msg.h @@ -48,6 +48,7 @@ enum { ERROR_NOTIFY_CERT_EXPIRED = 17, ERROR_NOTIFY_CERT_REVOKED = 18, ERROR_NOTIFY_NO_ISSUER_CERT = 19, + ERROR_NOTIFY_RETRANSMIT_SEND = 20, }; /** |