X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=mon%2Fmon_common.c;h=a237b5d27c24f744027fe30347deca3c8f7c0d43;hp=440a27797f354315e348007a0cb294f409c67a52;hb=95a810bac93cd2745552abcc09aea31a40c0c6bc;hpb=733b18697117cbc63ab3d9e44510c9850916ec90 diff --git a/mon/mon_common.c b/mon/mon_common.c index 440a277..a237b5d 100644 --- a/mon/mon_common.c +++ b/mon/mon_common.c @@ -87,8 +87,8 @@ 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"; @@ -96,14 +96,26 @@ const char *mon_opt_type_to_string(MON_OPT_TYPE opt_type) case OPT_TYPE_SHOW_TID_REQ_COUNT: return "tid_req_count"; + case OPT_TYPE_SHOW_TID_REQ_ERR_COUNT: + return "tid_req_error_count"; + case OPT_TYPE_SHOW_TID_REQ_PENDING: return "tid_req_pending"; case OPT_TYPE_SHOW_ROUTES: return "routes"; + case OPT_TYPE_SHOW_PEERS: + return "peers"; + case OPT_TYPE_SHOW_COMMUNITIES: return "communities"; + + case OPT_TYPE_SHOW_REALMS: + return "realms"; + + case OPT_TYPE_SHOW_RP_CLIENTS: + return "rp_clients"; } return NULL; } @@ -118,12 +130,16 @@ 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); return_if_matches(s, OPT_TYPE_SHOW_TID_REQ_PENDING); return_if_matches(s, OPT_TYPE_SHOW_ROUTES); + return_if_matches(s, OPT_TYPE_SHOW_PEERS); return_if_matches(s, OPT_TYPE_SHOW_COMMUNITIES); + return_if_matches(s, OPT_TYPE_SHOW_REALMS); + return_if_matches(s, OPT_TYPE_SHOW_RP_CLIENTS); return OPT_TYPE_UNKNOWN; } #undef return_if_matches