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_test.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_test.c')
-rw-r--r-- | src/vnet/session/session_test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/session/session_test.c b/src/vnet/session/session_test.c index 248b4d73fa8..c12041a2ee6 100644 --- a/src/vnet/session/session_test.c +++ b/src/vnet/session/session_test.c @@ -1375,7 +1375,7 @@ session_test_proxy (vlib_main_t * vm, unformat_input_t * input) u32 server_index, app_index; u32 dummy_server_api_index = ~0, sw_if_index = 0; clib_error_t *error = 0; - u8 sst, is_filtered = 0; + u8 is_filtered = 0; stream_session_t *s; transport_connection_t *tc; u16 lcl_port = 1234, rmt_port = 4321; @@ -1454,8 +1454,7 @@ session_test_proxy (vlib_main_t * vm, unformat_input_t * input) TRANSPORT_PROTO_TCP, 0, &is_filtered); SESSION_TEST ((tc != 0), "lookup 1.2.3.4 1234 5.6.7.8 4321 should be " "successful"); - sst = session_type_from_proto_and_ip (TRANSPORT_PROTO_TCP, 1); - s = listen_session_get (sst, tc->s_index); + s = listen_session_get (tc->s_index); SESSION_TEST ((s->app_index == server_index), "lookup should return the" " server"); |