remove dead field quota_in
authorChristian Grothoff <christian@grothoff.org>
Thu, 15 Nov 2018 22:26:24 +0000 (23:26 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 15 Nov 2018 22:26:24 +0000 (23:26 +0100)
src/transport/gnunet-service-transport.c
src/transport/gnunet-service-transport_neighbours.c
src/transport/transport.h
src/transport/transport_api_core.c

index 8c4f33fd0db0202bda93873f9101408a54852533..2d98036519d9a8ca9a1f49f0030f0c77b2a3bad9 100644 (file)
@@ -602,7 +602,6 @@ notify_client_about_neighbour (void *cls,
   cim.header.size = htons (sizeof (struct ConnectInfoMessage));
   cim.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT);
   cim.id = *peer;
-  cim.quota_in = bandwidth_in;
   cim.quota_out = bandwidth_out;
   unicast (tc,
           &cim.header,
index 3965bc13ed4404b9ee51696bed9841e05956584d..68344bcf4faf9fdeae19a25934ddae5c62f237ea 100644 (file)
@@ -11,7 +11,7 @@
      WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      Affero General Public License for more details.
-    
+
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -571,7 +571,6 @@ neighbours_connect_notification (struct NeighbourMapEntry *n)
   connect_msg->header.size = htons (sizeof(buf));
   connect_msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT);
   connect_msg->id = n->id;
-  connect_msg->quota_in = n->primary_address.bandwidth_in;
   connect_msg->quota_out = bandwidth_min;
   GST_clients_broadcast (&connect_msg->header,
                          GNUNET_NO);
index c5191a5cea593b320d73f96461798bca4003d1c0..129b1ce15cf6ec27ef51a3d2c8aabfaa9653beb2 100644 (file)
@@ -121,19 +121,14 @@ struct ConnectInfoMessage
   struct GNUNET_MessageHeader header;
 
   /**
-   * Identity of the new neighbour.
-   */
-  struct GNUNET_PeerIdentity id;
-
-  /**
-   * Current inbound quota for this peer
+   * Current outbound quota for this peer
    */
-  struct GNUNET_BANDWIDTH_Value32NBO quota_in;
+  struct GNUNET_BANDWIDTH_Value32NBO quota_out;
 
   /**
-   * Current outbound quota for this peer
+   * Identity of the new neighbour.
    */
-  struct GNUNET_BANDWIDTH_Value32NBO quota_out;
+  struct GNUNET_PeerIdentity id;
 };
 
 
index 5310054fda46caceb84ca77abab66be1140caffd..2e897d94a579e81b0cd4e2b3f8c0fc3719abfa20 100644 (file)
@@ -11,7 +11,7 @@
      WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      Affero General Public License for more details.
-    
+
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -551,7 +551,8 @@ handle_connect (void *cls,
        "Receiving CONNECT message for `%s' with quota %u\n",
        GNUNET_i2s (&cim->id),
        ntohl (cim->quota_out.value__));
-  n = neighbour_find (h, &cim->id);
+  n = neighbour_find (h,
+                      &cim->id);
   if (NULL != n)
   {
     GNUNET_break (0);