summaryrefslogtreecommitdiff
path: root/lib/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filter.c')
-rw-r--r--lib/filter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/filter.c b/lib/filter.c
index 55bcdf4b..069919bb 100644
--- a/lib/filter.c
+++ b/lib/filter.c
@@ -27,6 +27,7 @@
#include "command.h"
#include "sockunion.h"
#include "buffer.h"
+#include "log.h"
struct filter_cisco
{
@@ -1580,6 +1581,11 @@ filter_show (struct vty *vty, const char *name, afi_t afi)
if (master == NULL)
return 0;
+ /* Print the name of the protocol */
+ if (zlog_default)
+ vty_out (vty, "%s:%s",
+ zlog_proto_names[zlog_default->protocol], VTY_NEWLINE);
+
for (access = master->num.head; access; access = access->next)
{
if (name && strcmp (access->name, name) != 0)