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 2018/01/21 23:55:01 UTC
[trafficserver] branch quic-latest updated: Fill the unused field
of Version Negotiation Packet with random value
This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/quic-latest by this push:
new b0c77cd Fill the unused field of Version Negotiation Packet with random value
b0c77cd is described below
commit b0c77cd5a5831d0601434db2e4f8044a09b08fab
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Mon Jan 22 10:53:04 2018 +1100
Fill the unused field of Version Negotiation Packet with random value
---
iocore/net/quic/QUICPacket.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/iocore/net/quic/QUICPacket.cc b/iocore/net/quic/QUICPacket.cc
index 4d42fcb..0fc20df 100644
--- a/iocore/net/quic/QUICPacket.cc
+++ b/iocore/net/quic/QUICPacket.cc
@@ -239,6 +239,9 @@ QUICPacketLongHeader::store(uint8_t *buf, size_t *len) const
*len = 0;
buf[0] = 0x80;
buf[0] += static_cast<uint8_t>(this->_type);
+ if (this->_type == QUICPacketType::VERSION_NEGOTIATION) {
+ buf[0] |= rand();
+ }
*len += 1;
QUICTypeUtil::write_QUICConnectionId(this->_connection_id, 8, buf + *len, &n);
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].