Introduce msgtypenames to print bgp msg types (which will be used by bgpctl)
authorclaudio <claudio@openbsd.org>
Sat, 24 Oct 2015 08:06:45 +0000 (08:06 +0000)
committerclaudio <claudio@openbsd.org>
Sat, 24 Oct 2015 08:06:45 +0000 (08:06 +0000)
usr.sbin/bgpd/log.h

index e70c98d..5b86548 100644 (file)
@@ -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 <henning@openbsd.org>
@@ -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",