Home | History | Annotate | Download | only in genl

Lines Matching refs:fp

115 void print_ctrl_cmd_flags(FILE *fp, __u32 fl)
117 fprintf(fp, "\n\t\tCapabilities (0x%x):\n ", fl);
119 fprintf(fp, "\n");
122 fprintf(fp, "\t\t ");
125 fprintf(fp, " requires admin permission;");
127 fprintf(fp, " can doit;");
129 fprintf(fp, " can dumpit;");
131 fprintf(fp, " has policy");
133 fprintf(fp, "\n");
136 static int print_ctrl_cmds(FILE *fp, struct rtattr *arg, __u32 ctrl_ver)
146 fprintf(fp, " ID-0x%x ",*id);
151 print_ctrl_cmd_flags(fp, *fl);
157 static int print_ctrl_grp(FILE *fp, struct rtattr *arg, __u32 ctrl_ver)
167 fprintf(fp, " ID-0x%x ",*id);
171 fprintf(fp, " name: %s ", name);
187 FILE *fp = (FILE *) arg;
217 fprintf(fp, "\nName: %s\n",name);
221 fprintf(fp, "\tID: 0x%x ",*id);
225 fprintf(fp, " Version: 0x%x ",*v);
230 fprintf(fp, " header size: %d ",*h);
234 fprintf(fp, " max attribs: %d ",*ma);
237 fprintf(fp,"\n");
242 fprintf(fp, "\tcommands supported: \n");
245 fprintf(fp, "\t\t#%d: ", i);
246 if (0 > print_ctrl_cmds(fp, tb2[i], ctrl_v)) {
247 fprintf(fp, "Error printing command\n");
250 fprintf(fp,"\n");
255 fprintf(fp,"\n");
264 fprintf(fp, "\tmulticast groups:\n");
268 fprintf(fp, "\t\t#%d: ", i);
269 if (0 > print_ctrl_grp(fp, tb2[i], ctrl_v))
270 fprintf(fp, "Error printing group\n");
272 fprintf(fp,"\n");
277 fprintf(fp,"\n");
280 fflush(fp);