[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13163 - gnunet/src/vpn
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13163 - gnunet/src/vpn |
Date: |
Tue, 5 Oct 2010 20:20:16 +0200 |
Author: toelke
Date: 2010-10-05 20:20:16 +0200 (Tue, 05 Oct 2010)
New Revision: 13163
Modified:
gnunet/src/vpn/gnunet-vpn-pretty-print.c
Log:
add clarifying comment to a magic number
Modified: gnunet/src/vpn/gnunet-vpn-pretty-print.c
===================================================================
--- gnunet/src/vpn/gnunet-vpn-pretty-print.c 2010-10-05 18:20:15 UTC (rev
13162)
+++ gnunet/src/vpn/gnunet-vpn-pretty-print.c 2010-10-05 18:20:16 UTC (rev
13163)
@@ -265,7 +265,7 @@
while (len != 0) {
if (len & 0xC0) { /* Compressed name, offset in this and the
next octet */
unsigned short offset = ((len & 0x3F) << 8) |
src[idx++];
- parse_dns_name(dest, src, offset - 12);
+ 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 */
return idx;
}
memcpy(dest, src+idx, len);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13163 - gnunet/src/vpn,
gnunet <=