Lines Matching refs:fprintf
55 fprintf(stderr, "Usage: ip route { list | flush } SELECTOR\n");
56 fprintf(stderr, " ip route get ADDRESS [ from ADDRESS iif STRING ]\n");
57 fprintf(stderr, " [ oif STRING ] [ tos TOS ]\n");
58 fprintf(stderr, " ip route { add | del | change | append | replace | monitor } ROUTE\n");
59 fprintf(stderr, "SELECTOR := [ root PREFIX ] [ match PREFIX ] [ exact PREFIX ]\n");
60 fprintf(stderr, " [ table TABLE_ID ] [ proto RTPROTO ]\n");
61 fprintf(stderr, " [ type TYPE ] [ scope SCOPE ]\n");
62 fprintf(stderr, "ROUTE := NODE_SPEC [ INFO_SPEC ]\n");
63 fprintf(stderr, "NODE_SPEC := [ TYPE ] PREFIX [ tos TOS ]\n");
64 fprintf(stderr, " [ table TABLE_ID ] [ proto RTPROTO ]\n");
65 fprintf(stderr, " [ scope SCOPE ] [ metric METRIC ]\n");
66 fprintf(stderr, "INFO_SPEC := NH OPTIONS FLAGS [ nexthop NH ]...\n");
67 fprintf(stderr, "NH := [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS\n");
68 fprintf(stderr, "OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ]\n");
69 fprintf(stderr, " [ rtt TIME ] [ rttvar TIME ] [reordering NUMBER ]\n");
70 fprintf(stderr, " [ window NUMBER] [ cwnd NUMBER ] [ initcwnd NUMBER ]\n");
71 fprintf(stderr, " [ ssthresh NUMBER ] [ realms REALM ] [ src ADDRESS ]\n");
72 fprintf(stderr, " [ rto_min TIME ] [ hoplimit NUMBER ] [ initrwnd NUMBER ]\n");
73 fprintf(stderr, "TYPE := [ unicast | local | broadcast | multicast | throw |\n");
74 fprintf(stderr, " unreachable | prohibit | blackhole | nat ]\n");
75 fprintf(stderr, "TABLE_ID := [ local | main | default | all | NUMBER ]\n");
76 fprintf(stderr, "SCOPE := [ host | link | global | NUMBER ]\n");
77 fprintf(stderr, "MP_ALGO := { rr | drr | random | wrandom }\n");
78 fprintf(stderr, "NHFLAGS := [ onlink | pervasive ]\n");
79 fprintf(stderr, "RTPROTO := [ kernel | boot | static | NUMBER ]\n");
80 fprintf(stderr, "TIME := NUMBER[s|ms|us|ns|j]\n");
136 fprintf(stderr, "Not a route: %08x %08x %08x\n",
144 fprintf(stderr, "BUG: wrong nlmsg len %d\n", len);
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");
602 fprintf(stderr, "Cannot find device \"%s\"\n", *argv);
640 fprintf(stderr, "Error: \"nexthop\" or end of line is expected instead of \"%s\"\n", *argv);
644 fprintf(stderr, "Error: unexpected end of line after \"nexthop\"\n");
942 fprintf(stderr, "Cannot find device \"%s\"\n", d);
1023 fprintf (stderr, "Cannot open \"%s\"\n", ROUTE_FLUSH_PATH);
1030 fprintf (stderr, "Cannot flush routing cache\n");
1049 fprintf(stderr, "\"ip route flush\" requires arguments.\n");
1182 fprintf(stderr, "Cannot find device \"%s\"\n", id);
1190 fprintf(stderr, "Cannot find device \"%s\"\n", od);
1224 fprintf(stderr, "Flush terminated\n");
1267 fprintf(stderr, "Dump terminated\n");
1352 fprintf(stderr, "need at least destination address\n");
1363 fprintf(stderr, "Cannot find device \"%s\"\n", idev);
1370 fprintf(stderr, "Cannot find device \"%s\"\n", odev);
1389 fprintf(stderr, "An error :-)\n");
1394 fprintf(stderr, "Not a route?\n");
1399 fprintf(stderr, "Wrong len %d\n", len);
1409 fprintf(stderr, "Failed to connect the route\n");
1426 fprintf(stderr, "An error :-)\n");
1475 fprintf(stderr, "Command \"%s\" is unknown, try \"ip route help\".\n", *argv);