summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-04-09 17:13:11 -0700
committerDave Wallace <dwallacelf@gmail.com>2019-04-10 12:36:44 +0000
commit13464f323a8bbd530bd85256de1c033781e098a7 (patch)
tree22959193c29c21d7d842c91e5aec5f388c5c9dd3 /src/plugins
parent9b208ced585d3b4620d6fde586cd047fe2027ecf (diff)
quic: add dummy accepted cb
Add dummy function to avoid session layer warning. Also, decrease default debug level to avoid startup quic init notifications. Change-Id: I2964fc15a8d93d78c976ed7c333e0cc5746c069e Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/quic/quic.c9
-rw-r--r--src/plugins/quic/quic.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c
index c8288710a1a..7807ae49f12 100644
--- a/src/plugins/quic/quic.c
+++ b/src/plugins/quic/quic.c
@@ -1143,6 +1143,13 @@ quic_session_reset_callback (session_t * s)
clib_warning ("UDP session reset???");
}
+int
+quic_session_accepted_callback (session_t * s)
+{
+ /* never called */
+ return 0;
+}
+
static int
quic_add_segment_callback (u32 client_index, u64 seg_handle)
{
@@ -1475,7 +1482,7 @@ quic_app_rx_callback (session_t * quic_session)
/* *INDENT-OFF* */
static session_cb_vft_t quic_app_cb_vft = {
- .session_accept_callback = NULL,
+ .session_accept_callback = quic_session_accepted_callback,
.session_disconnect_callback = quic_session_disconnect_callback,
.session_connected_callback = quic_session_connected_callback,
.session_reset_callback = quic_session_reset_callback,
diff --git a/src/plugins/quic/quic.h b/src/plugins/quic/quic.h
index f574b29a583..0c0147c6053 100644
--- a/src/plugins/quic/quic.h
+++ b/src/plugins/quic/quic.h
@@ -23,7 +23,7 @@
#include <quicly.h>
-#define QUIC_DEBUG 4
+#define QUIC_DEBUG 1
#define QUIC_DEBUG_LEVEL_CLIENT 0
#define QUIC_DEBUG_LEVEL_SERVER 0