diff options
author | Florin Coras <fcoras@cisco.com> | 2017-11-05 23:07:07 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-11-06 21:45:22 +0000 |
commit | c97a7398fc465c480a3ac66cf4b0f91a034ed564 (patch) | |
tree | 31467dcc219751cd89903e83b66c3315e31be947 /src/vnet/session/session_table.c | |
parent | a3d933c87f146df801aa3947c25b6f1b2538f847 (diff) |
session: add rule tags
Change-Id: Id5ebb410f509ac4c83d60e48efd54e00035e5ce6
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_table.c')
-rw-r--r-- | src/vnet/session/session_table.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/session/session_table.c b/src/vnet/session/session_table.c index f0bd338ec64..5d160a4b2dc 100644 --- a/src/vnet/session/session_table.c +++ b/src/vnet/session/session_table.c @@ -70,6 +70,7 @@ void session_table_init (session_table_t * slt, u8 fib_proto) { u8 all = fib_proto > FIB_PROTOCOL_IP6 ? 1 : 0; + int i; #define _(af,table,parm,value) \ u32 configured_##af##_##table##_table_##parm = value; @@ -101,7 +102,9 @@ session_table_init (session_table_t * slt, u8 fib_proto) configured_v6_halfopen_table_buckets, configured_v6_halfopen_table_memory); } - session_rules_table_init (&slt->session_rules); + + for (i = 0; i < TRANSPORT_N_PROTO; i++) + session_rules_table_init (&slt->session_rules[i]); } typedef struct _ip4_session_table_walk_ctx_t |