diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-12-21 17:49:45 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-12-24 12:29:30 +0100 |
commit | c849305ad7027ae9f04f1996195a8e7f204de2b6 (patch) | |
tree | ba93414d9602e8bcbadb399493d5f3141bbca0cc /src/libcharon/network/sender.c | |
parent | 07df944c9c21539f686831fd27585caa12effe02 (diff) | |
download | strongswan-c849305ad7027ae9f04f1996195a8e7f204de2b6.tar.bz2 strongswan-c849305ad7027ae9f04f1996195a8e7f204de2b6.tar.xz |
Log message size for in- and outbound IKE messages
Diffstat (limited to 'src/libcharon/network/sender.c')
-rw-r--r-- | src/libcharon/network/sender.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcharon/network/sender.c b/src/libcharon/network/sender.c index 059f24b39..dd8efc1ec 100644 --- a/src/libcharon/network/sender.c +++ b/src/libcharon/network/sender.c @@ -94,10 +94,11 @@ METHOD(sender_t, send_, void, { host_t *src, *dst; - /* if neither source nor destination port is 500 we add a Non-ESP marker */ src = packet->get_source(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) { @@ -120,6 +121,7 @@ METHOD(sender_t, send_, void, 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 && src->get_port(src) != IKEV2_UDP_PORT) { |