Lines Matching defs:fp
120 FILE *fp = (FILE*)arg;
295 fprintf(fp, "Deleted ");
297 fprintf(fp, "%s ", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1)));
301 fprintf(fp, "%s/%u ", rt_addr_n2a(r->rtm_family,
308 fprintf(fp, "%s ", format_host(r->rtm_family,
315 fprintf(fp, "0/%d ", r->rtm_dst_len);
317 fprintf(fp, "default ");
321 fprintf(fp, "from %s/%u ", rt_addr_n2a(r->rtm_family,
328 fprintf(fp, "from %s ", format_host(r->rtm_family,
335 fprintf(fp, "from 0/%u ", r->rtm_src_len);
339 fprintf(fp, "tos %s ", rtnl_dsfield_n2a(r->rtm_tos, b1, sizeof(b1)));
343 fprintf(fp, "via %s ",
350 fprintf(fp, "dev %s ", ll_index_to_name(*(int*)RTA_DATA(tb[RTA_OIF])));
354 fprintf(fp, " table %s ", rtnl_rttable_n2a(table, b1, sizeof(b1)));
356 fprintf(fp, " proto %s ", rtnl_rtprot_n2a(r->rtm_protocol, b1, sizeof(b1)));
358 fprintf(fp, " scope %s ", rtnl_rtscope_n2a(r->rtm_scope, b1, sizeof(b1)));
364 fprintf(fp, " src %s ",
371 fprintf(fp, " metric %d ", *(__u32*)RTA_DATA(tb[RTA_PRIORITY]));
373 fprintf(fp, "dead ");
375 fprintf(fp, "onlink ");
377 fprintf(fp, "pervasive ");
379 fprintf(fp, "notify ");
385 fprintf(fp, "realm%s ", from ? "s" : "");
387 fprintf(fp, "%s/",
390 fprintf(fp, "%s ",
397 fprintf(fp, "%s cache ", _SL_);
401 fprintf(fp, "%s" flname "%s", first ? "<" : "", flags ? "," : "> "); \
419 fprintf(fp, "%s%x> ", first ? "<" : "", flags);
425 fprintf(fp, " expires %dsec", ci->rta_expires/hz);
427 fprintf(fp, " error %d", ci->rta_error);
430 fprintf(fp, " users %d", ci->rta_clntref);
432 fprintf(fp, " used %d", ci->rta_used);
434 fprintf(fp, " age %dsec", ci->rta_lastuse/hz);
438 fprintf(fp, " ipid 0x%04x", ci->rta_id);
440 fprintf(fp, " ts 0x%x tsage %dsec", ci->rta_ts, ci->rta_tsage);
451 fprintf(fp, "%s cache ", _SL_);
453 fprintf(fp, " expires %dsec", ci->rta_expires/hz);
455 fprintf(fp, " error %d", ci->rta_error);
458 fprintf(fp, " users %d", ci->rta_clntref);
460 fprintf(fp, " used %d", ci->rta_used);
462 fprintf(fp, " age %dsec", ci->rta_lastuse/hz);
466 fprintf(fp, " error %d", ci->rta_error);
488 fprintf(fp, " %s", mx_names[i]);
490 fprintf(fp, " metric %d", i);
492 fprintf(fp, " lock");
501 fprintf(fp, " %u", val);
514 fprintf(fp, " %llums",
517 fprintf(fp, " %.2fms",
523 fprintf(fp, " iif %s", ll_index_to_name(*(int*)RTA_DATA(tb[RTA_IIF])));
538 fprintf(fp, " Oifs:");
540 fprintf(fp, " ");
542 fprintf(fp, "%s\tnexthop", _SL_);
546 fprintf(fp, " via %s ",
556 fprintf(fp, " realm%s ", from ? "s" : "");
558 fprintf(fp, "%s/",
561 fprintf(fp, "%s",
566 fprintf(fp, " %s", ll_index_to_name(nh->rtnh_ifindex));
568 fprintf(fp, "(ttl>%d)", nh->rtnh_hops);
570 fprintf(fp, " dev %s", ll_index_to_name(nh->rtnh_ifindex));
571 fprintf(fp, " weight %d", nh->rtnh_hops+1);
574 fprintf(fp, " dead");
576 fprintf(fp, " onlink");
578 fprintf(fp, " pervasive");
583 fprintf(fp, "\n");
584 fflush(fp);