X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mon%2Fmon_common.c;h=a237b5d27c24f744027fe30347deca3c8f7c0d43;hb=fc7fb82d2661d977e7bacb4ffe469f3857a06b63;hp=d97c9435d6db6f80456938eef82c3f313d1c4452;hpb=01415bbcacceae7f2fb1286fe8fe2665f4a755bf;p=trust_router.git diff --git a/mon/mon_common.c b/mon/mon_common.c index d97c943..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"; @@ -110,6 +110,12 @@ const char *mon_opt_type_to_string(MON_OPT_TYPE opt_type) 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; } @@ -124,7 +130,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); @@ -132,6 +138,8 @@ MON_OPT_TYPE mon_opt_type_from_string(const char *s) 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