gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r10881 - gnunet/src/hostlist


From: gnunet
Subject: [GNUnet-SVN] r10881 - gnunet/src/hostlist
Date: Mon, 12 Apr 2010 17:20:47 +0200

Author: wachs
Date: 2010-04-12 17:20:47 +0200 (Mon, 12 Apr 2010)
New Revision: 10881

Modified:
   gnunet/src/hostlist/hostlist-client.c
Log:


Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c       2010-04-12 12:05:28 UTC (rev 
10880)
+++ gnunet/src/hostlist/hostlist-client.c       2010-04-12 15:20:47 UTC (rev 
10881)
@@ -727,13 +727,15 @@
     struct GNUNET_TIME_Relative latency,
     uint32_t distance)
 {
+  int size = ntohs (message->size);
+  int type = ntohs (message->type);
+  if ( type != GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT)
+    return GNUNET_NO;
 #if DEBUG_HOSTLIST_CLIENT
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                  "Hostlist client recieved advertisement message\n");
+                  "Hostlist client recieved advertisement message, size %u, 
type %u\n",size,type);
 #endif
 
-     /* put code to use message here */
-
      return GNUNET_YES;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]