diff options
author | Aloys Augustin <aloaugus@cisco.com> | 2019-03-25 11:29:17 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-03-25 15:07:22 +0000 |
commit | 20ab31e8f6d96e95d0f921a7c8a7680d4f46790a (patch) | |
tree | 1196e2b29a9fbcbdac85e5e28526ff42b3476d54 /src | |
parent | 75f9fb6c16a749d80a1ae020d6cf7f2b222f757c (diff) |
UDP: Fix session registration in lookup table
This fixes a bug where packets could be sent but not received when opening an UDP connection.
Change-Id: I0993dd806b277374232d551167970ab13a62dbf9
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/session/session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index cd8da50a5c9..e51b138968e 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -880,6 +880,7 @@ session_open_cl (u32 app_wrk_index, session_endpoint_t * rmt, u32 opaque) transport_connection_t *tc; transport_endpoint_cfg_t *tep; app_worker_t *app_wrk; + session_handle_t sh; session_t *s; int rv; @@ -904,6 +905,9 @@ session_open_cl (u32 app_wrk_index, session_endpoint_t * rmt, u32 opaque) return -1; } + sh = session_handle (s); + session_lookup_add_connection (tc, sh); + return app_worker_connect_notify (app_wrk, s, opaque); } |