From a0b34a74a916eff88f9a8354c78a2cf9798c8578 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 7 Mar 2017 01:20:52 -0800 Subject: Register TCP with IP only if session is enabled Change-Id: I73154179e78aeae5f879125237bce593d0978fae Signed-off-by: Florin Coras --- src/vnet/session/session.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vnet/session') diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index 422527e0..b5a168ca 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -22,6 +22,7 @@ #include #include #include +#include /** * Per-type vector of transport protocol virtual function tables @@ -1287,6 +1288,9 @@ session_manager_main_enable (vlib_main_t * vm) smm->is_enabled = 1; + /* Enable TCP transport */ + vnet_tcp_enable_disable (vm, 1); + return 0; } @@ -1313,7 +1317,6 @@ vnet_session_enable_disable (vlib_main_t * vm, u8 is_en) return 0; } - clib_error_t * session_manager_main_init (vlib_main_t * vm) { -- cgit 1.2.3-korg