summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session_table.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-03-13 04:44:51 +0000
committerFlorin Coras <florin.coras@gmail.com>2020-03-25 18:56:27 +0000
commit07063b8ea39b05d5d7bb00ad2a2363b11792c571 (patch)
tree2df1cd5b5df869c729f534f093dea664eb059f3a /src/vnet/session/session_table.c
parent4e783b9c901cf90e58c3f921bb17170ab23e540a (diff)
session: api to add new transport types
Type: feature Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: If4dee6dba1ea942daa921d566b35cdecdda680ee
Diffstat (limited to 'src/vnet/session/session_table.c')
-rw-r--r--src/vnet/session/session_table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/session_table.c b/src/vnet/session/session_table.c
index d619fa580d8..d0b576fda7b 100644
--- a/src/vnet/session/session_table.c
+++ b/src/vnet/session/session_table.c
@@ -129,7 +129,8 @@ session_table_init (session_table_t * slt, u8 fib_proto)
clib_bihash_init2_48_8 (a);
}
- for (i = 0; i < TRANSPORT_N_PROTO; i++)
+ vec_validate (slt->session_rules, TRANSPORT_N_PROTOS - 1);
+ for (i = 0; i < TRANSPORT_N_PROTOS; i++)
session_rules_table_init (&slt->session_rules[i]);
}