Lines Matching defs:ofd
34 static void print_header_content(FILE *ofd, struct nlmsghdr *n)
39 fprintf(ofd, "type=%s length=%u flags=<%s> sequence-nr=%u pid=%u",
47 FILE *ofd = arg ? arg : stdout;
49 fprintf(ofd, "-- Warning: unhandled valid message: ");
50 print_header_content(ofd, nlmsg_hdr(msg));
51 fprintf(ofd, "\n");
58 FILE *ofd = arg ? arg : stderr;
60 fprintf(ofd, "-- Error: Invalid message: ");
61 print_header_content(ofd, nlmsg_hdr(msg));
62 fprintf(ofd, "\n");
69 FILE *ofd = arg ? arg : stderr;
71 fprintf(ofd, "-- Error: Netlink Overrun: ");
72 print_header_content(ofd, nlmsg_hdr(msg));
73 fprintf(ofd, "\n");
81 FILE *ofd = arg ? arg : stderr;
84 fprintf(ofd, "-- Error received: %s\n-- Original message: ",
86 print_header_content(ofd, &e->msg);
87 fprintf(ofd, "\n");
94 FILE *ofd = arg ? arg : stderr;
96 fprintf(ofd, "-- Debug: Unhandled Valid message: ");
97 print_header_content(ofd, nlmsg_hdr(msg));
98 fprintf(ofd, "\n");
105 FILE *ofd = arg ? arg : stderr;
107 fprintf(ofd, "-- Debug: End of multipart message block: ");
108 print_header_content(ofd, nlmsg_hdr(msg));
109 fprintf(ofd, "\n");
116 FILE *ofd = arg ? arg : stderr;
118 fprintf(ofd, "-- Debug: Received Message:\n");
119 nl_msg_dump(msg, ofd);
126 FILE *ofd = arg ? arg : stderr;
128 fprintf(ofd, "-- Debug: Sent Message:\n");
129 nl_msg_dump(msg, ofd);
136 FILE *ofd = arg ? arg : stderr;
138 fprintf(ofd, "-- Debug: Skipped message: ");
139 print_header_content(ofd, nlmsg_hdr(msg));
140 fprintf(ofd, "\n");
147 FILE *ofd = arg ? arg : stderr;
149 fprintf(ofd, "-- Debug: ACK: ");
150 print_header_content(ofd, nlmsg_hdr(msg));
151 fprintf(ofd, "\n");