Home | History | Annotate | Download | only in ip

Lines Matching refs:fprintf

64 	fprintf(stderr,
292 fprintf(fp, "src %s ", rt_addr_n2a(family, sizeof(*saddr),
295 fprintf(fp, "dst %s", rt_addr_n2a(family, sizeof(id->daddr),
297 fprintf(fp, "%s", _SL_);
301 fprintf(fp, "\t");
303 fprintf(fp, "proto %s ", strxf_xfrmproto(id->proto));
307 fprintf(fp, "spi 0x%08x", spi);
309 fprintf(fp, "(%u)", spi);
310 fprintf(fp, " ");
313 fprintf(fp, "reqid %u", reqid);
315 fprintf(fp, "(0x%08x)", reqid);
316 fprintf(fp, " ");
318 fprintf(fp, "mode ");
321 fprintf(fp, "transport");
324 fprintf(fp, "tunnel");
327 fprintf(fp, "ro");
330 fprintf(fp, "in_trigger");
333 fprintf(fp, "beet");
336 fprintf(fp, "%u", mode);
339 fprintf(fp, "%s", _SL_);
357 fprintf(fp, "stats:%s", _SL_);
361 fprintf(fp, " replay-window %u replay %u failed %u%s",
394 fprintf(fp, "lifetime config:%s",_SL_);
398 fprintf(fp, " limit: soft %s(bytes),",
400 fprintf(fp, " hard %s(bytes)%s",
405 fprintf(fp, " limit: soft %s(packets),",
407 fprintf(fp, " hard %s(packets)%s",
412 fprintf(fp, " expire add: soft %llu(sec), hard %llu(sec)%s",
419 fprintf(fp, " expire use: soft %llu(sec), hard %llu(sec)%s",
427 fprintf(fp, "lifetime current:%s", _SL_);
431 fprintf(fp, " %llu(bytes), %llu(packets)%s",
438 fprintf(fp, " add %s ", strxf_time(cur->add_time));
439 fprintf(fp, "use %s%s", strxf_time(cur->use_time), _SL_);
459 fprintf(fp, "src %s/%u ", rt_addr_n2a(f, sizeof(sel->saddr),
464 fprintf(fp, "dst %s/%u ", rt_addr_n2a(f, sizeof(sel->daddr),
469 fprintf(fp, "proto %s ", strxf_proto(sel->proto));
477 fprintf(fp, "sport %u ", ntohs(sel->sport));
479 fprintf(fp, "dport %u ", ntohs(sel->dport));
485 fprintf(fp, "type %u ", ntohs(sel->sport));
487 fprintf(fp, "code %u ", ntohs(sel->dport));
491 fprintf(fp, "type %u ", ntohs(sel->sport));
494 fprintf(fp, "(dport) 0x%.4x ", sel->dport);
500 fprintf(fp, "dev %s ", ll_index_to_name(sel->ifindex));
503 fprintf(fp, "uid %u", sel->user);
505 fprintf(fp, "%s", _SL_);
517 fprintf(fp, "%s ", strxf_algotype(type));
520 fprintf(fp, "(ERROR truncated)");
525 fprintf(fp, "%s ", algo->alg_name);
529 fprintf(fp, "(ERROR truncated)");
533 fprintf(fp, "0x");
535 fprintf(fp, "%.2x", (unsigned char)algo->alg_key[i]);
538 fprintf(fp, " (%d bits)", algo->alg_key_len);
542 fprintf(fp, "%s", _SL_);
565 fprintf(fp, " %d", algo->alg_icv_len);
567 fprintf(fp, "%s", _SL_);
579 fprintf(fp, "(ERROR \"tmpl\" truncated)");
580 fprintf(fp, "%s", _SL_);
596 fprintf(fp, "\t");
600 fprintf(fp, "level required ");
603 fprintf(fp, "level use ");
606 fprintf(fp, "level %u ", tmpl->optional);
611 fprintf(fp, "share %s ", strxf_share(tmpl->share));
613 fprintf(fp, "%s", _SL_);
619 fprintf(fp, "\t");
620 fprintf(fp, "%s-mask %s ",
623 fprintf(fp, "%s-mask %s ",
626 fprintf(fp, "%s-mask %s",
630 fprintf(fp, "%s", _SL_);
674 fprintf(fp, "\tmark %d/0x%x\n", m->v, m->m);
707 fprintf(fp, "encap ");
710 fprintf(fp, "(ERROR truncated)");
711 fprintf(fp, "%s", _SL_);
716 fprintf(fp, "type ");
719 fprintf(fp, "espinudp-nonike ");
722 fprintf(fp, "espinudp ");
725 fprintf(fp, "%u ", e->encap_type);
728 fprintf(fp, "sport %u ", ntohs(e->encap_sport));
729 fprintf(fp, "dport %u ", ntohs(e->encap_dport));
732 fprintf(fp, "addr %s",
735 fprintf(fp, "%s", _SL_);
750 fprintf(fp, "coa ");
755 fprintf(fp, "(ERROR truncated)");
756 fprintf(fp, "%s", _SL_);
761 fprintf(fp, "%s",
764 fprintf(fp, "%s", _SL_);
772 fprintf(fp, "lastused ");
775 fprintf
776 fprintf(fp, "%s", _SL_);
782 fprintf(fp, "%s", strxf_time(lastused));
783 fprintf(fp, "%s", _SL_);
815 fprintf(fp, "replay-window %u ", xsinfo->replay_window);
817 fprintf(fp, "seq 0x%08u ", xsinfo->seq);
821 fprintf(fp, "flag ");
829 fprintf(fp, "%x", flags);
832 fprintf(fp, " (0x%s)", strxf_mask8(xsinfo->flags));
833 fprintf(fp, "%s", _SL_);
867 fprintf(fp, "dir ");
870 fprintf(fp, "in");
873 fprintf(fp, "out");
876 fprintf(fp, "fwd");
879 fprintf(fp, "%u", xpinfo->dir);
882 fprintf(fp, " ");
887 fprintf(fp, "action allow ");
890 fprintf(fp, "action block ");
893 fprintf(fp, "action %u ", xpinfo->action);
898 fprintf(fp, "index %u ", xpinfo->index);
899 fprintf(fp, "priority %u ", xpinfo->priority);
904 fprintf(fp, "ptype ");
907 fprintf(fp, "(ERROR truncated)");
910 fprintf(fp, "%s ", strxf_ptype(upt->type));
914 fprintf(fp, "share %s ", strxf_share(xpinfo->share));
919 fprintf(fp, "flag ");
922 fprintf(fp, "%x", flags);
925 fprintf(fp, " (0x%s)", strxf_mask8(xpinfo->flags));
926 fprintf(fp, "%s", _SL_);
1182 fprintf(stderr, "\"sport\" and \"dport\" are invalid with proto=%s\n", strxf_proto(sel->proto));
1193 fprintf(stderr, "\"type\" and \"code\" are invalid with proto=%s\n", strxf_proto(sel->proto));
1358 fprintf(stderr, "xfrm Object \"%s\" is unknown.\n", *argv);