summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/transport.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-02-04 23:01:34 -0800
committerFlorin Coras <florin.coras@gmail.com>2019-02-05 19:35:55 +0000
commit4edc37eb90a74bcd1aad20d6447159c05853d23e (patch)
treeb12e5a35d4f03595a9f0f7e9e08caadefeb6eac5 /src/vnet/session/transport.c
parent2ff5b8decf35aa34b44ad3b57fab2ea93af107e7 (diff)
session: cleanup part 3
Aggregate session specific types, getters and setters under session_types.h Change-Id: Ib205337502654969d60c72d1800c90247e1a9068 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/transport.c')
-rw-r--r--src/vnet/session/transport.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/vnet/session/transport.c b/src/vnet/session/transport.c
index 0f86f9e916a..df5282cc43a 100644
--- a/src/vnet/session/transport.c
+++ b/src/vnet/session/transport.c
@@ -271,6 +271,19 @@ transport_protocol_tx_fn_type (transport_proto_t tp)
return tp_vfts[tp].tx_type;
}
+transport_connection_t *
+transport_get_connection (transport_proto_t tp, u32 conn_index,
+ u8 thread_index)
+{
+ return tp_vfts[tp].get_connection (conn_index, thread_index);
+}
+
+transport_connection_t *
+transport_get_listener (transport_proto_t tp, u32 conn_index)
+{
+ return tp_vfts[tp].get_listener (conn_index);
+}
+
u8
transport_protocol_is_cl (transport_proto_t tp)
{