Lines Matching defs:fp
48 FILE *fp = (FILE*)arg;
68 fprintf(fp, "acquire ");
70 fprintf(fp, "proto %s ", strxf_xfrmproto(xacq->id.proto));
73 fprintf(fp, "spi 0x%08x", spi);
75 fprintf(fp, "(%u)", spi);
76 fprintf(fp, " ");
78 fprintf(fp, "%s", _SL_);
80 xfrm_selector_print(&xacq->sel, family, fp, " sel ");
82 xfrm_policy_info_print(&xacq->policy, tb, fp, " ", " policy ");
85 fprintf(fp, " seq 0x%08u ", xacq->seq);
87 fprintf(fp, "%s-mask %s ",
90 fprintf(fp, "%s-mask %s ",
93 fprintf(fp, "%s-mask %s",
97 fprintf(fp, "%s", _SL_);
100 fprintf(fp, "\n");
101 fflush(fp);
109 FILE *fp = (FILE*)arg;
120 fprintf(fp, "Flushed state ");
124 fprintf(fp, "proto %s", str);
126 fprintf(fp, "proto %u", xsf->proto);
127 fprintf(fp, "%s", _SL_);
130 fprintf(fp, "\n");
131 fflush(fp);
140 FILE *fp = (FILE*)arg;
149 fprintf(fp, "Flushed policy ");
156 fprintf(fp, "ptype ");
159 fprintf(fp, "(ERROR truncated)");
162 fprintf(fp, "%s ", strxf_ptype(upt->type));
165 fprintf(fp, "%s", _SL_);
168 fprintf(fp, "\n");
169 fflush(fp);
177 FILE *fp = (FILE*)arg;
193 fprintf(fp, "report ");
195 fprintf(fp, "proto %s ", strxf_xfrmproto(xrep->proto));
196 fprintf(fp, "%s", _SL_);
198 xfrm_selector_print(&xrep->sel, family, fp, " sel ");
202 xfrm_xfrma_print(tb, family, fp, " ");
205 fprintf(fp, "\n");
212 FILE *fp = (FILE*)arg;
213 fprintf(fp, " (0x%x) ", flags);
217 fprintf(fp, " replay update ");
219 fprintf(fp, " timer expired ");
221 fprintf(fp, " policy updated ");
228 FILE *fp = (FILE*)arg;
232 fprintf(fp, "Async event ");
234 fprintf(fp,"\n\t");
236 fprintf(fp, "src %s ", rt_addr_n2a(id->sa_id.family,
240 fprintf(fp, "dst %s ", rt_addr_n2a(id->sa_id.family,
243 fprintf(fp, " reqid 0x%x", id->reqid);
244 fprintf(fp, " protocol %s ", strxf_proto(id->sa_id.proto));
245 fprintf(fp, " SPI 0x%x", ntohl(id->sa_id.spi));
247 fprintf(fp, "\n");
248 fflush(fp);
256 FILE *fp = (FILE*)arg;
259 print_timestamp(fp);
295 fprintf(fp, "Unknown message: %08d 0x%08x 0x%08x\n",
361 FILE *fp;
362 fp = fopen(file, "r");
363 if (fp == NULL) {
367 return rtnl_from_file(fp, xfrm_accept_msg, (void*)stdout);