summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session_api.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-06-11 12:31:31 -0700
committerDamjan Marion <dmarion@me.com>2019-06-12 20:18:45 +0000
commit87d663337931be870891a809cf86d1ee1974fedf (patch)
tree483c54e128d290f685a13b4b6f130c6f587dfc01 /src/vnet/session/session_api.c
parent87a9bf8c0399bc5424fbc129e31967cf504810a1 (diff)
session: use session handles as app listener handles
Type: refactor Change-Id: I421750147a8a821bd0b522daf6c2b7239e551f12 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_api.c')
-rwxr-xr-xsrc/vnet/session/session_api.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c
index ed716678f2a..da62c8598b6 100755
--- a/src/vnet/session/session_api.c
+++ b/src/vnet/session/session_api.c
@@ -178,7 +178,6 @@ mq_send_session_accepted_cb (session_t * s)
session_accepted_msg_t *mp;
session_event_t *evt;
application_t *app;
- app_listener_t *al;
app = application_get (app_wrk->app_index);
app_mq = app_wrk->event_queue;
@@ -198,8 +197,7 @@ mq_send_session_accepted_cb (session_t * s)
if (session_has_transport (s))
{
listener = listen_session_get (s->listener_index);
- al = app_listener_get (app, listener->al_index);
- mp->listener_handle = app_listener_handle (al);
+ mp->listener_handle = app_listen_session_handle (listener);
if (application_is_proxy (app))
{
listener =
@@ -220,8 +218,7 @@ mq_send_session_accepted_cb (session_t * s)
ct = (ct_connection_t *) session_get_transport (s);
listener = listen_session_get (s->listener_index);
- al = app_listener_get (app, listener->al_index);
- mp->listener_handle = app_listener_handle (al);
+ mp->listener_handle = app_listen_session_handle (listener);
mp->rmt.is_ip4 = session_type_is_ip4 (listener->session_type);
mp->rmt.port = ct->c_rmt_port;
mp->handle = session_handle (s);