Log message size for in- and outbound IKE messages
This commit is contained in:
@@ -94,10 +94,11 @@ METHOD(sender_t, send_, void,
|
|||||||
{
|
{
|
||||||
host_t *src, *dst;
|
host_t *src, *dst;
|
||||||
|
|
||||||
/* if neither source nor destination port is 500 we add a Non-ESP marker */
|
|
||||||
src = packet->get_source(packet);
|
src = packet->get_source(packet);
|
||||||
dst = packet->get_destination(packet);
|
dst = packet->get_destination(packet);
|
||||||
DBG1(DBG_NET, "sending packet: from %#H to %#H", src, dst);
|
|
||||||
|
DBG1(DBG_NET, "sending packet: from %#H to %#H (%zu bytes)", src, dst,
|
||||||
|
packet->get_data(packet).len);
|
||||||
|
|
||||||
if (this->send_delay)
|
if (this->send_delay)
|
||||||
{
|
{
|
||||||
@@ -120,6 +121,7 @@ METHOD(sender_t, send_, void,
|
|||||||
message->destroy(message);
|
message->destroy(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if neither source nor destination port is 500 we add a Non-ESP marker */
|
||||||
if (dst->get_port(dst) != IKEV2_UDP_PORT &&
|
if (dst->get_port(dst) != IKEV2_UDP_PORT &&
|
||||||
src->get_port(src) != IKEV2_UDP_PORT)
|
src->get_port(src) != IKEV2_UDP_PORT)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -67,9 +67,10 @@ METHOD(job_t, execute, job_requeue_t,
|
|||||||
this->message);
|
this->message);
|
||||||
if (ike_sa)
|
if (ike_sa)
|
||||||
{
|
{
|
||||||
DBG1(DBG_NET, "received packet: from %#H to %#H",
|
DBG1(DBG_NET, "received packet: from %#H to %#H (%zu bytes)",
|
||||||
this->message->get_source(this->message),
|
this->message->get_source(this->message),
|
||||||
this->message->get_destination(this->message));
|
this->message->get_destination(this->message),
|
||||||
|
this->message->get_packet_data(this->message).len);
|
||||||
if (ike_sa->process_message(ike_sa, this->message) == DESTROY_ME)
|
if (ike_sa->process_message(ike_sa, this->message) == DESTROY_ME)
|
||||||
{
|
{
|
||||||
charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager,
|
charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager,
|
||||||
|
|||||||
Reference in New Issue
Block a user