aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2010-10-05 18:20:16 +0000
committerPhilipp Tölke <toelke@in.tum.de>2010-10-05 18:20:16 +0000
commit81f94aa0f1209d5643a1dba9f3ce99b164ce2df5 (patch)
tree6c25945bca31c0cb6042c36e4e188bade8596443 /src
parent43760f01c47b3b76755e3c949b70ab521186f5f9 (diff)
downloadgnunet-81f94aa0f1209d5643a1dba9f3ce99b164ce2df5.tar.gz
gnunet-81f94aa0f1209d5643a1dba9f3ce99b164ce2df5.zip
add clarifying comment to a magic number
Diffstat (limited to 'src')
-rw-r--r--src/vpn/gnunet-vpn-pretty-print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpn/gnunet-vpn-pretty-print.c b/src/vpn/gnunet-vpn-pretty-print.c
index 87c8322ef..01427fe95 100644
--- a/src/vpn/gnunet-vpn-pretty-print.c
+++ b/src/vpn/gnunet-vpn-pretty-print.c
@@ -265,7 +265,7 @@ unsigned int parse_dns_name(unsigned char* d, const unsigned char* src, unsigned
265 while (len != 0) { 265 while (len != 0) {
266 if (len & 0xC0) { /* Compressed name, offset in this and the next octet */ 266 if (len & 0xC0) { /* Compressed name, offset in this and the next octet */
267 unsigned short offset = ((len & 0x3F) << 8) | src[idx++]; 267 unsigned short offset = ((len & 0x3F) << 8) | src[idx++];
268 parse_dns_name(dest, src, offset - 12); 268 parse_dns_name(dest, src, offset - 12); /* 12 for the Header of the DNS-Packet, idx starts at 0 which is 12 bytes from the start of the packet */
269 return idx; 269 return idx;
270 } 270 }
271 memcpy(dest, src+idx, len); 271 memcpy(dest, src+idx, len);