-typo-doxygen
authorChristian Grothoff <christian@grothoff.org>
Sun, 1 Nov 2015 20:32:17 +0000 (20:32 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 1 Nov 2015 20:32:17 +0000 (20:32 +0000)
src/testbed/testbed_api.c
src/transport/gnunet-service-transport_neighbours.c
src/transport/transport_api.c

index 55c36c18c73005adac9abeeaaf940fa71a82a17c..596b2b59224c618e7a3c61884d86b63bf879b530 100644 (file)
@@ -484,7 +484,7 @@ handle_opsuccess (struct GNUNET_TESTBED_Controller *c,
 
 
 /**
- * Handler for #GNUNET_MESSAGE_TYPE_TESTBED_PEER_CREATE_SUCCESS message from
+ * Handler for #GNUNET_MESSAGE_TYPE_TESTBED_CREATE_PEER_SUCCESS message from
  * controller (testbed service)
  *
  * @param c the controller handle
index 9f4982b67248dc87cdbac6b5977ebaa02cd40a1c..0e53f9b6f1a79d47c725e79616dfb06537f21a93 100644 (file)
@@ -3673,6 +3673,7 @@ GST_neighbours_handle_quota_message (const struct GNUNET_PeerIdentity *peer,
 {
   struct NeighbourMapEntry *n;
   const struct GNUNET_ATS_SessionQuotaMessage *sqm;
+  struct GNUNET_BANDWIDTH_Value32NBO last;
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received QUOTA message from peer `%s'\n",
@@ -3696,10 +3697,13 @@ GST_neighbours_handle_quota_message (const struct GNUNET_PeerIdentity *peer,
     /* gone already */
     return;
   }
-  n->neighbour_receive_quota
-    = GNUNET_BANDWIDTH_value_max (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
-                                  GNUNET_BANDWIDTH_value_init (ntohl (sqm->quota)));
-  send_outbound_quota_to_clients (n);
+  last = GNUNET_BANDWIDTH_value_max (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
+                                     GNUNET_BANDWIDTH_value_init (ntohl (sqm->quota)));
+  if (last.value__ != n->neighbour_receive_quota.value__)
+  {
+    n->neighbour_receive_quota = last;
+    send_outbound_quota_to_clients (n);
+  }
 }
 
 
index 95eeb8788c97f21a0af544da851318a40203a398..29416b03d9df7847df968a83d5c132f1a5dde4c7 100644 (file)
@@ -778,7 +778,7 @@ demultiplexer (void *cls,
       disconnect_and_schedule_reconnect (h);
       break;
     }
-    if (bytes_physical >= bytes_msg)
+    if (bytes_physical > bytes_msg)
     {
       LOG (GNUNET_ERROR_TYPE_DEBUG,
            "Overhead for %u byte message was %u\n",