diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-10 11:22:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-10 11:22:19 +0000 |
commit | 2d0451c3fc7eeb950ab5a65b78afdcbaee098b9a (patch) | |
tree | 24ccb9e88e07e0b85c01bb2320fb2b8e79f7f23f /src | |
parent | e9ef08a326a39c5702602f7b22f7fd23d5d6005d (diff) | |
download | gnunet-2d0451c3fc7eeb950ab5a65b78afdcbaee098b9a.tar.gz gnunet-2d0451c3fc7eeb950ab5a65b78afdcbaee098b9a.zip |
DCE
Diffstat (limited to 'src')
-rw-r--r-- | src/core/gnunet-service-core_kx.c | 5 | ||||
-rw-r--r-- | src/core/gnunet-service-core_neighbours.c | 8 |
2 files changed, 1 insertions, 12 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index 6d10c9022..ba3ab87b9 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c | |||
@@ -93,8 +93,7 @@ struct PingMessage | |||
93 | 93 | ||
94 | 94 | ||
95 | /** | 95 | /** |
96 | * Response to a PING. Includes data from the original PING | 96 | * Response to a PING. Includes data from the original PING. |
97 | * plus initial bandwidth quota information. | ||
98 | */ | 97 | */ |
99 | struct PongMessage | 98 | struct PongMessage |
100 | { | 99 | { |
@@ -898,8 +897,6 @@ GSC_KX_handle_ping (struct GSC_KeyExchangeInfo *kx, | |||
898 | } | 897 | } |
899 | /* construct PONG */ | 898 | /* construct PONG */ |
900 | tx.reserved = GNUNET_BANDWIDTH_VALUE_MAX; | 899 | tx.reserved = GNUNET_BANDWIDTH_VALUE_MAX; |
901 | /* FIXME: here we should ideally ask ATS about unassigned bandwidth and fill in | ||
902 | a value based on that; using the minimum here results in a rather slow start... */ | ||
903 | tx.challenge = t.challenge; | 900 | tx.challenge = t.challenge; |
904 | tx.target = t.target; | 901 | tx.target = t.target; |
905 | tp.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_PONG); | 902 | tp.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_PONG); |
diff --git a/src/core/gnunet-service-core_neighbours.c b/src/core/gnunet-service-core_neighbours.c index 0548766d0..2aabde05e 100644 --- a/src/core/gnunet-service-core_neighbours.c +++ b/src/core/gnunet-service-core_neighbours.c | |||
@@ -35,14 +35,6 @@ | |||
35 | 35 | ||
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Receive and send buffer windows grow over time. For | ||
39 | * how long can 'unused' bandwidth accumulate before we | ||
40 | * need to cap it? (specified in seconds). | ||
41 | */ | ||
42 | #define MAX_WINDOW_TIME_S (5 * 60) | ||
43 | |||
44 | |||
45 | /** | ||
46 | * Message ready for transmission via transport service. This struct | 38 | * Message ready for transmission via transport service. This struct |
47 | * is followed by the actual content of the message. | 39 | * is followed by the actual content of the message. |
48 | */ | 40 | */ |