task-manager: Add retransmit count to retransmit send alert
Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
committed by
Tobias Brunner
parent
2eb89ee1e3
commit
9da65eaeb9
@@ -101,8 +101,9 @@ enum alert_t {
|
|||||||
/** received IKE message with invalid body, argument is message_t*,
|
/** received IKE message with invalid body, argument is message_t*,
|
||||||
* followed by a status_t result returned by message_t.parse_body(). */
|
* followed by a status_t result returned by message_t.parse_body(). */
|
||||||
ALERT_PARSE_ERROR_BODY,
|
ALERT_PARSE_ERROR_BODY,
|
||||||
/** sending a retransmit for a message, argument is packet_t, if the message
|
/** sending a retransmit for a message, arguments are packet_t and number
|
||||||
* got fragmented only the first fragment is passed */
|
* of the retransmit, if the message got fragmented only the first fragment
|
||||||
|
* is passed */
|
||||||
ALERT_RETRANSMIT_SEND,
|
ALERT_RETRANSMIT_SEND,
|
||||||
/** sending retransmits timed out, argument is packet_t, if available and if
|
/** sending retransmits timed out, argument is packet_t, if available and if
|
||||||
* the message got fragmented only the first fragment is passed */
|
* the message got fragmented only the first fragment is passed */
|
||||||
|
|||||||
@@ -361,7 +361,8 @@ static status_t retransmit_packet(private_task_manager_t *this, uint32_t seqnr,
|
|||||||
DBG1(DBG_IKE, "sending retransmit %u of %s message ID %u, seq %u",
|
DBG1(DBG_IKE, "sending retransmit %u of %s message ID %u, seq %u",
|
||||||
retransmitted, seqnr < RESPONDING_SEQ ? "request" : "response",
|
retransmitted, seqnr < RESPONDING_SEQ ? "request" : "response",
|
||||||
mid, seqnr < RESPONDING_SEQ ? seqnr : seqnr - RESPONDING_SEQ);
|
mid, seqnr < RESPONDING_SEQ ? seqnr : seqnr - RESPONDING_SEQ);
|
||||||
charon->bus->alert(charon->bus, ALERT_RETRANSMIT_SEND, packet);
|
charon->bus->alert(charon->bus, ALERT_RETRANSMIT_SEND, packet,
|
||||||
|
retransmitted);
|
||||||
}
|
}
|
||||||
send_packets(this, packets);
|
send_packets(this, packets);
|
||||||
lib->scheduler->schedule_job_ms(lib->scheduler, (job_t*)
|
lib->scheduler->schedule_job_ms(lib->scheduler, (job_t*)
|
||||||
|
|||||||
@@ -352,7 +352,8 @@ METHOD(task_manager_t, retransmit, status_t,
|
|||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "retransmit %d of request with message ID %d",
|
DBG1(DBG_IKE, "retransmit %d of request with message ID %d",
|
||||||
this->initiating.retransmitted, message_id);
|
this->initiating.retransmitted, message_id);
|
||||||
charon->bus->alert(charon->bus, ALERT_RETRANSMIT_SEND, packet);
|
charon->bus->alert(charon->bus, ALERT_RETRANSMIT_SEND, packet,
|
||||||
|
this->initiating.retransmitted);
|
||||||
}
|
}
|
||||||
if (!mobike)
|
if (!mobike)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user