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,
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/>.
*/
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);
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;
};
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/>.
*/
"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);