diff options
Diffstat (limited to 'src/core/gnunet-service-core.c')
-rw-r--r-- | src/core/gnunet-service-core.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 044b7496e..bad6f05d3 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c | |||
@@ -3450,13 +3450,6 @@ handle_transport_receive (void *cls, | |||
3450 | (n->status != PEER_STATE_KEY_CONFIRMED)) | 3450 | (n->status != PEER_STATE_KEY_CONFIRMED)) |
3451 | { | 3451 | { |
3452 | GNUNET_break_op (0); | 3452 | GNUNET_break_op (0); |
3453 | /* blacklist briefly (?); might help recover (?) */ | ||
3454 | GNUNET_TRANSPORT_blacklist (sched, cfg, | ||
3455 | &n->peer, | ||
3456 | GNUNET_TIME_UNIT_SECONDS, | ||
3457 | GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, | ||
3458 | 5), | ||
3459 | NULL, NULL); | ||
3460 | return; | 3453 | return; |
3461 | } | 3454 | } |
3462 | handle_encrypted_message (n, (const struct EncryptedMessage *) message); | 3455 | handle_encrypted_message (n, (const struct EncryptedMessage *) message); |
@@ -3626,7 +3619,6 @@ handle_transport_notify_connect (void *cls, | |||
3626 | unsigned int distance) | 3619 | unsigned int distance) |
3627 | { | 3620 | { |
3628 | struct Neighbour *n; | 3621 | struct Neighbour *n; |
3629 | struct ConnectNotifyMessage cnm; | ||
3630 | 3622 | ||
3631 | if (0 == memcmp (peer, &my_identity, sizeof (struct GNUNET_PeerIdentity))) | 3623 | if (0 == memcmp (peer, &my_identity, sizeof (struct GNUNET_PeerIdentity))) |
3632 | { | 3624 | { |
@@ -3665,12 +3657,6 @@ handle_transport_notify_connect (void *cls, | |||
3665 | "Received connection from `%4s'.\n", | 3657 | "Received connection from `%4s'.\n", |
3666 | GNUNET_i2s (&n->peer)); | 3658 | GNUNET_i2s (&n->peer)); |
3667 | #endif | 3659 | #endif |
3668 | cnm.header.size = htons (sizeof (struct ConnectNotifyMessage)); | ||
3669 | cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_PRE_CONNECT); | ||
3670 | cnm.distance = htonl (n->last_distance); | ||
3671 | cnm.latency = GNUNET_TIME_relative_hton (n->last_latency); | ||
3672 | cnm.peer = *peer; | ||
3673 | send_to_all_clients (&cnm.header, GNUNET_YES, GNUNET_CORE_OPTION_SEND_PRE_CONNECT); | ||
3674 | GNUNET_TRANSPORT_set_quota (transport, | 3660 | GNUNET_TRANSPORT_set_quota (transport, |
3675 | &n->peer, | 3661 | &n->peer, |
3676 | n->bw_in, | 3662 | n->bw_in, |