Lines Matching refs:fprintf
35 fprintf(stderr, "Usage: ip rule [ list | add | del | flush ] SELECTOR ACTION\n");
36 fprintf(stderr, "SELECTOR := [ not ] [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK[/MASK] ]\n");
37 fprintf(stderr, " [ iif STRING ] [ oif STRING ] [ pref NUMBER ]\n");
38 fprintf(stderr, "ACTION := [ table TABLE_ID ]\n");
39 fprintf(stderr, " [ prohibit | reject | unreachable ]\n");
40 fprintf(stderr, " [ realms [SRCREALM/]DSTREALM ]\n");
41 fprintf(stderr, " [ goto NUMBER ]\n");
42 fprintf(stderr, "TABLE_ID := [ local | main | default | NUMBER ]\n");
76 fprintf(fp, "Deleted ");
79 fprintf(fp, "%u:\t", *(unsigned*)RTA_DATA(tb[FRA_PRIORITY]));
81 fprintf(fp, "0:\t");
84 fprintf(fp, "not ");
88 fprintf(fp, "from %s/%u ", rt_addr_n2a(r->rtm_family,
95 fprintf(fp, "from %s ", format_host(r->rtm_family,
102 fprintf(fp, "from 0/%d ", r->rtm_src_len);
104 fprintf(fp, "from all ");
109 fprintf(fp, "to %s/%u ", rt_addr_n2a(r->rtm_family,
116 fprintf(fp, "to %s ", format_host(r->rtm_family,
122 fprintf(fp, "to 0/%d ", r->rtm_dst_len);
127 fprintf(fp, "tos %s ", rtnl_dsfield_n2a(r->rtm_tos, b1, sizeof(b1)));
138 fprintf(fp, "fwmark 0x%x/0x%x ", mark, mask);
140 fprintf(fp, "fwmark 0x%x ", mark);
144 fprintf(fp, "iif %s ", (char*)RTA_DATA(tb[FRA_IFNAME]));
146 fprintf(fp, "[detached] ");
150 fprintf(fp, "oif %s ", (char*)RTA_DATA(tb[FRA_OIFNAME]));
152 fprintf(fp, "[detached] ");
157 fprintf(fp, "lookup %s ", rtnl_rttable_n2a(table, b1, sizeof(b1)));
164 fprintf(fp, "realms %s/",
167 fprintf(fp, "%s ",
173 fprintf(fp, "map-to %s ",
179 fprintf(fp, "masquerade");
181 fprintf(fp, "goto ");
183 fprintf(fp, "%u", *(__u32 *) RTA_DATA(tb[FRA_GOTO]));
185 fprintf(fp, "none");
187 fprintf(fp, " [unresolved]");
189 fprintf(fp, "nop");
191 fprintf(fp, "%s", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1)));
193 fprintf(fp, "\n");
206 fprintf(stderr, "\"ip rule show\" does not take any arguments.\n");
216 fprintf(stderr, "Dump terminated\n");
323 fprintf(stderr, "Warning: route NAT is deprecated\n");
402 fprintf(stderr, "\"ip rule flush\" does not allow arguments\n");
412 fprintf(stderr, "Flush terminated\n");
436 fprintf(stderr, "Command \"%s\" is unknown, try \"ip rule help\".\n", *argv);
454 fprintf(stderr, "Multicast rules are only supported for IPv4/IPv6, was: %i\n",