Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,7 @@ enable_quic=yes
AM_CONDITIONAL([ENABLE_QUIC], [test "x$enable_quic" = "xyes"])
TS_ARG_ENABLE_VAR([use], [quic])
AC_SUBST(use_quic)
AC_SUBST(has_quiche)
fi

# Check for optional WAVM library
Expand Down
1 change: 1 addition & 0 deletions doc/developer-guide/testing/blackbox-testing.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ Condition Testing
- TS_USE_SET_RBIO
- TS_USE_TLS13
- TS_USE_QUIC
- TS_HAS_QUICHE
- TS_USE_LINUX_NATIVE_AIO
- TS_HAS_SO_PEERCRED
- TS_USE_REMOTE_UNWINDING
Expand Down
1 change: 1 addition & 0 deletions include/tscore/ink_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#define TS_USE_GET_DH_2048_256 @use_dh_get_2048_256@
#define TS_USE_TLS13 @use_tls13@
#define TS_USE_QUIC @use_quic@
#define TS_HAS_QUICHE @has_quiche@
#define TS_USE_TLS_SET_CIPHERSUITES @use_tls_set_ciphersuites@
#define TS_HAS_TLS_KEYLOGGING @has_tls_keylogging@
#define TS_USE_LINUX_NATIVE_AIO @use_linux_native_aio@
Expand Down
2 changes: 1 addition & 1 deletion iocore/net/P_QUICNet.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct QUICPollCont : public Continuation {
Que(UDPPacketInternal, link) _longInQueue;

private:
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
void _process_packet(QUICPollEvent *e, NetHandler *nh);
#else
void _process_short_header_packet(QUICPollEvent *e, NetHandler *nh);
Expand Down
2 changes: 1 addition & 1 deletion iocore/net/P_QUICNetProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "tscore/ink_config.h"

#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#include "P_QUICNetProcessor_quiche.h"
#else
#include "P_QUICNetProcessor_native.h"
Expand Down
2 changes: 1 addition & 1 deletion iocore/net/P_QUICNetVConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "tscore/ink_config.h"

#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#include "P_QUICNetVConnection_quiche.h"
#else
#include "P_QUICNetVConnection_native.h"
Expand Down
2 changes: 1 addition & 1 deletion iocore/net/P_QUICNextProtocolAccept.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "tscore/ink_config.h"

#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#include "P_QUICNextProtocolAccept_quiche.h"
#else
#include "P_QUICNextProtocolAccept_native.h"
Expand Down
2 changes: 1 addition & 1 deletion iocore/net/P_QUICPacketHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "tscore/ink_config.h"

#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#include "P_QUICPacketHandler_quiche.h"
#else
#include "P_QUICPacketHandler_native.h"
Expand Down
4 changes: 2 additions & 2 deletions iocore/net/QUICNet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ QUICPollCont::QUICPollCont(Ptr<ProxyMutex> &m, NetHandler *nh) : Continuation(m.

QUICPollCont::~QUICPollCont() {}

#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
void
QUICPollCont::_process_packet(QUICPollEvent *e, NetHandler *nh)
{
Expand Down Expand Up @@ -168,7 +168,7 @@ QUICPollCont::pollEvent(int, Event *)
}

while ((e = result.pop())) {
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
this->_process_packet(e, nh);
#else
uint8_t *buf;
Expand Down
8 changes: 4 additions & 4 deletions iocore/net/quic/Mock.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include "QUICApplication.h"
#include "QUICStreamManager.h"
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#include "QUICStreamManager_quiche.h"
#else
#include "QUICStreamManager_native.h"
Expand All @@ -43,7 +43,7 @@
#include "QUICPadder.h"
#include "QUICHandshakeProtocol.h"
#include "QUICStreamAdapter.h"
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#include "QUICStream_quiche.h"
#else
#include "QUICStream_native.h"
Expand Down Expand Up @@ -255,7 +255,7 @@ class MockQUICStreamManager : public QUICStreamManagerImpl
MockQUICStreamManager(QUICContext *context) : QUICStreamManagerImpl(context, nullptr) {}

// Override
#ifndef HAVE_QUICHE_H
#if TS_HAS_QUICHE == 0
virtual QUICConnectionErrorUPtr
handle_frame(QUICEncryptionLevel level, const QUICFrame &f) override
{
Expand Down Expand Up @@ -664,7 +664,7 @@ class MockQUICContext : public QUICContext
{
return _config;
}
#ifndef HAVE_QUICHE_H
#if TS_HAS_QUICHE == 0
virtual QUICRTTProvider *
rtt_provider() const override
{
Expand Down
4 changes: 2 additions & 2 deletions iocore/net/quic/QUICContext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class QUICLDConfigQCP : public QUICLDConfig
const QUICConfigParams *_params;
};

#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
QUICContext::QUICContext(QUICConnectionInfoProvider *info) : _connection_info(info) {}
#else
QUICContext::QUICContext(QUICRTTProvider *rtt, QUICConnectionInfoProvider *info, QUICPacketProtectionKeyInfoProvider *key_info,
Expand All @@ -121,7 +121,7 @@ QUICContext::config() const
return _config;
}

#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#else
QUICPacketProtectionKeyInfoProvider *
QUICContext::key_info() const
Expand Down
6 changes: 3 additions & 3 deletions iocore/net/quic/QUICContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class QUICCallback
class QUICContext
{
public:
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
QUICContext(QUICConnectionInfoProvider *info);
#else
QUICContext(QUICRTTProvider *rtt, QUICConnectionInfoProvider *info, QUICPacketProtectionKeyInfoProvider *key_info,
Expand All @@ -82,7 +82,7 @@ class QUICContext
virtual ~QUICContext(){};
virtual QUICConnectionInfoProvider *connection_info() const;
virtual QUICConfig::scoped_config config() const;
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#else
virtual QUICLDConfig &ld_config() const;
virtual QUICPacketProtectionKeyInfoProvider *key_info() const;
Expand Down Expand Up @@ -191,7 +191,7 @@ class QUICContext
private:
QUICConfig::scoped_config _config;
QUICConnectionInfoProvider *_connection_info = nullptr;
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#else
QUICPacketProtectionKeyInfoProvider *_key_info = nullptr;
QUICRTTProvider *_rtt_provider = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion iocore/net/quic/QUICGlobals.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ QUIC::init()
int
QUIC::ssl_client_new_session(SSL *ssl, SSL_SESSION *session)
{
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
#else
QUICTLS *qtls = static_cast<QUICTLS *>(SSL_get_ex_data(ssl, QUIC::ssl_quic_tls_index));
const char *session_file = qtls->session_file();
Expand Down
4 changes: 2 additions & 2 deletions proxy/http3/test/test_QPACK.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ class QUICApplicationDriver
};

// TODO: QUICUnidirectionalStream should be used if there
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
class TestQUICStream : public QUICStreamImpl
#else
class TestQUICStream : public QUICBidirectionalStream
#endif
{
public:
TestQUICStream(QUICStreamId sid)
#if HAVE_QUICHE_H
#if TS_HAS_QUICHE
: QUICStreamImpl(new MockQUICConnectionInfoProvider(), sid)
#else
: QUICBidirectionalStream(new MockQUICRTTProvider(), new MockQUICConnectionInfoProvider(), sid, 65536, 65536)
Expand Down
1 change: 1 addition & 0 deletions src/traffic_layout/info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ produce_features(bool json)
print_feature("TS_USE_SET_RBIO", TS_USE_SET_RBIO, json);
print_feature("TS_USE_TLS13", TS_USE_TLS13, json);
print_feature("TS_USE_QUIC", TS_USE_QUIC, json);
print_feature("TS_HAS_QUICHE", TS_HAS_QUICHE, json);
print_feature("TS_USE_LINUX_NATIVE_AIO", TS_USE_LINUX_NATIVE_AIO, json);
print_feature("TS_HAS_SO_PEERCRED", TS_HAS_SO_PEERCRED, json);
print_feature("TS_USE_REMOTE_UNWINDING", TS_USE_REMOTE_UNWINDING, json);
Expand Down
1 change: 1 addition & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ ts.Disk.remap_config.AddLine(
* TS_USE_SET_RBIO
* TS_USE_TLS13
* TS_USE_QUIC
* TS_HAS_QUICHE
* TS_USE_LINUX_NATIVE_AIO
* TS_HAS_SO_PEERCRED
* TS_USE_REMOTE_UNWINDING
Expand Down