Home | History | Annotate | Download | only in ip

Lines Matching refs:fp

48 	FILE *fp = (FILE*)arg;
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 ", rta_getattr_str(tb[FRA_IFNAME]));
146 fprintf(fp, "[detached] ");
150 fprintf(fp, "oif %s ", rta_getattr_str(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", rta_getattr_u32(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");
194 fflush(fp);