summaryrefslogtreecommitdiffstats
path: root/src/plugins/quic/quic.c
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/quic/quic.c
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/quic/quic.c')
-rw-r--r--src/plugins/quic/quic.c9
1 files changed, 8 insertions, 1 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,