]> git.puffer.fish Git - mirror/frr.git/commit
[lib] Add string mapping table for Zserv commands
authorPaul Jakma <paul.jakma@sun.com>
Mon, 15 May 2006 16:56:51 +0000 (16:56 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Mon, 15 May 2006 16:56:51 +0000 (16:56 +0000)
commitd6d672aaf930661f502a623d18d7a4abb4f184f2
treefc85e80d1a268dfc420ab5f4f6a306b8e246fc46
parentd16e04335968ea05fda60cec01b48df8c345a8ce
[lib] Add string mapping table for Zserv commands

2006-05-15 Paul Jakma <paul.jakma@sun.com>

* log.c: (general) Generalise struct zebra_route_desc into
  struct zebra_desc_table and, similar to route_types, add a
  command_types table to describe Zserv protocol commands.
  (route_types[]) use a macro to use designated initialisers
  while avoiding tedious duplication.
  (zserv_command_string) lookup string from zebra_desc_table,
  similar to zebra_route_string
* zebra.h: Add declaration for zserv_command_string, adjust the
  comments to reflect zebra_desc_table.
lib/ChangeLog
lib/log.c
lib/zebra.h