Lines Matching refs:fprintf

41 	fprintf(stderr, "Usage: ip xfrm monitor [ all | LISTofXFRM-OBJECTS ]\n");  in usage()
56 fprintf(stderr, "BUG: wrong nlmsg len %d\n", len); in xfrm_acquire_print()
68 fprintf(fp, "acquire "); in xfrm_acquire_print()
70 fprintf(fp, "proto %s ", strxf_xfrmproto(xacq->id.proto)); in xfrm_acquire_print()
73 fprintf(fp, "spi 0x%08x", spi); in xfrm_acquire_print()
75 fprintf(fp, "(%u)", spi); in xfrm_acquire_print()
76 fprintf(fp, " "); in xfrm_acquire_print()
78 fprintf(fp, "%s", _SL_); in xfrm_acquire_print()
85 fprintf(fp, " seq 0x%08u ", xacq->seq); in xfrm_acquire_print()
87 fprintf(fp, "%s-mask %s ", in xfrm_acquire_print()
90 fprintf(fp, "%s-mask %s ", in xfrm_acquire_print()
93 fprintf(fp, "%s-mask %s", in xfrm_acquire_print()
97 fprintf(fp, "%s", _SL_); in xfrm_acquire_print()
100 fprintf(fp, "\n"); in xfrm_acquire_print()
116 fprintf(stderr, "BUG: wrong nlmsg len %d\n", len); in xfrm_state_flush_print()
120 fprintf(fp, "Flushed state "); in xfrm_state_flush_print()
124 fprintf(fp, "proto %s", str); in xfrm_state_flush_print()
126 fprintf(fp, "proto %u", xsf->proto); in xfrm_state_flush_print()
127 fprintf(fp, "%s", _SL_); in xfrm_state_flush_print()
130 fprintf(fp, "\n"); in xfrm_state_flush_print()
145 fprintf(stderr, "BUG: wrong nlmsg len %d\n", len); in xfrm_policy_flush_print()
149 fprintf(fp, "Flushed policy "); in xfrm_policy_flush_print()
156 fprintf(fp, "ptype "); in xfrm_policy_flush_print()
159 fprintf(fp, "(ERROR truncated)"); in xfrm_policy_flush_print()
162 fprintf(fp, "%s ", strxf_ptype(upt->type)); in xfrm_policy_flush_print()
165 fprintf(fp, "%s", _SL_); in xfrm_policy_flush_print()
168 fprintf(fp, "\n"); in xfrm_policy_flush_print()
185 fprintf(stderr, "BUG: wrong nlmsg len %d\n", len); in xfrm_report_print()
193 fprintf(fp, "report "); in xfrm_report_print()
195 fprintf(fp, "proto %s ", strxf_xfrmproto(xrep->proto)); in xfrm_report_print()
196 fprintf(fp, "%s", _SL_); in xfrm_report_print()
205 fprintf(fp, "\n"); in xfrm_report_print()
213 fprintf(fp, " (0x%x) ", flags); in xfrm_ae_flags_print()
217 fprintf(fp, " replay update "); in xfrm_ae_flags_print()
219 fprintf(fp, " timer expired "); in xfrm_ae_flags_print()
221 fprintf(fp, " policy updated "); in xfrm_ae_flags_print()
230 fprintf(fp, "dst %s ", rt_addr_n2a(sa_id->family, 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()
246 fprintf(fp, "Async event "); in xfrm_ae_print()
248 fprintf(fp,"\n\t"); in xfrm_ae_print()
250 fprintf(fp, "src %s ", rt_addr_n2a(id->sa_id.family, in xfrm_ae_print()
256 fprintf(fp, "\n"); in xfrm_ae_print()
267 fprintf(fp, "%s", rt_addr_n2a(family, s, a, buf, sizeof(buf))); in xfrm_print_addr()
276 fprintf(fp, "Mapping change "); in xfrm_mapping_print()
280 fprintf(fp, ":%d -> ", ntohs(map->old_sport)); in xfrm_mapping_print()
283 fprintf(fp, ":%d\n\t", ntohs(map->new_sport)); in xfrm_mapping_print()
287 fprintf(fp, "\n"); in xfrm_mapping_print()
337 fprintf(fp, "Unknown message: %08d 0x%08x 0x%08x\n", in xfrm_accept_msg()
383 fprintf(stderr, "Argument \"%s\" is unknown, try \"ip xfrm monitor help\".\n", *argv); in do_xfrm_monitor()