From 258905caafadcd6361baaafc4df143d38d576422 Mon Sep 17 00:00:00 2001 From: claudio Date: Sat, 24 Oct 2015 08:06:45 +0000 Subject: [PATCH] Introduce msgtypenames to print bgp msg types (which will be used by bgpctl) --- usr.sbin/bgpd/log.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bgpd/log.h b/usr.sbin/bgpd/log.h index e70c98d204f..5b86548e8b5 100644 --- a/usr.sbin/bgpd/log.h +++ b/usr.sbin/bgpd/log.h @@ -1,4 +1,4 @@ -/* $OpenBSD: log.h,v 1.16 2015/10/11 19:25:06 phessler Exp $ */ +/* $OpenBSD: log.h,v 1.17 2015/10/24 08:06:45 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -26,6 +26,15 @@ static const char * const statenames[] = { "Established" }; +static const char * const msgtypenames[] = { + "NONE", + "OPEN", + "UPDATE", + "NOTIFICATION", + "KEEPALIVE", + "RREFRESH" +}; + static const char * const eventnames[] = { "None", "Start", -- 2.20.1