Register TCP with IP only if session is enabled
Change-Id: I73154179e78aeae5f879125237bce593d0978fae
Signed-off-by: Florin Coras <fcoras@cisco.com>
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 422527e..b5a168c 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -22,6 +22,7 @@
#include <vnet/dpo/load_balance.h>
#include <vnet/fib/ip4_fib.h>
#include <vnet/session/application.h>
+#include <vnet/tcp/tcp.h>
/**
* Per-type vector of transport protocol virtual function tables
@@ -1287,6 +1288,9 @@
smm->is_enabled = 1;
+ /* Enable TCP transport */
+ vnet_tcp_enable_disable (vm, 1);
+
return 0;
}
@@ -1313,7 +1317,6 @@
return 0;
}
-
clib_error_t *
session_manager_main_init (vlib_main_t * vm)
{