X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=mon%2Fmon_common.c;h=d97c9435d6db6f80456938eef82c3f313d1c4452;hp=51979588f0086ab9b00d12c46648116273862279;hb=01415bbcacceae7f2fb1286fe8fe2665f4a755bf;hpb=97a234d0fe9ea93d522501162b9641d9346bdad4 diff --git a/mon/mon_common.c b/mon/mon_common.c index 5197958..d97c943 100644 --- a/mon/mon_common.c +++ b/mon/mon_common.c @@ -105,6 +105,9 @@ const char *mon_opt_type_to_string(MON_OPT_TYPE opt_type) case OPT_TYPE_SHOW_ROUTES: return "routes"; + case OPT_TYPE_SHOW_PEERS: + return "peers"; + case OPT_TYPE_SHOW_COMMUNITIES: return "communities"; } @@ -127,6 +130,7 @@ MON_OPT_TYPE mon_opt_type_from_string(const char *s) 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 OPT_TYPE_UNKNOWN; }