error-notify: Notify listeners upon IKE retransmit
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
This commit is contained in:
committed by
Tobias Brunner
parent
bd71ba0ffb
commit
aa6d4a3d54
@@ -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,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user