You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2017/12/13 23:44:36 UTC
[trafficserver] 04/08: draft-08: Bump version
This is an automated email from the ASF dual-hosted git repository.
masaori pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit c90274a75db135e2d420e457ed262cadd69954f2
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Tue Dec 12 16:28:27 2017 +0900
draft-08: Bump version
---
iocore/net/quic/QUICTypes.h | 4 ++--
iocore/net/quic/test/test_QUICPacketFactory.cc | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/iocore/net/quic/QUICTypes.h b/iocore/net/quic/QUICTypes.h
index 130bbd6..7429009 100644
--- a/iocore/net/quic/QUICTypes.h
+++ b/iocore/net/quic/QUICTypes.h
@@ -55,10 +55,10 @@ using QUICStreamId = uint32_t;
using QUICOffset = uint64_t;
// TODO: Update version number
-// Note: You also need to update tests for VersionNegotiationPacket, if you change the number of versions
+// Note: You also need to update tests for VersionNegotiationPacket creation, if you change the number of versions
// Prefix for drafts (0xff000000) + draft number
constexpr QUICVersion QUIC_SUPPORTED_VERSIONS[] = {
- 0xff000007,
+ 0xff000008,
};
constexpr QUICStreamId STREAM_ID_FOR_HANDSHAKE = 0;
diff --git a/iocore/net/quic/test/test_QUICPacketFactory.cc b/iocore/net/quic/test/test_QUICPacketFactory.cc
index 97d5665..db29759 100644
--- a/iocore/net/quic/test/test_QUICPacketFactory.cc
+++ b/iocore/net/quic/test/test_QUICPacketFactory.cc
@@ -50,7 +50,8 @@ TEST_CASE("QUICPacketFactory_Create_VersionNegotiationPacket", "[quic]")
CHECK(packet->type() == QUICPacketType::VERSION_NEGOTIATION);
CHECK(packet->connection_id() == client_initial_packet.connection_id());
CHECK(packet->packet_number() == client_initial_packet.packet_number());
- CHECK(memcmp(packet->payload(), "\xff\x00\x00\x07", 4) == 0);
+ CHECK(packet->version() == 0x00);
+ CHECK(memcmp(packet->payload(), "\xff\x00\x00\x08", 4) == 0);
}
TEST_CASE("QUICPacketFactory_Create_Handshake", "[quic]")
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.