error-notify: Notify listeners upon IKE retransmit

Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
Thomas Egerer
2016-06-06 14:11:02 +02:00
committed by Tobias Brunner
parent bd71ba0ffb
commit aa6d4a3d54
2 changed files with 6 additions and 0 deletions
@@ -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),
@@ -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,
};
/**