diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2012-01-15 19:12:19 +0400 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-03-12 11:04:54 +0100 |
commit | 272ca1e33016b1cbf9c72038d5e631b0adb04dc9 (patch) | |
tree | 6728fe6847947d0ddf600bd22f4bf7f040da8274 /ospfd/ospf_packet.h | |
parent | a20a4060c8b90e3d88ce97d439eee1a38260d7c5 (diff) |
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
Diffstat (limited to 'ospfd/ospf_packet.h')
-rw-r--r-- | ospfd/ospf_packet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfd/ospf_packet.h b/ospfd/ospf_packet.h index 9a472081..2115f111 100644 --- a/ospfd/ospf_packet.h +++ b/ospfd/ospf_packet.h @@ -163,4 +163,7 @@ extern int ospf_ls_ack_timer (struct thread *); extern int ospf_poll_timer (struct thread *); extern int ospf_hello_reply_timer (struct thread *); +extern const struct message ospf_packet_type_str[]; +extern const size_t ospf_packet_type_str_max; + #endif /* _ZEBRA_OSPF_PACKET_H */ |