aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-07-27 07:28:13 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-07-27 07:28:13 +0000
commite4071f9273c379d2a034b0e60676a3a9c6e58911 (patch)
treec95410ddc026031ae028935bbabd2bd3d195942b /src/vpn
parent1661f20b186d8b7f220397bac2077d3790d8a378 (diff)
downloadgnunet-e4071f9273c379d2a034b0e60676a3a9c6e58911.tar.gz
gnunet-e4071f9273c379d2a034b0e60676a3a9c6e58911.zip
debug vpn
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-daemon-vpn-helper.c19
-rw-r--r--src/vpn/gnunet-daemon-vpn.c17
2 files changed, 36 insertions, 0 deletions
diff --git a/src/vpn/gnunet-daemon-vpn-helper.c b/src/vpn/gnunet-daemon-vpn-helper.c
index 9dbd2ade7..75a6b2bad 100644
--- a/src/vpn/gnunet-daemon-vpn-helper.c
+++ b/src/vpn/gnunet-daemon-vpn-helper.c
@@ -364,6 +364,25 @@ message_token (void *cls __attribute__((unused)),
364 } 364 }
365 } 365 }
366 } 366 }
367 else
368 {
369 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Packet to %02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x, which has no mapping\n", pkt6->ip6_hdr.dadr[0],
370 pkt6->ip6_hdr.dadr[1],
371 pkt6->ip6_hdr.dadr[2],
372 pkt6->ip6_hdr.dadr[3],
373 pkt6->ip6_hdr.dadr[4],
374 pkt6->ip6_hdr.dadr[5],
375 pkt6->ip6_hdr.dadr[6],
376 pkt6->ip6_hdr.dadr[7],
377 pkt6->ip6_hdr.dadr[8],
378 pkt6->ip6_hdr.dadr[9],
379 pkt6->ip6_hdr.dadr[10],
380 pkt6->ip6_hdr.dadr[11],
381 pkt6->ip6_hdr.dadr[12],
382 pkt6->ip6_hdr.dadr[13],
383 pkt6->ip6_hdr.dadr[14],
384 pkt6->ip6_hdr.dadr[15]);
385 }
367 break; 386 break;
368 case 0x3a: 387 case 0x3a:
369 /* ICMPv6 */ 388 /* ICMPv6 */
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c
index cef876b52..9ff43cd7f 100644
--- a/src/vpn/gnunet-daemon-vpn.c
+++ b/src/vpn/gnunet-daemon-vpn.c
@@ -421,6 +421,23 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) {
421 421
422 unsigned char* c = ((unsigned char*)pkt)+ntohs(pkt->addroffset); 422 unsigned char* c = ((unsigned char*)pkt)+ntohs(pkt->addroffset);
423 new_ip6addr_remote(c, pkt->addr, pkt->addrsize); 423 new_ip6addr_remote(c, pkt->addr, pkt->addrsize);
424 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "New mapping to %02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x\n",
425 c[0],
426 c[1],
427 c[2],
428 c[3],
429 c[4],
430 c[5],
431 c[6],
432 c[7],
433 c[8],
434 c[9],
435 c[10],
436 c[11],
437 c[12],
438 c[13],
439 c[14],
440 c[15]);
424 unsigned char* k = (unsigned char*)&key; 441 unsigned char* k = (unsigned char*)&key;
425 /* 442 /*
426 * Copy the newly generated ip-address to the key backwards (as only the first part is used in the hash-table) 443 * Copy the newly generated ip-address to the key backwards (as only the first part is used in the hash-table)