Lines Matching defs:fp
41 static void print_headers(FILE *fp, char *label, struct rtnl_ctrl_data *ctrl)
44 print_timestamp(fp);
48 fprintf(fp, "[nsid current]");
50 fprintf(fp, "[nsid %d]", ctrl->nsid);
54 fprintf(fp, "%s", label);
61 FILE *fp = (FILE*)arg;
77 print_headers(fp, "[MROUTE]", ctrl);
81 print_headers(fp, "[ROUTE]", ctrl);
89 print_headers(fp, "[LINK]", ctrl);
94 print_headers(fp, "[ADDR]", ctrl);
99 print_headers(fp, "[ADDRLABEL]", ctrl);
112 print_headers(fp, "[NEIGH]", ctrl);
117 print_headers(fp, "[PREFIX]", ctrl);
122 print_headers(fp, "[RULE]", ctrl);
127 print_headers(fp, "[NETCONF]", ctrl);
132 print_nlmsg_timestamp(fp, n);
136 print_headers(fp, "[NSID]", ctrl);
142 fprintf(fp, "Unknown message: type=0x%08x(%d) flags=0x%08x(%d)"
286 FILE *fp;
289 fp = fopen(file, "r");
290 if (fp == NULL) {
294 err = rtnl_from_file(fp, accept_msg, stdout);
295 fclose(fp);