aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-03-07 01:20:52 -0800
committerJohn Lo <loj@cisco.com>2017-03-07 21:40:24 +0000
commita0b34a74a916eff88f9a8354c78a2cf9798c8578 (patch)
tree5ef5596d68570a5fa7691071ddd39f2f3275e52b /src/vnet/session/session.c
parentf7f2a9feaa2cad8313afba53b53c32f1928f664c (diff)
Register TCP with IP only if session is enabled
Change-Id: I73154179e78aeae5f879125237bce593d0978fae Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r--src/vnet/session/session.c5
1 files changed, 4 insertions, 1 deletions
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 <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 @@ 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)
{