-const char *egp_reasons[] = {
- "unspecified",
- "bad_EGP_header_format",
- "bad_EGP_data_field_format",
- "reachability_info_unavailable",
- "excessive_polling_rate",
- "no_response",
- "unsupported_version"
+static const struct tok egp_status_updown_str[] = {
+ { EGPS_INDET, "indeterminate" },
+ { EGPS_UP, "up" },
+ { EGPS_DOWN, "down" },
+ { 0, NULL }
+};
+
+static const struct tok egp_reasons_str[] = {
+ { EGPR_UNSPEC, "unspecified" },
+ { EGPR_BADHEAD, "bad_EGP_header_format" },
+ { EGPR_BADDATA, "bad_EGP_data_field_format" },
+ { EGPR_NOREACH, "reachability_info_unavailable" },
+ { EGPR_XSPOLL, "excessive_polling_rate" },
+ { EGPR_NORESP, "no_response" },
+ { EGPR_UVERSION, "unsupported_version" },
+ { 0, NULL }