X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fipsec%2Fipsec_itf.c;h=532d5be4c075ef39988eb8f9caee9f50bb932f67;hb=refs%2Fchanges%2F77%2F33877%2F4;hp=ae8e3427b1264ea37dff511f8d24e0dab3415bba;hpb=5606c82c7221feba47932bd958ce1d8d9a92ace9;p=vpp.git diff --git a/src/vnet/ipsec/ipsec_itf.c b/src/vnet/ipsec/ipsec_itf.c index ae8e3427b12..532d5be4c07 100644 --- a/src/vnet/ipsec/ipsec_itf.c +++ b/src/vnet/ipsec/ipsec_itf.c @@ -342,6 +342,18 @@ ipsec_itf_delete (u32 sw_if_index) return 0; } +void +ipsec_itf_walk (ipsec_itf_walk_cb_t cb, void *ctx) +{ + ipsec_itf_t *itf; + + pool_foreach (itf, ipsec_itf_pool) + { + if (WALK_CONTINUE != cb (itf, ctx)) + break; + } +} + static clib_error_t * ipsec_itf_create_cli (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd)