]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: use LOOKUP() for ospf_packet_type_str
authorDenis Ovsienko <infrastation@yandex.ru>
Sun, 15 Jan 2012 15:12:19 +0000 (19:12 +0400)
committerDavid Lamparter <equinox@diac24.net>
Mon, 12 Mar 2012 10:04:54 +0000 (11:04 +0100)
commit272ca1e33016b1cbf9c72038d5e631b0adb04dc9
tree6728fe6847947d0ddf600bd22f4bf7f040da8274
parenta20a4060c8b90e3d88ce97d439eee1a38260d7c5
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.c
ospfd/ospf_dump.h
ospfd/ospf_packet.c
ospfd/ospf_packet.h