diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-17 18:13:55 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-17 18:13:55 +0100 |
commit | 17d34d5e094c2f8a90717b07e3a711d6e2c15903 (patch) | |
tree | 777b5323145a5f4d1f044da29a682799008a11d4 /src/dht/gnunet-service-dht_neighbours.c | |
parent | 3391977e3f92a2ebcafc14ea6374aecd580df873 (diff) | |
download | gnunet-17d34d5e094c2f8a90717b07e3a711d6e2c15903.tar.gz gnunet-17d34d5e094c2f8a90717b07e3a711d6e2c15903.zip |
more renamings relating to 'new' service now just being the 'normal' service
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 15071edca..0309bea88 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -1423,7 +1423,7 @@ GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type, | |||
1423 | UINT32_MAX); | 1423 | UINT32_MAX); |
1424 | } | 1424 | } |
1425 | msize = xquery_size + reply_bf_size; | 1425 | msize = xquery_size + reply_bf_size; |
1426 | if (msize + sizeof (struct PeerGetMessage) >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 1426 | if (msize + sizeof (struct PeerGetMessage) >= GNUNET_MAX_MESSAGE_SIZE) |
1427 | { | 1427 | { |
1428 | GNUNET_break (0); | 1428 | GNUNET_break (0); |
1429 | GNUNET_free_non_null (reply_bf); | 1429 | GNUNET_free_non_null (reply_bf); |
@@ -1522,12 +1522,12 @@ GDS_NEIGHBOURS_handle_reply (const struct GNUNET_PeerIdentity *target, | |||
1522 | 1522 | ||
1523 | msize = data_size + (get_path_length + put_path_length) * | 1523 | msize = data_size + (get_path_length + put_path_length) * |
1524 | sizeof (struct GNUNET_PeerIdentity); | 1524 | sizeof (struct GNUNET_PeerIdentity); |
1525 | if ((msize + sizeof (struct PeerResultMessage) >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 1525 | if ((msize + sizeof (struct PeerResultMessage) >= GNUNET_MAX_MESSAGE_SIZE) || |
1526 | (get_path_length > | 1526 | (get_path_length > |
1527 | GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity)) || | 1527 | GNUNET_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity)) || |
1528 | (put_path_length > | 1528 | (put_path_length > |
1529 | GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity)) || | 1529 | GNUNET_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity)) || |
1530 | (data_size > GNUNET_SERVER_MAX_MESSAGE_SIZE)) | 1530 | (data_size > GNUNET_MAX_MESSAGE_SIZE)) |
1531 | { | 1531 | { |
1532 | GNUNET_break (0); | 1532 | GNUNET_break (0); |
1533 | return; | 1533 | return; |
@@ -1627,7 +1627,7 @@ check_dht_p2p_put (void *cls, | |||
1627 | sizeof (struct PeerPutMessage) + | 1627 | sizeof (struct PeerPutMessage) + |
1628 | putlen * sizeof (struct GNUNET_PeerIdentity)) || | 1628 | putlen * sizeof (struct GNUNET_PeerIdentity)) || |
1629 | (putlen > | 1629 | (putlen > |
1630 | GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity))) | 1630 | GNUNET_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity))) |
1631 | { | 1631 | { |
1632 | GNUNET_break_op (0); | 1632 | GNUNET_break_op (0); |
1633 | return GNUNET_SYSERR; | 1633 | return GNUNET_SYSERR; |
@@ -2213,9 +2213,9 @@ check_dht_p2p_result (void *cls, | |||
2213 | put_path_length) * | 2213 | put_path_length) * |
2214 | sizeof (struct GNUNET_PeerIdentity)) || | 2214 | sizeof (struct GNUNET_PeerIdentity)) || |
2215 | (get_path_length > | 2215 | (get_path_length > |
2216 | GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity)) || | 2216 | GNUNET_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity)) || |
2217 | (put_path_length > | 2217 | (put_path_length > |
2218 | GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity))) | 2218 | GNUNET_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity))) |
2219 | { | 2219 | { |
2220 | GNUNET_break_op (0); | 2220 | GNUNET_break_op (0); |
2221 | return GNUNET_SYSERR; | 2221 | return GNUNET_SYSERR; |