diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-01 22:57:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-01 22:57:00 +0200 |
commit | 9ba7218399841d1eafe962d82b66302fc6aa05b0 (patch) | |
tree | b3a2d8421f8147188240a3da7248d65187905e7a | |
parent | 39b19b0ca9d004b4cbe67d2f09c2a1e9eab03c19 (diff) | |
download | gnunet-9ba7218399841d1eafe962d82b66302fc6aa05b0.tar.gz gnunet-9ba7218399841d1eafe962d82b66302fc6aa05b0.zip |
-fix typos
-rw-r--r-- | src/setu/gnunet-service-setu.c | 22 | ||||
-rw-r--r-- | src/setu/gnunet-service-setu_protocol.h | 5 | ||||
-rw-r--r-- | src/setu/perf_setu_api.c | 2 |
3 files changed, 16 insertions, 13 deletions
diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c index a51e92b71..9a61af67d 100644 --- a/src/setu/gnunet-service-setu.c +++ b/src/setu/gnunet-service-setu.c | |||
@@ -95,7 +95,7 @@ | |||
95 | #define SECURITY_LEVEL 80 | 95 | #define SECURITY_LEVEL 80 |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * Is the estimated probabily for a new round this values | 98 | * Is the estimated probability for a new round this values |
99 | * is based on the bsc thesis of Elias Summermatter (2021) | 99 | * is based on the bsc thesis of Elias Summermatter (2021) |
100 | */ | 100 | */ |
101 | 101 | ||
@@ -467,7 +467,7 @@ struct Operation | |||
467 | 467 | ||
468 | /** | 468 | /** |
469 | * Set difference is multiplied with this factor | 469 | * Set difference is multiplied with this factor |
470 | * to gennerate large enought IBF | 470 | * to gennerate large enough IBF |
471 | */ | 471 | */ |
472 | uint8_t ibf_bucket_number_factor; | 472 | uint8_t ibf_bucket_number_factor; |
473 | 473 | ||
@@ -780,7 +780,7 @@ struct perf_num_send_received_msg | |||
780 | }; | 780 | }; |
781 | 781 | ||
782 | /** | 782 | /** |
783 | * Main struct to messure perfomance (data/rtts) | 783 | * Main struct to measure performance (data/rtts) |
784 | */ | 784 | */ |
785 | struct per_store_struct | 785 | struct per_store_struct |
786 | { | 786 | { |
@@ -828,7 +828,7 @@ enum MESSAGE_CONTROL_FLOW_STATE | |||
828 | MSG_CFS_EXPECTED, | 828 | MSG_CFS_EXPECTED, |
829 | 829 | ||
830 | /** | 830 | /** |
831 | * Track that message has been recieved | 831 | * Track that message has been received |
832 | */ | 832 | */ |
833 | MSG_CFS_RECEIVED, | 833 | MSG_CFS_RECEIVED, |
834 | }; | 834 | }; |
@@ -843,20 +843,22 @@ enum MESSAGE_TYPE | |||
843 | * Offer message type | 843 | * Offer message type |
844 | */ | 844 | */ |
845 | OFFER_MESSAGE, | 845 | OFFER_MESSAGE, |
846 | |||
846 | /** | 847 | /** |
847 | * Demand message type | 848 | * Demand message type |
848 | */ | 849 | */ |
849 | DEMAND_MESSAGE, | 850 | DEMAND_MESSAGE, |
851 | |||
850 | /** | 852 | /** |
851 | * Elemente message type | 853 | * Element message type |
852 | */ | 854 | */ |
853 | ELEMENT_MESSAGE, | 855 | ELEMENT_MESSAGE, |
854 | }; | 856 | }; |
855 | 857 | ||
858 | |||
856 | /** | 859 | /** |
857 | * Struct to tracked messages in message controll flow | 860 | * Struct to tracked messages in message control flow |
858 | */ | 861 | */ |
859 | |||
860 | struct messageControlFlowElement | 862 | struct messageControlFlowElement |
861 | { | 863 | { |
862 | /** | 864 | /** |
@@ -912,7 +914,7 @@ load_config (struct Operation *op) | |||
912 | 914 | ||
913 | 915 | ||
914 | /** | 916 | /** |
915 | * Function to calculate total bytes used for performance messurement | 917 | * Function to calculate total bytes used for performance measurement |
916 | * @param size | 918 | * @param size |
917 | * @param perf_num_send_received_msg | 919 | * @param perf_num_send_received_msg |
918 | * @return bytes used | 920 | * @return bytes used |
@@ -942,7 +944,7 @@ calculate_perf_store () | |||
942 | int bytes_transmitted = 0; | 944 | int bytes_transmitted = 0; |
943 | 945 | ||
944 | /** | 946 | /** |
945 | * Calculate RGNUNET_SETU_AcceptMessageRT of Fullsync normaly 1 or 1.5 depending | 947 | * Calculate RGNUNET_SETU_AcceptMessageRT of Fullsync normally 1 or 1.5 depending |
946 | */ | 948 | */ |
947 | if ((perf_store.element_full.received != 0) || | 949 | if ((perf_store.element_full.received != 0) || |
948 | (perf_store.element_full.sent != 0) | 950 | (perf_store.element_full.sent != 0) |
@@ -1840,7 +1842,7 @@ struct GetElementContext | |||
1840 | struct GNUNET_HashCode hash; | 1842 | struct GNUNET_HashCode hash; |
1841 | 1843 | ||
1842 | /** | 1844 | /** |
1843 | * Pointer to the key enty | 1845 | * Pointer to the key entry |
1844 | */ | 1846 | */ |
1845 | struct KeyEntry *k; | 1847 | struct KeyEntry *k; |
1846 | }; | 1848 | }; |
diff --git a/src/setu/gnunet-service-setu_protocol.h b/src/setu/gnunet-service-setu_protocol.h index d8f34f69c..c2a166e60 100644 --- a/src/setu/gnunet-service-setu_protocol.h +++ b/src/setu/gnunet-service-setu_protocol.h | |||
@@ -82,11 +82,13 @@ struct IBFMessage | |||
82 | uint16_t salt GNUNET_PACKED; | 82 | uint16_t salt GNUNET_PACKED; |
83 | 83 | ||
84 | /** | 84 | /** |
85 | * The bit lenght of the counter | 85 | * The bit length of the counter |
86 | */ | 86 | */ |
87 | uint16_t ibf_counter_bit_length; | 87 | uint16_t ibf_counter_bit_length; |
88 | /* rest: buckets */ | 88 | /* rest: buckets */ |
89 | }; | 89 | }; |
90 | |||
91 | |||
90 | /** | 92 | /** |
91 | estimate_best_mode_of_operation (uint64_t avg_element_size, | 93 | estimate_best_mode_of_operation (uint64_t avg_element_size, |
92 | uint64_t local_set_size, | 94 | uint64_t local_set_size, |
@@ -96,7 +98,6 @@ uint64_t est_set_diff_remote, | |||
96 | **/ | 98 | **/ |
97 | 99 | ||
98 | 100 | ||
99 | |||
100 | struct InquiryMessage | 101 | struct InquiryMessage |
101 | { | 102 | { |
102 | /** | 103 | /** |
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c index af84994f8..7f4d64f74 100644 --- a/src/setu/perf_setu_api.c +++ b/src/setu/perf_setu_api.c | |||
@@ -355,7 +355,7 @@ run (void *cls, | |||
355 | set2); | 355 | set2); |
356 | GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, &app_id); | 356 | GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, &app_id); |
357 | 357 | ||
358 | /* test if canceling an uncommited request works! */ | 358 | /* test if canceling an uncommitted request works! */ |
359 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 359 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
360 | "Launching and instantly stopping set operation\n"); | 360 | "Launching and instantly stopping set operation\n"); |
361 | my_oh = GNUNET_SETU_prepare (&local_id, | 361 | my_oh = GNUNET_SETU_prepare (&local_id, |