-
- /* legacy options */
- else if (strcmp(suffix, "cc.cubic.min-losses") == 0) {
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.fe.cc.cubic-min-losses'.", args[0]);
- quic_tune.fe.cc_cubic_min_losses = arg - 1;
- ret = 1;
- }
- else if (strcmp(suffix, "frontend.default-max-window-size") == 0) {
- unsigned long cwnd;
- char *end_opt;
-
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.fe.cc.max-win-size'.", args[0]);
-
- cwnd = parse_window_size(args[0], args[1], &end_opt, err);
- if (!cwnd)
- return -1;
- if (*end_opt != '\0') {
- memprintf(err, "'%s' : expects an integer value with an optional suffix 'k', 'm' or 'g'", args[0]);
- return -1;
- }
-
- quic_tune.fe.cc_max_win_size = cwnd;
- ret = 1;
- }
- else if (strcmp(suffix, "frontend.glitches-threshold") == 0) {
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.fe.sec.glitches-threshold'.", args[0]);
- quic_tune.fe.sec_glitches_threshold = arg;
- ret = 1;
- }
- else if (strcmp(suffix, "frontend.max-data-size") == 0) {
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.fe.stream.rxbuf'.", args[0]);
- if ((errptr = parse_size_err(args[1], &arg))) {
- memprintf(err, "'%s': unexpected character '%c' in size argument '%s'.",
- args[0], *errptr, args[1]);
- return -1;
- }
-
- quic_tune.fe.stream_rxbuf = arg;
- ret = 1;
- }
- else if (strcmp(suffix, "frontend.max-streams-bidi") == 0) {
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.fe.stream.max-concurrent'.", args[0]);
- quic_tune.fe.stream_max_concurrent = arg;
- ret = 1;
- }
- else if (strcmp(suffix, "frontend.max-tx-mem") == 0) {
- ullong max_mem;
-
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.mem.tx-max'.", args[0]);
-
- if ((errptr = parse_size_err(args[1], &max_mem))) {
- memprintf(err, "'%s': unexpected character '%c' in size argument '%s'.",
- args[0], *errptr, args[1]);
- return -1;
- }
-
- quic_tune.mem_tx_max = max_mem;
- ret = 1;
- }
- else if (strcmp(suffix, "frontend.stream-data-ratio") == 0) {
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.fe.stream.data-ratio'.", args[0]);
-
- if (arg < 1 || arg > 100) {
- memprintf(err, "'%s' expects an integer argument between 1 and 100.", args[0]);
- return -1;
- }
- quic_tune.fe.stream_data_ratio = arg;
- ret = 1;
- }
- else if (strcmp(suffix, "max-frame-loss") == 0) {
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.fe.cc.max-frame-loss'.", args[0]);
- quic_tune.fe.cc_max_frame_loss = arg;
- ret = 1;
- }
- else if (strcmp(suffix, "reorder-ratio") == 0) {
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.fe.cc.reorder-ratio'.", args[0]);
- if (arg > 100) {
- memprintf(err, "'%s' expects an integer argument between 0 and 100.", args[0]);
- return -1;
- }
-
- quic_tune.fe.cc_reorder_ratio = arg;
- ret = 1;
- }
- else if (strcmp(suffix, "retry-threshold") == 0) {
- memprintf(err, "'%s' is deprecated in 3.3 and will be removed in 3.5. "
- "Please use the newer keyword syntax 'tune.quic.fe.sec.retry-threshold'.", args[0]);
- quic_tune.fe.sec_retry_threshold = arg;
- ret = 1;
- }