diff options
author | Matus Fabian <matfabia@cisco.com> | 2018-08-08 05:52:47 -0700 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-08-09 11:59:19 +0000 |
commit | 68ba8807922f252a30991c294757bf818fd93f94 (patch) | |
tree | 159aa8cca51c41e36a5ebaa791d3f7b586a5f08d /src/plugins/nat/nat_api.c | |
parent | 85a2555f0c07bd07ae3344be1a1ada340bf8dc88 (diff) |
NAT44: delete user with zero sessions (VPP-1282)
Change-Id: I756e3ad3de9ffe1494221ef95c1943c8591f8f50
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat_api.c')
-rw-r--r-- | src/plugins/nat/nat_api.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/nat/nat_api.c b/src/plugins/nat/nat_api.c index 5887efe5fea..d467861d94c 100644 --- a/src/plugins/nat/nat_api.c +++ b/src/plugins/nat/nat_api.c @@ -1195,8 +1195,12 @@ vl_api_nat44_user_dump_t_handler (vl_api_nat44_user_dump_t * mp) /* *INDENT-OFF* */ vec_foreach (tsm, sm->per_thread_data) - vec_foreach (u, tsm->users) - send_nat44_user_details (u, reg, mp->context); + { + pool_foreach (u, tsm->users, + ({ + send_nat44_user_details (u, reg, mp->context); + })); + } /* *INDENT-ON* */ } |