diff options
author | Florin Coras <fcoras@cisco.com> | 2018-04-13 06:39:07 -0700 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-04-16 07:33:57 +0000 |
commit | 5c9083d52646153bdc917a7ae37da696d864ad1c (patch) | |
tree | b28635fbfb3d443597526bd67625dce007d23186 /src/vnet/session/session_api.c | |
parent | e8fa6209de1bf4f89cd57fcc09dfdc6086b92df9 (diff) |
session: use generic session pool for listeners
Change-Id: I825f3822910a6ee368b9004e39ca16ac6833e30c
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_api.c')
-rwxr-xr-x | src/vnet/session/session_api.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c index 9236b19a5d0..2a74a196201 100755 --- a/src/vnet/session/session_api.c +++ b/src/vnet/session/session_api.c @@ -174,7 +174,7 @@ send_session_accept_callback (stream_session_t * s) if (session_has_transport (s)) { - listener = listen_session_get (s->session_type, s->listener_index); + listener = listen_session_get (s->listener_index); mp->listener_handle = listen_session_get_handle (listener); if (application_is_proxy (server)) { @@ -199,8 +199,7 @@ send_session_accept_callback (stream_session_t * s) local_session_t *ll; if (application_local_session_listener_has_transport (ls)) { - listener = listen_session_get (ls->listener_session_type, - ls->listener_index); + listener = listen_session_get (ls->listener_index); mp->listener_handle = listen_session_get_handle (listener); mp->is_ip4 = session_type_is_ip4 (listener->session_type); } @@ -210,8 +209,7 @@ send_session_accept_callback (stream_session_t * s) ls->listener_index); if (ll->transport_listener_index != ~0) { - listener = listen_session_get (ll->listener_session_type, - ll->transport_listener_index); + listener = listen_session_get (ll->transport_listener_index); mp->listener_handle = listen_session_get_handle (listener); } else |