diff options
author | Florin Coras <fcoras@cisco.com> | 2019-03-06 10:44:38 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-03-07 00:47:42 +0000 |
commit | f940f8a40fc41d66a9ab5ea15c574120c49eb92b (patch) | |
tree | aa36c02d567a60d62e6255f872dc736aff2a7515 /src/vnet/session/application_local.c | |
parent | fe97da3203c64461f752e854faa97c69b8d225f4 (diff) |
session: use transport custom tx for app transports
Change-Id: I675f7090fa6b2ffdfb4ee748df858bfb7e39ce5a
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application_local.c')
-rw-r--r-- | src/vnet/session/application_local.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c index 745b202f580..5a3f738dd82 100644 --- a/src/vnet/session/application_local.c +++ b/src/vnet/session/application_local.c @@ -464,6 +464,15 @@ format_ct_connection_id (u8 * s, va_list * args) return s; } +static int +ct_custom_tx (void *session) +{ + session_t *s = (session_t *) session; + if (session_has_transport (s)) + return 0; + return ct_session_tx (s); +} + static u8 * format_ct_listener (u8 * s, va_list * args) { @@ -523,6 +532,7 @@ const static transport_proto_vft_t cut_thru_proto = { .connect = ct_session_connect, .close = ct_session_close, .get_connection = ct_session_get, + .custom_tx = ct_custom_tx, .tx_type = TRANSPORT_TX_INTERNAL, .service_type = TRANSPORT_SERVICE_APP, .format_listener = format_ct_listener, |