Lines Matching defs:fp
30 static void print_link_flags(FILE *fp, unsigned flags)
32 fprintf(fp, "<");
34 fprintf(fp, "NO-CARRIER%s", flags ? "," : "");
38 fprintf(fp, #f "%s", flags ? "," : ""); }
59 fprintf(fp, "%x", flags);
60 fprintf(fp, "> ");
102 FILE *fp = arg;
128 fprintf(fp, "Deleted ");
130 fprintf(fp, "%d: %s ", ifi->ifi_index,
134 print_operstate(fp, rta_getattr_u8(tb[IFLA_OPERSTATE]));
140 fprintf(fp, "@NONE: ");
142 fprintf(fp, "@%s: ",
145 fprintf(fp, ": ");
147 print_link_flags(fp, ifi->ifi_flags);
150 fprintf(fp, "mtu %u ", rta_getattr_u32(tb[IFLA_MTU]));
153 fprintf(fp, "master %s ",
164 print_portstate(fp,
167 fprintf(fp, "priority %hu ",
170 fprintf(fp, "cost %u ",
174 fprintf(fp, "%s ", _SL_);
177 print_onoff(fp, "hairpin",
180 print_onoff(fp, "guard",
183 print_onoff(fp, "root_block",
186 print_onoff(fp, "fastleave",
189 print_onoff(fp, "learning",
192 print_onoff(fp, "learning_sync",
195 print_onoff(fp, "flood",
199 print_portstate(fp, rta_getattr_u8(tb[IFLA_PROTINFO]));
211 print_hwmode(fp, rta_getattr_u16(aftb[IFLA_BRIDGE_MODE]));
214 fprintf(fp, "\n");
215 fflush(fp);