Lines Matching refs:fp
47 FILE *fp = (FILE*)arg;
67 fprintf(fp, "acquire ");
69 fprintf(fp, "proto %s ", strxf_xfrmproto(xacq->id.proto));
72 fprintf(fp, "spi 0x%08x", spi);
74 fprintf(fp, "(%u)", spi);
75 fprintf(fp, " ");
77 fprintf(fp, "%s", _SL_);
79 xfrm_selector_print(&xacq->sel, family, fp, " sel ");
81 xfrm_policy_info_print(&xacq->policy, tb, fp, " ", " policy ");
84 fprintf(fp, " seq 0x%08u ", xacq->seq);
86 fprintf(fp, "%s-mask %s ",
89 fprintf(fp, "%s-mask %s ",
92 fprintf(fp, "%s-mask %s",
96 fprintf(fp, "%s", _SL_);
99 fprintf(fp, "\n");
100 fflush(fp);
108 FILE *fp = (FILE*)arg;
119 fprintf(fp, "Flushed state ");
123 fprintf(fp, "proto %s", str);
125 fprintf(fp, "proto %u", xsf->proto);
126 fprintf(fp, "%s", _SL_);
129 fprintf(fp, "\n");
130 fflush(fp);
139 FILE *fp = (FILE*)arg;
148 fprintf(fp, "Flushed policy ");
155 fprintf(fp, "ptype ");
158 fprintf(fp, "(ERROR truncated)");
161 fprintf(fp, "%s ", strxf_ptype(upt->type));
164 fprintf(fp, "%s", _SL_);
167 fprintf(fp, "\n");
168 fflush(fp);
176 FILE *fp = (FILE*)arg;
192 fprintf(fp, "report ");
194 fprintf(fp, "proto %s ", strxf_xfrmproto(xrep->proto));
195 fprintf(fp, "%s", _SL_);
197 xfrm_selector_print(&xrep->sel, family, fp, " sel ");
201 xfrm_xfrma_print(tb, family, fp, " ");
204 fprintf(fp, "\n");
211 FILE *fp = (FILE*)arg;
212 fprintf(fp, " (0x%x) ", flags);
216 fprintf(fp, " replay update ");
218 fprintf(fp, " timer expired ");
220 fprintf(fp, " policy updated ");
227 FILE *fp = (FILE*)arg;
231 fprintf(fp, "Async event ");
233 fprintf(fp,"\n\t");
235 fprintf(fp, "src %s ", rt_addr_n2a(id->sa_id.family,
239 fprintf(fp, "dst %s ", rt_addr_n2a(id->sa_id.family,
242 fprintf(fp, " reqid 0x%x", id->reqid);
243 fprintf(fp, " protocol %s ", strxf_proto(id->sa_id.proto));
244 fprintf(fp, " SPI 0x%x", ntohl(id->sa_id.spi));
246 fprintf(fp, "\n");
247 fflush(fp);
255 FILE *fp = (FILE*)arg;
258 print_timestamp(fp);
294 fprintf(fp, "Unknown message: %08d 0x%08x 0x%08x\n",
360 FILE *fp;
361 fp = fopen(file, "r");
362 if (fp == NULL) {
366 return rtnl_from_file(fp, xfrm_accept_msg, (void*)stdout);