summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-15 23:26:24 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-15 23:26:24 +0100
commit196a0bf9699d9ecead4b50819bd64d3174795296 (patch)
tree4d3c48c8546a45ac748ef66463edc5741bbc0fcc
parent84d51248d563d4187fc5414fbe795a5a4e284262 (diff)
remove dead field quota_in
-rw-r--r--src/transport/gnunet-service-transport.c1
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c3
-rw-r--r--src/transport/transport.h13
-rw-r--r--src/transport/transport_api_core.c5
4 files changed, 8 insertions, 14 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 8c4f33fd0..2d9803651 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -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,
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 3965bc13e..68344bcf4 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -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);
diff --git a/src/transport/transport.h b/src/transport/transport.h
index c5191a5ce..129b1ce15 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -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;
};
diff --git a/src/transport/transport_api_core.c b/src/transport/transport_api_core.c
index 5310054fd..2e897d94a 100644
--- a/src/transport/transport_api_core.c
+++ b/src/transport/transport_api_core.c
@@ -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);