@@ -50,7 +50,7 @@ TEST_CASE("QUICTransportParametersInClientHello_read", "[quic]")
5050 uint16_t len = 0 ;
5151 const uint8_t *data = nullptr ;
5252
53- data = params_in_ch.getAsBytes (QUICTransportParameterId::ORIGINAL_CONNECTION_ID , len);
53+ data = params_in_ch.getAsBytes (QUICTransportParameterId::ORIGINAL_DESTINATION_CONNECTION_ID , len);
5454 CHECK (len == 4 );
5555 CHECK (memcmp (data, " \x11\x22\x33\x44 " , 4 ) == 0 );
5656
@@ -62,7 +62,7 @@ TEST_CASE("QUICTransportParametersInClientHello_read", "[quic]")
6262 CHECK (len == 2 );
6363 CHECK (memcmp (data, " \x0a\x0b " , 2 ) == 0 );
6464
65- data = params_in_ch.getAsBytes (QUICTransportParameterId::MAX_PACKET_SIZE , len);
65+ data = params_in_ch.getAsBytes (QUICTransportParameterId::MAX_UDP_PAYLOAD_SIZE , len);
6666 CHECK (len == 2 );
6767 CHECK (memcmp (data, " \x05\x67 " , 2 ) == 0 );
6868
@@ -111,7 +111,7 @@ TEST_CASE("QUICTransportParametersInClientHello_write", "[quic]")
111111 params_in_ch.set (QUICTransportParameterId::INITIAL_MAX_STREAM_DATA_BIDI_LOCAL, max_stream_data);
112112
113113 uint16_t max_packet_size = 0x1bcd ;
114- params_in_ch.set (QUICTransportParameterId::MAX_PACKET_SIZE , max_packet_size);
114+ params_in_ch.set (QUICTransportParameterId::MAX_UDP_PAYLOAD_SIZE , max_packet_size);
115115
116116 uint8_t stateless_reset_token[16 ] = {0x00 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 , 0x77 ,
117117 0x00 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 , 0x77 };
@@ -242,7 +242,7 @@ TEST_CASE("QUICTransportParametersEncryptedExtensions_write", "[quic]")
242242 params_in_ee.set (QUICTransportParameterId::INITIAL_MAX_STREAM_DATA_BIDI_REMOTE, max_stream_data);
243243
244244 uint16_t max_packet_size = 0x1bcd ;
245- params_in_ee.set (QUICTransportParameterId::MAX_PACKET_SIZE , max_packet_size);
245+ params_in_ee.set (QUICTransportParameterId::MAX_UDP_PAYLOAD_SIZE , max_packet_size);
246246
247247 params_in_ee.add_version (0x01020304 );
248248 params_in_ee.add_version (0x05060708 );
@@ -273,7 +273,7 @@ TEST_CASE("QUICTransportParametersEncryptedExtensions_write", "[quic]")
273273 params_in_ee.set (QUICTransportParameterId::INITIAL_MAX_STREAM_DATA_BIDI_REMOTE, max_stream_data);
274274
275275 uint16_t max_packet_size = 0x1bcd ;
276- params_in_ee.set (QUICTransportParameterId::MAX_PACKET_SIZE , max_packet_size);
276+ params_in_ee.set (QUICTransportParameterId::MAX_UDP_PAYLOAD_SIZE , max_packet_size);
277277 params_in_ee.set (QUICTransportParameterId::DISABLE_ACTIVE_MIGRATION, nullptr , 0 );
278278
279279 params_in_ee.add_version (0x01020304 );
0 commit comments