+static void print_rta_cacheinfo(FILE *fp, const struct rta_cacheinfo *ci)
+{
+ static int hz;
+
+ if (!hz)
+ hz = get_user_hz();
+ if (ci->rta_expires != 0)
+ fprintf(fp, "expires %dsec ", ci->rta_expires/hz);
+ if (ci->rta_error != 0)
+ fprintf(fp, "error %d ", ci->rta_error);
+ if (show_stats) {
+ if (ci->rta_clntref)
+ fprintf(fp, "users %d ", ci->rta_clntref);
+ if (ci->rta_used != 0)
+ fprintf(fp, "used %d ", ci->rta_used);
+ if (ci->rta_lastuse != 0)
+ fprintf(fp, "age %dsec ", ci->rta_lastuse/hz);
+ }
+ if (ci->rta_id)
+ fprintf(fp, "ipid 0x%04x ", ci->rta_id);
+ if (ci->rta_ts || ci->rta_tsage)
+ fprintf(fp, "ts 0x%x tsage %dsec ",
+ ci->rta_ts, ci->rta_tsage);
+}
+