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/dns | |
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/dns')
-rw-r--r-- | src/dns/dns_api.c | 2 | ||||
-rw-r--r-- | src/dns/gnunet-helper-dns.c | 2 | ||||
-rw-r--r-- | src/dns/gnunet-service-dns.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/dns/dns_api.c b/src/dns/dns_api.c index e7450a1d4..9f0dee9a9 100644 --- a/src/dns/dns_api.c +++ b/src/dns/dns_api.c | |||
@@ -317,7 +317,7 @@ GNUNET_DNS_request_answer (struct GNUNET_DNS_RequestHandle *rh, | |||
317 | return; | 317 | return; |
318 | } | 318 | } |
319 | if (reply_length + sizeof (struct GNUNET_DNS_Response) | 319 | if (reply_length + sizeof (struct GNUNET_DNS_Response) |
320 | >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 320 | >= GNUNET_MAX_MESSAGE_SIZE) |
321 | { | 321 | { |
322 | GNUNET_break (0); | 322 | GNUNET_break (0); |
323 | GNUNET_free (rh); | 323 | GNUNET_free (rh); |
diff --git a/src/dns/gnunet-helper-dns.c b/src/dns/gnunet-helper-dns.c index d083a9df2..5cf1967f5 100644 --- a/src/dns/gnunet-helper-dns.c +++ b/src/dns/gnunet-helper-dns.c | |||
@@ -79,7 +79,7 @@ | |||
79 | #include "gnunet_protocols.h" | 79 | #include "gnunet_protocols.h" |
80 | 80 | ||
81 | /** | 81 | /** |
82 | * Maximum size of a GNUnet message (GNUNET_SERVER_MAX_MESSAGE_SIZE) | 82 | * Maximum size of a GNUnet message (GNUNET_MAX_MESSAGE_SIZE) |
83 | */ | 83 | */ |
84 | #define MAX_SIZE 65536 | 84 | #define MAX_SIZE 65536 |
85 | 85 | ||
diff --git a/src/dns/gnunet-service-dns.c b/src/dns/gnunet-service-dns.c index 079f74ce4..ffc94afb7 100644 --- a/src/dns/gnunet-service-dns.c +++ b/src/dns/gnunet-service-dns.c | |||
@@ -347,7 +347,7 @@ request_done (struct RequestRecord *rr) | |||
347 | } | 347 | } |
348 | reply_len += sizeof (struct GNUNET_TUN_UdpHeader); | 348 | reply_len += sizeof (struct GNUNET_TUN_UdpHeader); |
349 | reply_len += rr->payload_length; | 349 | reply_len += rr->payload_length; |
350 | if (reply_len >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 350 | if (reply_len >= GNUNET_MAX_MESSAGE_SIZE) |
351 | { | 351 | { |
352 | /* response too big, drop */ | 352 | /* response too big, drop */ |
353 | GNUNET_break (0); /* how can this be? */ | 353 | GNUNET_break (0); /* how can this be? */ |
@@ -481,7 +481,7 @@ send_request_to_client (struct RequestRecord *rr, | |||
481 | struct GNUNET_MQ_Envelope *env; | 481 | struct GNUNET_MQ_Envelope *env; |
482 | struct GNUNET_DNS_Request *req; | 482 | struct GNUNET_DNS_Request *req; |
483 | 483 | ||
484 | if (sizeof (struct GNUNET_DNS_Request) + rr->payload_length >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 484 | if (sizeof (struct GNUNET_DNS_Request) + rr->payload_length >= GNUNET_MAX_MESSAGE_SIZE) |
485 | { | 485 | { |
486 | GNUNET_break (0); | 486 | GNUNET_break (0); |
487 | cleanup_rr (rr); | 487 | cleanup_rr (rr); |