Home | History | Annotate | Download | only in ip

Lines Matching full:fprintf

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