• Home
  • Raw
  • Download

Lines Matching refs:fp

49 	FILE *fp = (FILE *)arg;  in xfrm_acquire_print()  local
69 fprintf(fp, "acquire "); in xfrm_acquire_print()
71 fprintf(fp, "proto %s ", strxf_xfrmproto(xacq->id.proto)); in xfrm_acquire_print()
75 fprintf(fp, "spi 0x%08x", spi); in xfrm_acquire_print()
77 fprintf(fp, "(%u)", spi); in xfrm_acquire_print()
78 fprintf(fp, " "); in xfrm_acquire_print()
80 fprintf(fp, "%s", _SL_); in xfrm_acquire_print()
82 xfrm_selector_print(&xacq->sel, family, fp, " sel "); in xfrm_acquire_print()
84 xfrm_policy_info_print(&xacq->policy, tb, fp, " ", " policy "); in xfrm_acquire_print()
87 fprintf(fp, " seq 0x%08u ", xacq->seq); in xfrm_acquire_print()
89 fprintf(fp, "%s-mask %s ", in xfrm_acquire_print()
92 fprintf(fp, "%s-mask %s ", in xfrm_acquire_print()
95 fprintf(fp, "%s-mask %s", in xfrm_acquire_print()
99 fprintf(fp, "%s", _SL_); in xfrm_acquire_print()
102 fprintf(fp, "\n"); in xfrm_acquire_print()
103 fflush(fp); in xfrm_acquire_print()
111 FILE *fp = (FILE *)arg; in xfrm_state_flush_print() local
122 fprintf(fp, "Flushed state "); in xfrm_state_flush_print()
126 fprintf(fp, "proto %s", str); in xfrm_state_flush_print()
128 fprintf(fp, "proto %u", xsf->proto); in xfrm_state_flush_print()
129 fprintf(fp, "%s", _SL_); in xfrm_state_flush_print()
132 fprintf(fp, "\n"); in xfrm_state_flush_print()
133 fflush(fp); in xfrm_state_flush_print()
142 FILE *fp = (FILE *)arg; in xfrm_policy_flush_print() local
151 fprintf(fp, "Flushed policy "); in xfrm_policy_flush_print()
158 fprintf(fp, "ptype "); in xfrm_policy_flush_print()
161 fprintf(fp, "(ERROR truncated)"); in xfrm_policy_flush_print()
164 fprintf(fp, "%s ", strxf_ptype(upt->type)); in xfrm_policy_flush_print()
167 fprintf(fp, "%s", _SL_); in xfrm_policy_flush_print()
170 fprintf(fp, "\n"); in xfrm_policy_flush_print()
171 fflush(fp); in xfrm_policy_flush_print()
179 FILE *fp = (FILE *)arg; in xfrm_report_print() local
195 fprintf(fp, "report "); in xfrm_report_print()
197 fprintf(fp, "proto %s ", strxf_xfrmproto(xrep->proto)); in xfrm_report_print()
198 fprintf(fp, "%s", _SL_); in xfrm_report_print()
200 xfrm_selector_print(&xrep->sel, family, fp, " sel "); in xfrm_report_print()
204 xfrm_xfrma_print(tb, family, fp, " "); in xfrm_report_print()
207 fprintf(fp, "\n"); in xfrm_report_print()
214 FILE *fp = (FILE *)arg; in xfrm_ae_flags_print() local
216 fprintf(fp, " (0x%x) ", flags); in xfrm_ae_flags_print()
220 fprintf(fp, " replay update "); in xfrm_ae_flags_print()
222 fprintf(fp, " timer expired "); in xfrm_ae_flags_print()
224 fprintf(fp, " policy updated "); in xfrm_ae_flags_print()
228 static void xfrm_usersa_print(const struct xfrm_usersa_id *sa_id, __u32 reqid, FILE *fp) in xfrm_usersa_print() argument
230 fprintf(fp, "dst %s ", in xfrm_usersa_print()
233 fprintf(fp, " reqid 0x%x", reqid); in xfrm_usersa_print()
235 fprintf(fp, " protocol %s ", strxf_proto(sa_id->proto)); in xfrm_usersa_print()
236 fprintf(fp, " SPI 0x%x", ntohl(sa_id->spi)); in xfrm_usersa_print()
242 FILE *fp = (FILE *)arg; in xfrm_ae_print() local
245 fprintf(fp, "Async event "); in xfrm_ae_print()
247 fprintf(fp, "\n\t"); in xfrm_ae_print()
248 fprintf(fp, "src %s ", rt_addr_n2a(id->sa_id.family, in xfrm_ae_print()
251 xfrm_usersa_print(&id->sa_id, id->reqid, fp); in xfrm_ae_print()
253 fprintf(fp, "\n"); in xfrm_ae_print()
254 fflush(fp); in xfrm_ae_print()
259 static void xfrm_print_addr(FILE *fp, int family, xfrm_address_t *a) in xfrm_print_addr() argument
261 fprintf(fp, "%s", rt_addr_n2a(family, sizeof(*a), a)); in xfrm_print_addr()
267 FILE *fp = (FILE *)arg; in xfrm_mapping_print() local
270 fprintf(fp, "Mapping change "); in xfrm_mapping_print()
271 xfrm_print_addr(fp, map->id.family, &map->old_saddr); in xfrm_mapping_print()
273 fprintf(fp, ":%d -> ", ntohs(map->old_sport)); in xfrm_mapping_print()
274 xfrm_print_addr(fp, map->id.family, &map->new_saddr); in xfrm_mapping_print()
275 fprintf(fp, ":%d\n\t", ntohs(map->new_sport)); in xfrm_mapping_print()
277 xfrm_usersa_print(&map->id, map->reqid, fp); in xfrm_mapping_print()
279 fprintf(fp, "\n"); in xfrm_mapping_print()
280 fflush(fp); in xfrm_mapping_print()
288 FILE *fp = (FILE *)arg; in xfrm_accept_msg() local
291 print_timestamp(fp); in xfrm_accept_msg()
295 fprintf(fp, "[nsid current]"); in xfrm_accept_msg()
297 fprintf(fp, "[nsid %d]", ctrl->nsid); in xfrm_accept_msg()
337 fprintf(fp, "Unknown message: %08d 0x%08x 0x%08x\n", in xfrm_accept_msg()
405 FILE *fp; in do_xfrm_monitor() local
408 fp = fopen(file, "r"); in do_xfrm_monitor()
409 if (fp == NULL) { in do_xfrm_monitor()
413 err = rtnl_from_file(fp, xfrm_accept_msg, stdout); in do_xfrm_monitor()
414 fclose(fp); in do_xfrm_monitor()