|
34 | 34 | #include "picoquic_unified_log.h"
|
35 | 35 | #include "tls_api.h"
|
36 | 36 | #include "picoquic_config.h"
|
| 37 | +#include "picoquic_bbr.h" |
37 | 38 |
|
38 | 39 | typedef struct st_option_param_t {
|
39 | 40 | char const * param;
|
@@ -64,7 +65,7 @@ static option_table_line_t option_table[] = {
|
64 | 65 | { picoquic_option_DisablePortBlocking, 'X', "disable_block", 0, "", "Disable the check for blocked ports"},
|
65 | 66 | { picoquic_option_SOLUTION_DIR, 'S', "solution_dir", 1, "folder", "Set the path to the source files to find the default files" },
|
66 | 67 | { picoquic_option_CC_ALGO, 'G', "cc_algo", 1, "cc_algorithm",
|
67 |
| - "Use the specified congestion control algorithm: reno, cubic, bbr or fast. Defaults to bbr." }, |
| 68 | + "Use the specified congestion control algorithm. Defaults to bbr. Supported values are:" }, |
68 | 69 | { picoquic_option_SPINBIT, 'P', "spinbit", 1, "number", "Set the default spinbit policy" },
|
69 | 70 | { picoquic_option_LOSSBIT, 'O', "lossbit", 1, "number", "Set the default lossbit policy" },
|
70 | 71 | { picoquic_option_MULTIPATH, 'M', "multipath", 0, "", "Enable QUIC multipath extension" },
|
@@ -482,6 +483,22 @@ void picoquic_config_usage_file(FILE* F)
|
482 | 483 | putc(' ', F);
|
483 | 484 | }
|
484 | 485 | fprintf(F, " %s\n", option_table[i].option_help);
|
| 486 | + if (option_table[i].option_num == picoquic_option_CC_ALGO){ |
| 487 | + if (picoquic_congestion_control_algorithms != NULL && |
| 488 | + picoquic_nb_congestion_control_algorithms > 0) { |
| 489 | + /* Add a line with supported values. */ |
| 490 | + for (size_t j = 0; j < 18; j++) { |
| 491 | + putc(' ', F); |
| 492 | + } |
| 493 | + for (size_t k = 0; k < picoquic_nb_congestion_control_algorithms; k++) { |
| 494 | + if (k != 0) { |
| 495 | + fprintf(F, ", "); |
| 496 | + } |
| 497 | + fprintf(F, "%s", picoquic_congestion_control_algorithms[k]->congestion_algorithm_id); |
| 498 | + } |
| 499 | + fprintf(F, ".\n"); |
| 500 | + } |
| 501 | + } |
485 | 502 | }
|
486 | 503 | }
|
487 | 504 |
|
|
0 commit comments