From 272ca1e33016b1cbf9c72038d5e631b0adb04dc9 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Sun, 15 Jan 2012 19:12:19 +0400 Subject: ospfd: use LOOKUP() for ospf_packet_type_str * ospf_packet.h: add proper str/max extern declarations * ospf_packet.c * ospf_packet_type_str: rewrite in "struct message", add max value * ospf_packet_add(): use LOOKUP() * ospf_write(): ditto * ospf_hello(): ditto * ospf_read(): ditto * ospf_dump.h: the declaration does not belong here * ospf_dump.c * ospf_header_dump(): use LOOKUP() * show_debugging_ospf(): ditto --- ospfd/ospf_dump.h | 1 - 1 file changed, 1 deletion(-) (limited to 'ospfd/ospf_dump.h') diff --git a/ospfd/ospf_dump.h b/ospfd/ospf_dump.h index fb813719..455214f5 100644 --- a/ospfd/ospf_dump.h +++ b/ospfd/ospf_dump.h @@ -121,7 +121,6 @@ extern unsigned long term_debug_ospf_zebra; extern unsigned long term_debug_ospf_nssa; /* Message Strings. */ -extern const char *ospf_packet_type_str[]; extern char *ospf_lsa_type_str[]; /* Prototypes. */ -- cgit v1.2.1 From ef1b78cbcd8ade0c5444f3ff9dd00a40e760ec92 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Sun, 26 Feb 2012 17:00:57 +0400 Subject: ospfd: introduce ospf_auth_type_str[] --- ospfd/ospf_dump.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ospfd/ospf_dump.h') diff --git a/ospfd/ospf_dump.h b/ospfd/ospf_dump.h index 455214f5..a2d5e8ba 100644 --- a/ospfd/ospf_dump.h +++ b/ospfd/ospf_dump.h @@ -122,6 +122,8 @@ extern unsigned long term_debug_ospf_nssa; /* Message Strings. */ extern char *ospf_lsa_type_str[]; +extern const struct message ospf_auth_type_str[]; +extern const size_t ospf_auth_type_str_max; /* Prototypes. */ extern const char *ospf_area_name_string (struct ospf_area *); -- cgit v1.2.1