X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=mon%2Fmon_common.c;h=3ca8d16fa90ad6f123051e8ac75fc0bef621a8fa;hb=5a7cf32f21f604d4222fd4f34f46a1642e28a712;hp=b03afdabc6390eaa9c2a4ed9c7f19936601d3250;hpb=441f3e4e60d5b005508f05d8c7718728c425202b;p=trust_router.git diff --git a/mon/mon_common.c b/mon/mon_common.c index b03afda..3ca8d16 100644 --- a/mon/mon_common.c +++ b/mon/mon_common.c @@ -34,7 +34,7 @@ #include -#include +#include #include #include @@ -50,9 +50,6 @@ const char *mon_cmd_to_string(MON_CMD cmd) case MON_CMD_UNKNOWN: return NULL; - case MON_CMD_RECONFIGURE: - return "reconfigure"; - case MON_CMD_SHOW: return "show"; } @@ -68,7 +65,6 @@ const char *mon_cmd_to_string(MON_CMD cmd) MON_CMD mon_cmd_from_string(const char *s) { - return_if_matches(s, MON_CMD_RECONFIGURE); return_if_matches(s, MON_CMD_SHOW); return MON_CMD_UNKNOWN; } @@ -87,20 +83,20 @@ const char *mon_opt_type_to_string(MON_OPT_TYPE opt_type) case OPT_TYPE_SHOW_VERSION: return "version"; - case OPT_TYPE_SHOW_SERIAL: - return "serial"; + case OPT_TYPE_SHOW_CONFIG_FILES: + return "config_files"; case OPT_TYPE_SHOW_UPTIME: return "uptime"; case OPT_TYPE_SHOW_TID_REQ_COUNT: - return "tid_req_count"; + return "tid_reqs_processed"; case OPT_TYPE_SHOW_TID_REQ_ERR_COUNT: - return "tid_req_error_count"; + return "tid_error_count"; case OPT_TYPE_SHOW_TID_REQ_PENDING: - return "tid_req_pending"; + return "tid_reqs_pending"; case OPT_TYPE_SHOW_ROUTES: return "routes"; @@ -130,7 +126,7 @@ const char *mon_opt_type_to_string(MON_OPT_TYPE opt_type) MON_OPT_TYPE mon_opt_type_from_string(const char *s) { return_if_matches(s, OPT_TYPE_SHOW_VERSION); - return_if_matches(s, OPT_TYPE_SHOW_SERIAL); + return_if_matches(s, OPT_TYPE_SHOW_CONFIG_FILES); return_if_matches(s, OPT_TYPE_SHOW_UPTIME); return_if_matches(s, OPT_TYPE_SHOW_TID_REQ_COUNT); return_if_matches(s, OPT_TYPE_SHOW_TID_REQ_ERR_COUNT);