aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schultz <andreas.schultz@travelping.com>2020-03-20 09:39:59 +0100
committerFlorin Coras <florin.coras@gmail.com>2020-03-20 14:45:01 +0000
commit1a8c43778ffbeae4b9084328d07cbc440abb83b2 (patch)
treebd492be2bd941827090290ccf1fbe87c75917371 /src
parent62ad2aaff3810f4ec0f010700091c2f59fbfe466 (diff)
session: export session_alloc_for_connection
Type: refactor Signed-off-by: Andreas Schultz <andreas.schultz@travelping.com> Change-Id: I45c6f434065ab0ad8ada3184b5a875a32a1b3faa
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session.c2
-rw-r--r--src/vnet/session/session.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 8b268c00b64..bd69f752de4 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -283,7 +283,7 @@ session_delete (session_t * s)
session_free_w_fifos (s);
}
-static session_t *
+session_t *
session_alloc_for_connection (transport_connection_t * tc)
{
session_t *s;
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h
index 777984b519b..486c976cdf5 100644
--- a/src/vnet/session/session.h
+++ b/src/vnet/session/session.h
@@ -636,6 +636,8 @@ ssvm_private_t *session_main_get_evt_q_segment (void);
void session_node_enable_disable (u8 is_en);
clib_error_t *vnet_session_enable_disable (vlib_main_t * vm, u8 is_en);
+session_t *session_alloc_for_connection (transport_connection_t * tc);
+
#endif /* __included_session_h__ */
/*