+ if (do_listeners)
+ {
+ sst = session_type_from_proto_and_ip (transport_proto, 1);
+ vlib_cli_output (vm, "%-40s%-24s", "Listener", "App");
+ /* *INDENT-OFF* */
+ pool_foreach (s, smm->wrk[0].sessions, ({
+ if (s->session_state != SESSION_STATE_LISTENING
+ || s->session_type != sst)
+ continue;
+ app_wrk = app_worker_get (s->app_wrk_index);
+ app_name = application_name_from_index (app_wrk->app_index);
+ vlib_cli_output (vm, "%U%-25v%", format_stream_session, s, 1,
+ app_name);
+ }));
+ /* *INDENT-ON* */
+ return 0;
+ }
+
+ for (i = 0; i < vec_len (smm->wrk); i++)