Lines Matching full:fprintf
60 fprintf(stderr, "Usage: ip route { list | flush } SELECTOR\n");
61 fprintf(stderr, " ip route save SELECTOR\n");
62 fprintf(stderr, " ip route restore\n");
63 fprintf(stderr, " ip route get ADDRESS [ from ADDRESS iif STRING ]\n");
64 fprintf(stderr, " [ oif STRING ] [ tos TOS ]\n");
65 fprintf(stderr, " [ mark NUMBER ]\n");
66 fprintf(stderr, " ip route { add | del | change | append | replace } ROUTE\n");
67 fprintf(stderr, "SELECTOR := [ root PREFIX ] [ match PREFIX ] [ exact PREFIX ]\n");
68 fprintf(stderr, " [ table TABLE_ID ] [ proto RTPROTO ]\n");
69 fprintf(stderr, " [ type TYPE ] [ scope SCOPE ]\n");
70 fprintf(stderr, "ROUTE := NODE_SPEC [ INFO_SPEC ]\n");
71 fprintf(stderr, "NODE_SPEC := [ TYPE ] PREFIX [ tos TOS ]\n");
72 fprintf(stderr, " [ table TABLE_ID ] [ proto RTPROTO ]\n");
73 fprintf(stderr, " [ scope SCOPE ] [ metric METRIC ]\n");
74 fprintf(stderr, "INFO_SPEC := NH OPTIONS FLAGS [ nexthop NH ]...\n");
75 fprintf(stderr, "NH := [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS\n");
76 fprintf(stderr, "OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ]\n");
77 fprintf(stderr, " [ rtt TIME ] [ rttvar TIME ] [reordering NUMBER ]\n");
78 fprintf(stderr, " [ window NUMBER] [ cwnd NUMBER ] [ initcwnd NUMBER ]\n");
79 fprintf(stderr, " [ ssthresh NUMBER ] [ realms REALM ] [ src ADDRESS ]\n");
80 fprintf(stderr, " [ rto_min TIME ] [ hoplimit NUMBER ] [ initrwnd NUMBER ]\n");
81 fprintf(stderr, "TYPE := [ unicast | local | broadcast | multicast | throw |\n");
82 fprintf(stderr, " unreachable | prohibit | blackhole | nat ]\n");
83 fprintf(stderr, "TABLE_ID := [ local | main | default | all | NUMBER ]\n");
84 fprintf(stderr, "SCOPE := [ host | link | global | NUMBER ]\n");
85 fprintf(stderr, "MP_ALGO := { rr | drr | random | wrandom }\n");
86 fprintf(stderr, "NHFLAGS := [ onlink | pervasive ]\n");
87 fprintf(stderr, "RTPROTO := [ kernel | boot | static | NUMBER ]\n");
88 fprintf(stderr, "TIME := NUMBER[s|ms]\n");
293 fprintf(stderr, "Not a route: %08x %08x %08x\n",
301 fprintf(stderr, "BUG: wrong nlmsg len %d\n", len);
331 fprintf(fp, "Deleted ");
333 fprintf(fp, "%s ", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1)));
337 fprintf(fp, "%s/%u ", rt_addr_n2a(r->rtm_family,
344 fprintf(fp, "%s ", format_host(r->rtm_family,
351 fprintf(fp, "0/%d ", r->rtm_dst_len);
353 fprintf(fp, "default ");
357 fprintf(fp, "from %s/%u ", rt_addr_n2a(r->rtm_family,
364 fprintf(fp, "from %s ", format_host(r->rtm_family,
371 fprintf(fp, "from 0/%u ", r->rtm_src_len);
375 fprintf(fp, "tos %s ", rtnl_dsfield_n2a(r->rtm_tos, b1, sizeof(b1)));
379 fprintf(fp, "via %s ",
386 fprintf(fp, "dev %s ", ll_index_to_name(*(int*)RTA_DATA(tb[RTA_OIF])));
390 fprintf(fp, " table %s ", rtnl_rttable_n2a(table, b1, sizeof(b1)));
392 fprintf(fp, " proto %s ", rtnl_rtprot_n2a(r->rtm_protocol, b1, sizeof(b1)));
394 fprintf(fp, " scope %s ", rtnl_rtscope_n2a(r->rtm_scope, b1, sizeof(b1)));
400 fprintf(fp, " src %s ",
407 fprintf(fp, " metric %u ", rta_getattr_u32(tb[RTA_PRIORITY]));
409 fprintf(fp, "dead ");
411 fprintf(fp, "onlink ");
413 fprintf(fp, "pervasive ");
415 fprintf(fp, "notify ");
420 fprintf(fp, " mark 0x%x", mark);
422 fprintf(fp, " mark %u", mark);
430 fprintf(fp, "realm%s ", from ? "s" : "");
432 fprintf(fp, "%s/",
435 fprintf(fp, "%s ",
442 fprintf(fp, "%s cache ", _SL_);
446 fprintf(fp, "%s" flname "%s", first ? "<" : "", flags ? "," : "> "); \
464 fprintf(fp, "%s%x> ", first ? "<" : "", flags);
470 fprintf(fp, " expires %dsec", ci->rta_expires/hz);
472 fprintf(fp, " error %d", ci->rta_error);
475 fprintf(fp, " users %d", ci->rta_clntref);
477 fprintf(fp, " used %d", ci->rta_used);
479 fprintf(fp, " age %dsec", ci->rta_lastuse/hz);
482 fprintf(fp, " ipid 0x%04x", ci->rta_id);
484 fprintf(fp, " ts 0x%x tsage %dsec",
495 fprintf(fp, "%s cache ", _SL_);
497 fprintf(fp, " expires %dsec", ci->rta_expires/hz);
499 fprintf(fp, " error %d", ci->rta_error);
502 fprintf(fp, " users %d", ci->rta_clntref);
504 fprintf(fp, " used %d", ci->rta_used);
506 fprintf(fp, " age %dsec", ci->rta_lastuse/hz);
510 fprintf(fp, " error %d", ci->rta_error);
530 fprintf(fp, " %s", mx_names[i]);
532 fprintf(fp, " metric %d", i);
534 fprintf(fp, " lock");
543 fprintf(fp, " %u", val);
555 fprintf(fp, " %gs", val/1e3);
557 fprintf(fp, " %ums", val);
562 fprintf(fp, " iif %s", ll_index_to_name(*(int*)RTA_DATA(tb[RTA_IIF])));
577 fprintf(fp, " Oifs:");
579 fprintf(fp, " ");
581 fprintf(fp, "%s\tnexthop", _SL_);
585 fprintf(fp, " via %s ",
595 fprintf(fp, " realm%s ", from ? "s" : "");
597 fprintf(fp, "%s/",
600 fprintf(fp, "%s",
605 fprintf(fp, " %s", ll_index_to_name(nh->rtnh_ifindex));
607 fprintf(fp, "(ttl>%d)", nh->rtnh_hops);
609 fprintf(fp, " dev %s", ll_index_to_name(nh->rtnh_ifindex));
610 fprintf(fp, " weight %d", nh->rtnh_hops+1);
613 fprintf(fp, " dead");
615 fprintf(fp, " onlink");
617 fprintf(fp, " pervasive");
622 fprintf(fp, "\n");
641 fprintf(stderr, "Cannot find device \"%s\"\n", *argv);
679 fprintf(stderr, "Error: \"nexthop\" or end of line is expected instead of \"%s\"\n", *argv);
683 fprintf(stderr, "Error: unexpected end of line after \"nexthop\"\n");
971 fprintf(stderr, "Cannot find device \"%s\"\n", d);
1052 fprintf (stderr, "Cannot open \"%s\"\n", ROUTE_FLUSH_PATH);
1059 fprintf (stderr, "Cannot flush routing cache\n");
1076 fprintf(stderr, "Not sending binary stream to stdout\n");
1089 fprintf(stderr, "Short write while saving nlmsg\n");
1113 fprintf(stderr, "\"ip route flush\" requires arguments.\n");
1250 fprintf(stderr, "Cannot find device \"%s\"\n", id);
1258 fprintf(stderr, "Cannot find device \"%s\"\n", od);
1293 fprintf(stderr, "Flush terminated\n");
1336 fprintf(stderr, "Dump terminated\n");
1426 fprintf(stderr, "need at least destination address\n");
1437 fprintf(stderr, "Cannot find device \"%s\"\n", idev);
1444 fprintf(stderr, "Cannot find device \"%s\"\n", odev);
1465 fprintf(stderr, "An error :-)\n");
1470 fprintf(stderr, "Not a route?\n");
1475 fprintf(stderr, "Wrong len %d\n", len);
1485 fprintf(stderr, "Failed to connect the route\n");
1502 fprintf(stderr, "An error :-)\n");
1575 fprintf(stderr, "Command \"%s\" is unknown, try \"ip route help\".\n", *argv);