diff options
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r-- | ospfd/ospf_vty.c | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index c4abe7e1..2444dffc 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -3511,7 +3511,7 @@ show_lsa_summary (struct vty *vty, struct ospf_lsa *lsa, int self) return 0; } -const char *show_database_desc[] = +static const char *show_database_desc[] = { "unknown", "Router Link States", @@ -3529,10 +3529,7 @@ const char *show_database_desc[] = #endif /* HAVE_OPAQUE_LSA */ }; -#define SHOW_OSPF_COMMON_HEADER \ - "Link ID ADV Router Age Seq# CkSum" - -const char *show_database_header[] = +static const char *show_database_header[] = { "", "Link ID ADV Router Age Seq# CkSum Link count", @@ -3550,16 +3547,6 @@ const char *show_database_header[] = #endif /* HAVE_OPAQUE_LSA */ }; -const char *show_lsa_flags[] = -{ - "Self-originated", - "Checked", - "Received", - "Approved", - "Discard", - "Translated", -}; - static void show_ip_ospf_database_header (struct vty *vty, struct ospf_lsa *lsa) { @@ -3768,6 +3755,7 @@ show_as_external_lsa_detail (struct vty *vty, struct ospf_lsa *lsa) return 0; } +#if 0 /* N.B. This function currently seems to be unused. */ static int show_as_external_lsa_stdvty (struct ospf_lsa *lsa) @@ -3792,6 +3780,7 @@ show_as_external_lsa_stdvty (struct ospf_lsa *lsa) return 0; } +#endif /* Show AS-NSSA-LSA detail information. */ static int @@ -8073,7 +8062,7 @@ ospf_vty_show_init (void) /* ospfd's interface node. */ -struct cmd_node interface_node = +static struct cmd_node interface_node = { INTERFACE_NODE, "%s(config-if)# ", @@ -8184,13 +8173,6 @@ ospf_vty_if_init (void) install_element (INTERFACE_NODE, &no_ospf_transmit_delay_cmd); } -/* Zebra node structure. */ -struct cmd_node zebra_node = -{ - ZEBRA_NODE, - "%s(config-router)#", -}; - static void ospf_vty_zebra_init (void) { @@ -8283,7 +8265,7 @@ ospf_vty_zebra_init (void) #endif /* 0 */ } -struct cmd_node ospf_node = +static struct cmd_node ospf_node = { OSPF_NODE, "%s(config-router)# ", |