Lines Matching refs:fprintf
64 fprintf(stderr, in usage()
293 fprintf(fp, "src %s ", rt_addr_n2a(family, sizeof(*saddr), in xfrm_id_info_print()
296 fprintf(fp, "dst %s", rt_addr_n2a(family, sizeof(id->daddr), in xfrm_id_info_print()
298 fprintf(fp, "%s", _SL_); in xfrm_id_info_print()
302 fprintf(fp, "\t"); in xfrm_id_info_print()
304 fprintf(fp, "proto %s ", strxf_xfrmproto(id->proto)); in xfrm_id_info_print()
308 fprintf(fp, "spi 0x%08x", spi); in xfrm_id_info_print()
310 fprintf(fp, "(%u)", spi); in xfrm_id_info_print()
311 fprintf(fp, " "); in xfrm_id_info_print()
314 fprintf(fp, "reqid %u", reqid); in xfrm_id_info_print()
316 fprintf(fp, "(0x%08x)", reqid); in xfrm_id_info_print()
317 fprintf(fp, " "); in xfrm_id_info_print()
319 fprintf(fp, "mode "); in xfrm_id_info_print()
322 fprintf(fp, "transport"); in xfrm_id_info_print()
325 fprintf(fp, "tunnel"); in xfrm_id_info_print()
328 fprintf(fp, "ro"); in xfrm_id_info_print()
331 fprintf(fp, "in_trigger"); in xfrm_id_info_print()
334 fprintf(fp, "beet"); in xfrm_id_info_print()
337 fprintf(fp, "%u", mode); in xfrm_id_info_print()
340 fprintf(fp, "%s", _SL_); in xfrm_id_info_print()
358 fprintf(fp, "stats:%s", _SL_); in xfrm_stats_print()
362 fprintf(fp, " replay-window %u replay %u failed %u%s", in xfrm_stats_print()
395 fprintf(fp, "lifetime config:%s",_SL_); in xfrm_lifetime_print()
399 fprintf(fp, " limit: soft %s(bytes),", in xfrm_lifetime_print()
401 fprintf(fp, " hard %s(bytes)%s", in xfrm_lifetime_print()
406 fprintf(fp, " limit: soft %s(packets),", in xfrm_lifetime_print()
408 fprintf(fp, " hard %s(packets)%s", in xfrm_lifetime_print()
413 fprintf(fp, " expire add: soft %llu(sec), hard %llu(sec)%s", in xfrm_lifetime_print()
420 fprintf(fp, " expire use: soft %llu(sec), hard %llu(sec)%s", in xfrm_lifetime_print()
428 fprintf(fp, "lifetime current:%s", _SL_); in xfrm_lifetime_print()
432 fprintf(fp, " %llu(bytes), %llu(packets)%s", in xfrm_lifetime_print()
439 fprintf(fp, " add %s ", strxf_time(cur->add_time)); in xfrm_lifetime_print()
440 fprintf(fp, "use %s%s", strxf_time(cur->use_time), _SL_); in xfrm_lifetime_print()
460 fprintf(fp, "src %s/%u ", rt_addr_n2a(f, sizeof(sel->saddr), in xfrm_selector_print()
465 fprintf(fp, "dst %s/%u ", rt_addr_n2a(f, sizeof(sel->daddr), in xfrm_selector_print()
470 fprintf(fp, "proto %s ", strxf_proto(sel->proto)); in xfrm_selector_print()
478 fprintf(fp, "sport %u ", ntohs(sel->sport)); in xfrm_selector_print()
480 fprintf(fp, "dport %u ", ntohs(sel->dport)); in xfrm_selector_print()
486 fprintf(fp, "type %u ", ntohs(sel->sport)); in xfrm_selector_print()
488 fprintf(fp, "code %u ", ntohs(sel->dport)); in xfrm_selector_print()
492 fprintf(fp, "key %u ", in xfrm_selector_print()
498 fprintf(fp, "type %u ", ntohs(sel->sport)); in xfrm_selector_print()
501 fprintf(fp, "(dport) 0x%.4x ", sel->dport); in xfrm_selector_print()
507 fprintf(fp, "dev %s ", ll_index_to_name(sel->ifindex)); in xfrm_selector_print()
510 fprintf(fp, "uid %u", sel->user); in xfrm_selector_print()
512 fprintf(fp, "%s", _SL_); in xfrm_selector_print()
524 fprintf(fp, "%s ", strxf_algotype(type)); in __xfrm_algo_print()
527 fprintf(fp, "(ERROR truncated)"); in __xfrm_algo_print()
532 fprintf(fp, "%s ", algo->alg_name); in __xfrm_algo_print()
536 fprintf(fp, "(ERROR truncated)"); in __xfrm_algo_print()
540 fprintf(fp, "0x"); in __xfrm_algo_print()
542 fprintf(fp, "%.2x", (unsigned char)algo->alg_key[i]); in __xfrm_algo_print()
545 fprintf(fp, " (%d bits)", algo->alg_key_len); in __xfrm_algo_print()
549 fprintf(fp, "%s", _SL_); in __xfrm_algo_print()
572 fprintf(fp, " %d", algo->alg_icv_len); in xfrm_aead_print()
574 fprintf(fp, "%s", _SL_); in xfrm_aead_print()
591 fprintf(fp, " %d", algo->alg_trunc_len); in xfrm_auth_trunc_print()
593 fprintf(fp, "%s", _SL_); in xfrm_auth_trunc_print()
605 fprintf(fp, "(ERROR \"tmpl\" truncated)"); in xfrm_tmpl_print()
606 fprintf(fp, "%s", _SL_); in xfrm_tmpl_print()
622 fprintf(fp, "\t"); in xfrm_tmpl_print()
626 fprintf(fp, "level required "); in xfrm_tmpl_print()
629 fprintf(fp, "level use "); in xfrm_tmpl_print()
632 fprintf(fp, "level %u ", tmpl->optional); in xfrm_tmpl_print()
637 fprintf(fp, "share %s ", strxf_share(tmpl->share)); in xfrm_tmpl_print()
639 fprintf(fp, "%s", _SL_); in xfrm_tmpl_print()
645 fprintf(fp, "\t"); in xfrm_tmpl_print()
646 fprintf(fp, "%s-mask %s ", in xfrm_tmpl_print()
649 fprintf(fp, "%s-mask %s ", in xfrm_tmpl_print()
652 fprintf(fp, "%s-mask %s", in xfrm_tmpl_print()
656 fprintf(fp, "%s", _SL_); in xfrm_tmpl_print()
700 fprintf(fp, "\tmark %d/0x%x\n", m->v, m->m); in xfrm_xfrma_print()
739 fprintf(fp, "encap "); in xfrm_xfrma_print()
742 fprintf(fp, "(ERROR truncated)"); in xfrm_xfrma_print()
743 fprintf(fp, "%s", _SL_); in xfrm_xfrma_print()
748 fprintf(fp, "type "); in xfrm_xfrma_print()
751 fprintf(fp, "espinudp-nonike "); in xfrm_xfrma_print()
754 fprintf(fp, "espinudp "); in xfrm_xfrma_print()
757 fprintf(fp, "%u ", e->encap_type); in xfrm_xfrma_print()
760 fprintf(fp, "sport %u ", ntohs(e->encap_sport)); in xfrm_xfrma_print()
761 fprintf(fp, "dport %u ", ntohs(e->encap_dport)); in xfrm_xfrma_print()
764 fprintf(fp, "addr %s", in xfrm_xfrma_print()
767 fprintf(fp, "%s", _SL_); in xfrm_xfrma_print()
782 fprintf(fp, "coa "); in xfrm_xfrma_print()
787 fprintf(fp, "(ERROR truncated)"); in xfrm_xfrma_print()
788 fprintf(fp, "%s", _SL_); in xfrm_xfrma_print()
793 fprintf(fp, "%s", in xfrm_xfrma_print()
796 fprintf(fp, "%s", _SL_); in xfrm_xfrma_print()
804 fprintf(fp, "lastused "); in xfrm_xfrma_print()
807 fprintf(fp, "(ERROR truncated)"); in xfrm_xfrma_print()
808 fprintf(fp, "%s", _SL_); in xfrm_xfrma_print()
814 fprintf(fp, "%s", strxf_time(lastused)); in xfrm_xfrma_print()
815 fprintf(fp, "%s", _SL_); in xfrm_xfrma_print()
847 fprintf(fp, "replay-window %u ", xsinfo->replay_window); in xfrm_state_info_print()
849 fprintf(fp, "seq 0x%08u ", xsinfo->seq); in xfrm_state_info_print()
853 fprintf(fp, "flag "); in xfrm_state_info_print()
862 fprintf(fp, "%x", flags); in xfrm_state_info_print()
865 fprintf(fp, " (0x%s)", strxf_mask8(xsinfo->flags)); in xfrm_state_info_print()
866 fprintf(fp, "%s", _SL_); in xfrm_state_info_print()
887 fprintf(fp, "\tsecurity context "); in xfrm_state_info_print()
890 fprintf(fp, "(ERROR truncated)"); in xfrm_state_info_print()
894 fprintf(fp, "%s %s", (char *)(sctx + 1), _SL_); in xfrm_state_info_print()
912 fprintf(fp, "\tsecurity context "); in xfrm_policy_info_print()
915 fprintf(fp, "(ERROR truncated)"); in xfrm_policy_info_print()
919 fprintf(fp, "%s ", (char *)(sctx + 1)); in xfrm_policy_info_print()
920 fprintf(fp, "%s", _SL_); in xfrm_policy_info_print()
930 fprintf(fp, "socket "); in xfrm_policy_info_print()
932 fprintf(fp, "dir "); in xfrm_policy_info_print()
936 fprintf(fp, "in"); in xfrm_policy_info_print()
939 fprintf(fp, "out"); in xfrm_policy_info_print()
942 fprintf(fp, "fwd"); in xfrm_policy_info_print()
945 fprintf(fp, "%u", xpinfo->dir); in xfrm_policy_info_print()
948 fprintf(fp, " "); in xfrm_policy_info_print()
953 fprintf(fp, "action allow "); in xfrm_policy_info_print()
956 fprintf(fp, "action block "); in xfrm_policy_info_print()
959 fprintf(fp, "action %u ", xpinfo->action); in xfrm_policy_info_print()
964 fprintf(fp, "index %u ", xpinfo->index); in xfrm_policy_info_print()
965 fprintf(fp, "priority %u ", xpinfo->priority); in xfrm_policy_info_print()
970 fprintf(fp, "ptype "); in xfrm_policy_info_print()
973 fprintf(fp, "(ERROR truncated)"); in xfrm_policy_info_print()
976 fprintf(fp, "%s ", strxf_ptype(upt->type)); in xfrm_policy_info_print()
980 fprintf(fp, "share %s ", strxf_share(xpinfo->share)); in xfrm_policy_info_print()
985 fprintf(fp, "flag "); in xfrm_policy_info_print()
989 fprintf(fp, "%x", flags); in xfrm_policy_info_print()
992 fprintf(fp, " (0x%s)", strxf_mask8(xpinfo->flags)); in xfrm_policy_info_print()
993 fprintf(fp, "%s", _SL_); in xfrm_policy_info_print()
1242 fprintf(stderr, "invalid value of \"key\"\n"); in xfrm_selector_upspec_parse()
1273 fprintf(stderr, "\"sport\" and \"dport\" are invalid with proto=%s\n", strxf_proto(sel->proto)); in xfrm_selector_upspec_parse()
1284 fprintf(stderr, "\"type\" and \"code\" are invalid with proto=%s\n", strxf_proto(sel->proto)); in xfrm_selector_upspec_parse()
1293 fprintf(stderr, "\"key\" is invalid with proto=%s\n", strxf_proto(sel->proto)); in xfrm_selector_upspec_parse()
1458 fprintf(stderr, "xfrm Object \"%s\" is unknown.\n", *argv); in do_xfrm()