Home | History | Annotate | Download | only in ip

Lines Matching defs:fp

52 	FILE *fp = (FILE*)arg;
73 fprintf(fp, "Deleted ");
76 fprintf(fp, "%u:\t", *(unsigned*)RTA_DATA(tb[FRA_PRIORITY]));
78 fprintf(fp, "0:\t");
81 fprintf(fp, "not ");
85 fprintf(fp, "from %s/%u ", rt_addr_n2a(r->rtm_family,
92 fprintf(fp, "from %s ", format_host(r->rtm_family,
99 fprintf(fp, "from 0/%d ", r->rtm_src_len);
101 fprintf(fp, "from all ");
106 fprintf(fp, "to %s/%u ", rt_addr_n2a(r->rtm_family,
113 fprintf(fp, "to %s ", format_host(r->rtm_family,
119 fprintf(fp, "to 0/%d ", r->rtm_dst_len);
124 fprintf(fp, "tos %s ", rtnl_dsfield_n2a(r->rtm_tos, b1, sizeof(b1)));
135 fprintf(fp, "fwmark 0x%x/0x%x ", mark, mask);
137 fprintf(fp, "fwmark 0x%x ", mark);
141 fprintf(fp, "iif %s ", rta_getattr_str(tb[FRA_IFNAME]));
143 fprintf(fp, "[detached] ");
147 fprintf(fp, "oif %s ", rta_getattr_str(tb[FRA_OIFNAME]));
149 fprintf(fp, "[detached] ");
153 fprintf(fp, "uidrange ");
155 fprintf(fp, "%u", rta_getattr_u32(tb[FRA_UID_START]));
157 fprintf(fp, "???");
160 fprintf(fp, "-%u ", rta_getattr_u32(tb[FRA_UID_END]));
162 fprintf(fp, "-??? ");
167 fprintf(fp, "lookup %s ", rtnl_rttable_n2a(table, b1, sizeof(b1)));
172 fprintf(fp, "suppress_prefixlength %d ", pl);
179 fprintf(fp, "suppress_ifgroup %s ", rtnl_group_n2a(group, b1, sizeof(b1)));
189 fprintf(fp, "realms %s/",
192 fprintf(fp, "%s ",
198 fprintf(fp, "map-to %s ",
204 fprintf(fp, "masquerade");
206 fprintf(fp, "goto ");
208 fprintf(fp, "%u", rta_getattr_u32(tb[FRA_GOTO]));
210 fprintf(fp, "none");
212 fprintf(fp, " [unresolved]");
214 fprintf(fp, "nop");
216 fprintf(fp, "%s", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1)));
218 fprintf(fp, "\n");
219 fflush(fp);