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/08/18 05:49:57 UTC
[trafficserver] 04/05: Set sa_family when initialize
QUICNetVConnection
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 2ec9b809a898c083bad84abfff87e3dd99416c36
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Fri Aug 18 14:38:11 2017 +0900
Set sa_family when initialize QUICNetVConnection
---
iocore/net/QUICPacketHandler.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/iocore/net/QUICPacketHandler.cc b/iocore/net/QUICPacketHandler.cc
index 9286ada..2edb338 100644
--- a/iocore/net/QUICPacketHandler.cc
+++ b/iocore/net/QUICPacketHandler.cc
@@ -115,6 +115,9 @@ QUICPacketHandler::_recv_packet(int event, UDPPacket *udpPacket)
vc->set_context(NET_VCONNECTION_IN);
vc->read.triggered = 1;
vc->start(this->_ssl_ctx);
+ vc->options.ip_proto = NetVCOptions::USE_UDP;
+ vc->options.ip_family = udpPacket->from.sa.sa_family;
+
// TODO: Handle Connection ID of Client Cleartext / Non-Final Server Cleartext Packet
this->_connections.put(qPkt->connection_id(), vc);
}
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.