summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_message.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-02 11:18:32 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-02 11:18:32 -0700
commit6a57c45bef829c637fe0dcb2f23bb88a2241f35a (patch)
treea8ee8c8833db74fddb92bab1f0791243a602c901 /ospf6d/ospf6_message.c
parent2fa1fd76a2d270c0a4a96c8dd382a901e7ec81c5 (diff)
downloadquagga-6a57c45bef829c637fe0dcb2f23bb88a2241f35a.tar.bz2
quagga-6a57c45bef829c637fe0dcb2f23bb88a2241f35a.tar.xz
Add show ospf6 debuggging
Implement new ospf6 debugging command Bug 4188
Diffstat (limited to 'ospf6d/ospf6_message.c')
-rw-r--r--ospf6d/ospf6_message.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c
index c257092a..176e2244 100644
--- a/ospf6d/ospf6_message.c
+++ b/ospf6d/ospf6_message.c
@@ -2057,11 +2057,11 @@ ALIAS (no_debug_ospf6_message,
"Debug only receiving message\n"
)
+const char *ospf6_packet_type_str[] = {"unknown", "hello", "dbdesc",
+ "lsreq", "lsupdate", "lsack"};
int
config_write_ospf6_debug_message (struct vty *vty)
{
- const char *type_str[] = {"unknown", "hello", "dbdesc",
- "lsreq", "lsupdate", "lsack"};
unsigned char s = 0, r = 0;
int i;
@@ -2103,13 +2103,14 @@ config_write_ospf6_debug_message (struct vty *vty)
{
if (IS_OSPF6_DEBUG_MESSAGE (i, SEND) &&
IS_OSPF6_DEBUG_MESSAGE (i, RECV))
- vty_out (vty, "debug ospf6 message %s%s", type_str[i], VNL);
+ vty_out (vty, "debug ospf6 message %s%s",
+ ospf6_packet_type_str[i], VNL);
else if (IS_OSPF6_DEBUG_MESSAGE (i, SEND))
- vty_out (vty, "debug ospf6 message %s send%s", type_str[i],
- VNL);
+ vty_out (vty, "debug ospf6 message %s send%s",
+ ospf6_packet_type_str[i], VNL);
else if (IS_OSPF6_DEBUG_MESSAGE (i, RECV))
- vty_out (vty, "debug ospf6 message %s recv%s", type_str[i],
- VNL);
+ vty_out (vty, "debug ospf6 message %s recv%s",
+ ospf6_packet_type_str[i], VNL);
}
return 0;