Home
last modified time | relevance | path

Searched refs:PRINTF (Results 1 – 25 of 74) sorted by relevance

123

/netbsd/src/external/bsd/ipf/dist/lib/
Dprintstatefields.c94 PRINTF("%#lx", (u_long)sp->is_ifp[0]);
98 PRINTF("%#lx", (u_long)sp->is_ifp[1]);
102 PRINTF("%#lx", (u_long)sp->is_ifp[2]);
106 PRINTF("%#lx", (u_long)sp->is_ifp[3]);
110 PRINTF("%s", sp->is_ifname[0]);
114 PRINTF("%s", sp->is_ifname[1]);
118 PRINTF("%s", sp->is_ifname[2]);
122 PRINTF("%s", sp->is_ifname[3]);
127 PRINTF("%"PRIu64"", sp->is_pkts[0]);
129 PRINTF("%lu", sp->is_pkts[0]);
[all …]
Dprintfr.c33 PRINTF("# Builtin: ");
36 PRINTF("%u ", fp->fr_collect);
41 PRINTF("call");
43 PRINTF(" now");
45 PRINTF(" %s/%u", s ? s : "?", fp->fr_arg);
47 PRINTF("pass");
49 PRINTF("block");
53 PRINTF("count");
55 PRINTF("auth");
57 PRINTF("preauth");
[all …]
Dprintstate.c27 PRINTF("%d:", sp->is_v);
29 PRINTF("%s", pr->p_name);
31 PRINTF("%d", sp->is_p);
33 PRINTF(" src:%s", hostname(sp->is_family, &sp->is_src.in4));
36 PRINTF(",*");
38 PRINTF(",%d", ntohs(sp->is_sport));
41 PRINTF(" dst:%s", hostname(sp->is_family, &sp->is_dst.in4));
44 PRINTF(",*");
46 PRINTF(",%d", ntohs(sp->is_dport));
50 PRINTF(" state:%d/%d", sp->is_state[0], sp->is_state[1]);
[all …]
Dprintnat.c43 PRINTF("no ");
48 PRINTF("encap in on");
52 PRINTF("encap out on");
56 PRINTF("divert in on");
60 PRINTF("divert out on");
64 PRINTF("rewrite in on");
68 PRINTF("rewrite out on");
72 PRINTF("rdr");
76 PRINTF("map");
80 PRINTF("map-block");
[all …]
Dprintnatfield.c72 PRINTF("%#lx", (u_long)n->nat_ifps[0]);
76 PRINTF("%#lx", (u_long)n->nat_ifps[1]);
80 PRINTF("%d", n->nat_mtu[0]);
84 PRINTF("%d", n->nat_mtu[1]);
88 PRINTF("%s", n->nat_ifnames[0]);
92 PRINTF("%s", n->nat_ifnames[1]);
96 PRINTF("%d", n->nat_sumd[0]);
100 PRINTF("%d", n->nat_sumd[1]);
105 PRINTF("%"PRIu64"", n->nat_pkts[0]);
107 PRINTF("%lu", n->nat_pkts[0]);
[all …]
Dprintnatside.c17 PRINTF("%lu\tproxy create fail %s\n", ns->ns_appr_fail, side);
18 PRINTF("%lu\tproxy fail %s\n", ns->ns_ipf_proxy_fail, side);
19 PRINTF("%lu\tbad nat %s\n", ns->ns_badnat, side);
20 PRINTF("%lu\tbad nat new %s\n", ns->ns_badnatnew, side);
21 PRINTF("%lu\tbad next addr %s\n", ns->ns_badnextaddr, side);
22 PRINTF("%lu\tbucket max %s\n", ns->ns_bucket_max, side);
23 PRINTF("%lu\tclone nomem %s\n", ns->ns_clone_nomem, side);
24 PRINTF("%lu\tdecap bad %s\n", ns->ns_decap_bad, side);
25 PRINTF("%lu\tdecap fail %s\n", ns->ns_decap_fail, side);
26 PRINTF("%lu\tdecap pullup %s\n", ns->ns_decap_pullup, side);
[all …]
Dprintactivenat.c26 PRINTF("%s", getnattype(nat));
29 PRINTF(" CLONE");
31 PRINTF(" ORPHAN");
39 PRINTF(" %-5hu", ntohs(nat->nat_osport));
46 PRINTF(" %-5hu", ntohs(nat->nat_odport));
48 PRINTF("<- -> ");
53 PRINTF(" %-5hu", ntohs(nat->nat_nsport));
59 PRINTF(" %-5hu", ntohs(nat->nat_ndport));
66 PRINTF(" %-5hu", ntohs(nat->nat_osport));
68 PRINTF(" <- -> ");
[all …]
Dprinthashdata.c21 PRINTF("# 'anonymous' table refs %d\n", hp->iph_ref);
23 PRINTF("# ");
27 PRINTF("table");
30 PRINTF("group-map");
32 PRINTF(" in");
34 PRINTF(" out");
36 PRINTF(" ???");
39 PRINTF("%#x", hp->iph_type);
42 PRINTF(" role=");
44 PRINTF("Hash Table %s: %s",
[all …]
Dprintaps.c35 PRINTF("\tproxy %s/%d use %d flags %x\n", apr.apr_label,
38 PRINTF("\tbytes %"PRIu64" pkts %"PRIu64"",
42 PRINTF("\tbytes %lu pkts %lu", ap.aps_bytes, ap.aps_pkts);
44 PRINTF(" data %s\n", ap.aps_data ? "YES" : "NO");
46 PRINTF("\t\tstate[%u,%u], sel[%d,%d]\n",
51 PRINTF("\t\tseq: off %hd/%hd min %x/%x\n",
54 PRINTF("\t\tack: off %hd/%hd min %x/%x\n",
58 PRINTF("\t\tseq: off %hd/%hd min %lx/%lx\n",
61 PRINTF("\t\tack: off %hd/%hd min %lx/%lx\n",
70 PRINTF("\tReal Audio Proxy:\n");
[all …]
Dprintpoolfield.c52 PRINTF("!");
54 PRINTF("%s", inet_ntop(a->adf_family, &a->adf_addr,
59 PRINTF("%s", inet_ntop(node->ipe_family,
66 PRINTF("%s", inet_ntop(a->adf_family, &a->adf_addr,
76 PRINTF("%s", inet_ntop(a->adf_family, &a->adf_addr,
81 PRINTF("%s", inet_ntop(node->ipe_family,
85 PRINTF("%s", "");
91 PRINTF("%s", "");
93 PRINTF("%s", "");
98 PRINTF("%s", "");
[all …]
Dprintipfexpr.c31 PRINTF("ip.addr %s= ", not ? "!" : "");
36 PRINTF("ip.p %s= ", not ? "!" : "");
41 PRINTF("ip.src %s= ", not ? "!" : "");
46 PRINTF("ip.dst %s= ", not ? "!" : "");
51 PRINTF("tcp.port %s= ", not ? "!" : "");
56 PRINTF("tcp.dport %s= ", not ? "!" : "");
61 PRINTF("tcp.sport %s= ", not ? "!" : "");
66 PRINTF("tcp.flags %s= ", not ? "!" : "");
77 PRINTF("udp.port %s= ", not ? "!" : "");
82 PRINTF("udp.dport %s= ", not ? "!" : "");
[all …]
Dprintdstlistdata.c21 PRINTF("# ");
22 PRINTF("pool ");
25 PRINTF("# ");
26 PRINTF("Name: %s\tRole: ", pool->ipld_name);
32 PRINTF("/dstlist (name %s;", pool->ipld_name);
34 PRINTF(" policy ");
38 PRINTF(")\n");
42 PRINTF("\tReferences: %d\n", pool->ipld_ref);
44 PRINTF("# ");
45 PRINTF("Policy: \n");
[all …]
Dprintunit.c20 PRINTF("ipf");
23 PRINTF("nat");
26 PRINTF("state");
29 PRINTF("auth");
32 PRINTF("sync");
35 PRINTF("scan");
38 PRINTF("lookup");
41 PRINTF("count");
44 PRINTF("all");
47 PRINTF("unknown(%d)", unit);
Dprintpooldata.c21 PRINTF("# 'anonymous' tree %s\n", pool->ipo_name);
23 PRINTF("# ");
24 PRINTF("table role=");
27 PRINTF("# ");
28 PRINTF("%s: %s",
32 PRINTF("(anon)");
34 PRINTF("Role: ");
40 PRINTF(" type=tree %s=%s\n",
46 PRINTF("\tReferences: %d\tHits: %lu\n", pool->ipo_ref,
49 PRINTF("# ");
[all …]
Dprintproto.c25 PRINTF("tcp/udp");
27 PRINTF("tcp");
29 PRINTF("udp");
31 PRINTF("icmp");
41 PRINTF("ip");
43 PRINTF("%s", pr->p_name);
45 PRINTF("%d", np->in_pr[0]);
49 PRINTF("ip");
53 PRINTF("%s", pr->p_name);
55 PRINTF("%d", p);
Dprintpacket.c48 PRINTF("%02x", *s++ & 0xff);
51 PRINTF("%02x", *s++ & 0xff);
67 PRINTF("> ");
69 PRINTF("< ");
71 PRINTF("%s ", IFNAME(m->mb_ifp));
75 PRINTF("ip #%d %d(%d) %d", ntohs(ip->ip_id), ntohs(ip->ip_len),
78 PRINTF(" @%d", off << 3);
79 PRINTF(" %s", inet_ntoa(ip->ip_src));
82 PRINTF(",%d", ntohs(tcp->th_sport));
83 PRINTF(" > ");
[all …]
Dprintpacket6.c36 PRINTF("> ");
38 PRINTF("< ");
40 PRINTF("%s ", IFNAME(m->mb_ifp));
42 PRINTF("ip6/%d %d %#x %d", buf[0] & 0xf, plen, flow, p);
43 PRINTF(" %x:%x:%x:%x:%x:%x:%x:%x",
49 (void)PRINTF(",%d", ntohs(tcp->th_sport));
50 PRINTF(" >");
52 PRINTF(" %x:%x:%x:%x:%x:%x:%x:%x",
58 PRINTF(",%d", ntohs(tcp->th_dport));
Dprintlookup.c24 PRINTF("pool/");
27 PRINTF("hash/");
30 PRINTF("dstlist/");
33 PRINTF("lookup(%x)=", addr->iplookuptype);
38 PRINTF("%u", addr->iplookupnum);
42 PRINTF("%s", name);
Dprinttunable.c17 PRINTF("%s\tmin %lu\tmax %lu\tcurrent ",
20 PRINTF("%lu\n", tup->ipft_vlong);
22 PRINTF("%u\n", tup->ipft_vint);
24 PRINTF("%hu\n", tup->ipft_vshort);
26 PRINTF("%u\n", (u_int)tup->ipft_vchar);
28 PRINTF("sz = %d\n", tup->ipft_sz);
Dprintlog.c22 PRINTF("log");
24 PRINTF(" body");
26 PRINTF(" first");
28 PRINTF(" or-block");
30 PRINTF(" level ");
37 PRINTF("%s.%s", s, u);
Dprinttqtable.c20 PRINTF("TCP Entries per state\n");
22 PRINTF(" %5d", i);
23 PRINTF("\n");
26 PRINTF(" %5d", table[i].ifq_ref - 1);
27 PRINTF("\n");
Dprintfraginfo.c21 PRINTF("%s", prefix);
23 PRINTF("inet6");
26 PRINTF("inet");
30 PRINTF(" %s -> ", hostname(family, &ifr->ipfr_src));
38 PRINTF("%s id %x ttl %lu pr %d pkts %u bytes %u seen0 %d ref %d\n",
Dprintip.c24 PRINTF("%lu", (u_long)ntohl(ipa.s_addr));
26 PRINTF("%s", inet_ntoa(ipa));
36 PRINTF("%s", str);
38 PRINTF("???");
42 PRINTF("?(%d)?", family);
/netbsd/src/external/bsd/ipf/dist/tools/
Dipfstat.c86 #define PRINTF (void)printf macro
528 PRINTF("opts %#x name %s\n", opts, device);
728 PRINTF("%lu\t%s bad packets\n", frs->fr_bad, side);
730 PRINTF("%lu\t%s IPv6 packets\n", frs->fr_ipv6, side);
732 PRINTF("%lu\t%s packets blocked\n", frs->fr_block, side);
733 PRINTF("%lu\t%s packets passed\n", frs->fr_pass, side);
734 PRINTF("%lu\t%s packets not matched\n", frs->fr_nom, side);
735 PRINTF("%lu\t%s packets counted\n", frs->fr_acct, side);
736 PRINTF("%lu\t%s packets short\n", frs->fr_short, side);
737 PRINTF("%lu\t%s packets logged and blocked\n", frs->fr_bpkl, side);
[all …]
/netbsd/src/sys/dev/
Dkloader.c49 #define PRINTF(fmt, args...) printf("kloader: " fmt, ##args) macro
118 PRINTF("No bootinfo.\n"); in __kloader_reboot_setup()
123 PRINTF("No boot operations.\n"); in __kloader_reboot_setup()
129 PRINTF("kernel file name: %s\n", filename); in __kloader_reboot_setup()
153 PRINTF("Rebooting...\n"); in kloader_reboot()
159 PRINTF("Resetting...\n"); in kloader_reboot()
197 PRINTF("not an ELF file\n"); in kloader_load()
204 PRINTF("can't allocate program header table.\n"); in kloader_load()
208 PRINTF("program header read error.\n"); in kloader_load()
215 PRINTF("can't allocate section header table.\n"); in kloader_load()
[all …]

123