summaryrefslogtreecommitdiffstats
path: root/src/plugins/quic
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-04-24 11:10:02 -0700
committerDamjan Marion <dmarion@me.com>2019-04-25 14:46:26 +0000
commit09d18c2fee0eb96c486f9d112e39dcd34e430b0e (patch)
tree1154321a8d937427c5e1b600b36e94fbbfe73ef4 /src/plugins/quic
parente8915fc707a03260c05624425f9548d796c089fb (diff)
session: use teps in accept/connect notifications
Change-Id: I58e713661a38cecbfdebd4609292d9d12e880cd2 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/plugins/quic')
-rw-r--r--src/plugins/quic/quic.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c
index c066b0d955e..5ff962d8102 100644
--- a/src/plugins/quic/quic.c
+++ b/src/plugins/quic/quic.c
@@ -1621,38 +1621,37 @@ quic_app_rx_callback (session_t * udp_session)
}
always_inline void
-quic_common_get_transport_endpoint (quic_ctx_t * ctx, ip46_address_t * ip,
- u16 * port, u8 * is_ip4, u8 is_lcl)
+quic_common_get_transport_endpoint (quic_ctx_t * ctx,
+ transport_endpoint_t * tep, u8 is_lcl)
{
session_t *udp_session;
QUIC_DBG (2, "Called quic_get_transport_endpoint");
if (ctx->c_quic_ctx_id.is_stream)
- *is_ip4 = 255; /* well this is ugly */
+ tep->is_ip4 = 255; /* well this is ugly */
else
{
udp_session =
session_get_from_handle (ctx->c_quic_ctx_id.udp_session_handle);
- session_get_endpoint (udp_session, ip, port, is_ip4, is_lcl);
+ session_get_endpoint (udp_session, tep, is_lcl);
}
}
static void
-quic_get_transport_listener_endpoint (u32 listener_index, ip46_address_t * ip,
- u16 * port, u8 * is_ip4, u8 is_lcl)
+quic_get_transport_listener_endpoint (u32 listener_index,
+ transport_endpoint_t * tep, u8 is_lcl)
{
quic_ctx_t *ctx;
ctx = quic_ctx_get (listener_index);
- quic_common_get_transport_endpoint (ctx, ip, port, is_ip4, is_lcl);
+ quic_common_get_transport_endpoint (ctx, tep, is_lcl);
}
static void
quic_get_transport_endpoint (u32 ctx_index, u32 thread_index,
- ip46_address_t * ip, u16 * port, u8 * is_ip4,
- u8 is_lcl)
+ transport_endpoint_t * tep, u8 is_lcl)
{
quic_ctx_t *ctx;
ctx = quic_ctx_get_w_thread (ctx_index, thread_index);
- quic_common_get_transport_endpoint (ctx, ip, port, is_ip4, is_lcl);
+ quic_common_get_transport_endpoint (ctx, tep, is_lcl);
}
/*****************************************************************************