]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- dnsoverquic, fix in doqclient to work with renamed NGTCP2_CC_ALGO_BBR_V2
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 5 Sep 2023 06:41:45 +0000 (08:41 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 5 Sep 2023 06:41:45 +0000 (08:41 +0200)
  from ngtcp2.

testcode/doqclient.c

index ac8f2a84f1f78f04857a9ddddf7096aa9e2c0413..1cc9bb39697ea9411f3dd1a83a1c28745aef5ae4 100644 (file)
@@ -1758,8 +1758,14 @@ write_streams(struct doq_client_data* data)
        ngtcp2_path_storage_zero(&ps);
        str = data->query_list_send->first;
 
-       if(data->cc_algo != NGTCP2_CC_ALGO_BBR &&
-               data->cc_algo != NGTCP2_CC_ALGO_BBR2) {
+       if(data->cc_algo != NGTCP2_CC_ALGO_BBR
+#ifdef NGTCP2_CC_ALGO_BBR_V2
+               && data->cc_algo != NGTCP2_CC_ALGO_BBR_V2
+#endif
+#ifdef NGTCP2_CC_ALGO_BBR2
+               && data->cc_algo != NGTCP2_CC_ALGO_BBR2
+#endif
+               ) {
                /* If we do not have a packet pacing congestion control
                 * algorithm, limit the number of packets. */
                max_packets = 10;