diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-02-27 20:30:39 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-02-27 20:30:39 +0000 |
commit | b48bdac20bdd55df297ea575a5bd9c79bdf35f0d (patch) | |
tree | 8f185d5ed03590f9cc2802e8ed0ab502f15d45a8 /src/charon | |
parent | e633b1998fcafdc19d2b0630053af8227d704dfa (diff) | |
download | strongswan-b48bdac20bdd55df297ea575a5bd9c79bdf35f0d.tar.bz2 strongswan-b48bdac20bdd55df297ea575a5bd9c79bdf35f0d.tar.xz |
improved P2P_NAT debugging
Diffstat (limited to 'src/charon')
-rw-r--r-- | src/charon/sa/connect_manager.c | 7 | ||||
-rw-r--r-- | src/charon/sa/tasks/ike_p2p.c | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/charon/sa/connect_manager.c b/src/charon/sa/connect_manager.c index 06755fa9c..f40af4eed 100644 --- a/src/charon/sa/connect_manager.c +++ b/src/charon/sa/connect_manager.c @@ -865,7 +865,7 @@ static status_t process_payloads(message_t *message, check_t *check) break; } check->session_id = chunk_clone(notify->get_notification_data(notify)); - DBG3(DBG_IKE, "received p2p_sessionid %B", &check->session_id); + DBG2(DBG_IKE, "received P2P_SESSIONID %#B", &check->session_id); break; } case COOKIE: @@ -876,7 +876,7 @@ static status_t process_payloads(message_t *message, check_t *check) break; } check->cookie = chunk_clone(notify->get_notification_data(notify)); - DBG3(DBG_IKE, "received cookie %B", &check->cookie); + DBG2(DBG_IKE, "received COOKIE %#B", &check->cookie); break; } default: @@ -1012,13 +1012,16 @@ static void send_check(private_connect_manager_t *this, check_list_t *checklist, message->set_ike_sa_id(message, ike_sa_id_create(0, 0, request)); message->add_notify(message, FALSE, P2P_SESSIONID, check->session_id); + DBG2(DBG_IKE, "send P2P_SESSIONID %#B", &check->session_id); notify_payload_t *endpoint = check->endpoint->build_notify(check->endpoint); check->endpoint_raw = chunk_clone(endpoint->get_notification_data(endpoint)); message->add_payload(message, (payload_t*)endpoint); + DBG2(DBG_IKE, "send P2P_ENDPOINT notify"); check->cookie = build_signature(this, checklist, check, TRUE); message->add_notify(message, FALSE, COOKIE, check->cookie); + DBG2(DBG_IKE, "send COOKIE %#B", &check->cookie); packet_t *packet; if (message->generate(message, NULL, NULL, &packet) == SUCCESS) diff --git a/src/charon/sa/tasks/ike_p2p.c b/src/charon/sa/tasks/ike_p2p.c index 84b88e16b..6f632733a 100644 --- a/src/charon/sa/tasks/ike_p2p.c +++ b/src/charon/sa/tasks/ike_p2p.c @@ -229,14 +229,14 @@ static void process_payloads(private_ike_p2p_t *this, message_t *message) { chunk_free(&this->session_id); this->session_id = chunk_clone(notify->get_notification_data(notify)); - DBG3(DBG_IKE, "received p2p_sessionid %B", &this->session_id); + DBG2(DBG_IKE, "received P2P_SESSIONID %#B", &this->session_id); break; } case P2P_SESSIONKEY: { chunk_free(&this->session_key); this->session_key = chunk_clone(notify->get_notification_data(notify)); - DBG4(DBG_IKE, "received p2p_sessionkey %B", &this->session_key); + DBG4(DBG_IKE, "received P2P_SESSIONKEY %#B", &this->session_key); break; } case P2P_RESPONSE: |