Lines Matching refs:bprintf
475 bprintf(struct buf_pr *b, const char *format, ...) in bprintf() function
506 bprintf(bp, "%s", str); in bprint_uint_arg()
508 bprintf(bp, "tablearg"); in bprint_uint_arg()
510 bprintf(bp, "%u", arg); in bprint_uint_arg()
533 bprintf(b, "%*" U64_FMT " ", width, d) : in pr_u64()
877 bprintf(bp, "%s", s); in print_port()
879 bprintf(bp, "0x%04x", port); in print_port()
888 bprintf(bp, "%s", se->s_name); in print_port()
890 bprintf(bp, "%d", port); in print_port()
923 bprintf(bp, " %s", sep); in print_newports()
927 bprintf(bp, "%s", sep); in print_newports()
930 bprintf(bp, "-"); in print_newports()
1137 bprintf(bp, "unreach %s", s); in print_reject_code()
1139 bprintf(bp, "unreach %u", code); in print_reject_code()
1181 bprintf(bp, " setup"); in print_flags()
1185 bprintf(bp, " %s ", name); in print_flags()
1189 bprintf(bp, "%s%s", comma, list[i].s); in print_flags()
1194 bprintf(bp, "%s!%s", comma, list[i].s); in print_flags()
1214 bprintf(bp, " "); in print_ip()
1223 bprintf(bp, "lookup %s %s", arg, t); in print_ip()
1227 bprintf(bp, "me"); in print_ip()
1234 bprintf(bp, "table(%s", t); in print_ip()
1236 bprintf(bp, ",%u", *a); in print_ip()
1237 bprintf(bp, ")"); in print_ip()
1250 bprintf(bp, "%s/%d", inet_ntoa(addr), in print_ip()
1265 bprintf(bp, "%c%d", comma, i+x); in print_ip()
1267 bprintf(bp, "-%d", j-1+x); in print_ip()
1272 bprintf(bp, "}"); in print_ip()
1288 bprintf(bp, "%s", he->h_name); in print_ip()
1290 bprintf(bp, "any"); in print_ip()
1293 bprintf(bp, "%s", inet_ntoa(*ia)); in print_ip()
1296 bprintf(bp, ":%s", inet_ntoa(*ia)); in print_ip()
1298 bprintf(bp, "/%d", mb); in print_ip()
1301 bprintf(bp, ","); in print_ip()
1314 bprintf(bp, " any"); in format_mac()
1316 bprintf(bp, " %02x:%02x:%02x:%02x:%02x:%02x", in format_mac()
1319 bprintf(bp, "&%02x:%02x:%02x:%02x:%02x:%02x", in format_mac()
1323 bprintf(bp, "/%d", l); in format_mac()
1331 bprintf(bp, " MAC"); in print_mac()
1366 bprintf(bp, " icmptypes"); in print_icmptypes()
1370 bprintf(bp, "%c%d", sep, i); in print_icmptypes()
1383 bprintf(bp, " dscp"); in print_dscp()
1388 bprintf(bp, "%c%s", sep, code); in print_dscp()
1390 bprintf(bp, "%c%d", sep, i); in print_dscp()
1459 bprintf(bp, "%s%s", comma, p->s); in print_limit_mask()
1479 bprintf(bp, " {"); in print_instruction()
1481 bprintf(bp, " not"); in print_instruction()
1486 bprintf(bp, "prob %f ", d); in print_instruction()
1497 bprintf(bp, " src-ip"); in print_instruction()
1506 bprintf(bp, " dst-ip"); in print_instruction()
1513 bprintf(bp, " src-ip6"); in print_instruction()
1520 bprintf(bp, " dst-ip6"); in print_instruction()
1535 bprintf(bp, " proto"); in print_instruction()
1537 bprintf(bp, " %s", pe->p_name); in print_instruction()
1539 bprintf(bp, " %u", cmd->arg1); in print_instruction()
1553 bprintf(bp, " fib %u", cmd->arg1); in print_instruction()
1556 bprintf(bp, " sockarg"); in print_instruction()
1559 bprintf(bp, cmd->len & F_NOT ? " out" : " in"); in print_instruction()
1564 bprintf(bp, " diverted"); in print_instruction()
1567 bprintf(bp, " diverted-output"); in print_instruction()
1570 bprintf(bp, " diverted-loopback"); in print_instruction()
1573 bprintf(bp, " diverted-?<%u>", cmd->arg1); in print_instruction()
1578 bprintf(bp, " layer2"); in print_instruction()
1591 bprintf(bp, " %s %s", s, in print_instruction()
1595 bprintf(bp, " %s table(%s)", s, in print_instruction()
1600 bprintf(bp, " %s %s", s, in print_instruction()
1606 bprintf(bp, " flow table(%s", s); in print_instruction()
1608 bprintf(bp, ",%u", insntod(cmd, u32)->d[0]); in print_instruction()
1609 bprintf(bp, ")"); in print_instruction()
1641 bprintf(bp, " %s %u", s, cmd->arg1); in print_instruction()
1647 bprintf(bp, " ipver %u", cmd->arg1); in print_instruction()
1650 bprintf(bp, " ipprecedence %u", cmd->arg1 >> 5); in print_instruction()
1665 bprintf(bp, " established"); in print_instruction()
1674 bprintf(bp, " tcpack %d", in print_instruction()
1678 bprintf(bp, " tcpseq %d", in print_instruction()
1684 bprintf(bp, " uid %s", pwd->pw_name); in print_instruction()
1686 bprintf(bp, " uid %u", in print_instruction()
1692 bprintf(bp, " gid %s", grp->gr_name); in print_instruction()
1694 bprintf(bp, " gid %u", in print_instruction()
1698 bprintf(bp, " jail %d", insntod(cmd, u32)->d[0]); in print_instruction()
1701 bprintf(bp, " verrevpath"); in print_instruction()
1704 bprintf(bp, " versrcreach"); in print_instruction()
1707 bprintf(bp, " antispoof"); in print_instruction()
1710 bprintf(bp, " ipsec"); in print_instruction()
1713 bprintf(bp, " // %s", (const char *)(cmd + 1)); in print_instruction()
1717 bprintf(bp, " keep-state"); in print_instruction()
1719 bprintf(bp, " record-state"); in print_instruction()
1720 bprintf(bp, " :%s", in print_instruction()
1726 bprintf(bp, " limit"); in print_instruction()
1728 bprintf(bp, " set-limit"); in print_instruction()
1730 bprintf(bp, " :%s", in print_instruction()
1736 bprintf(bp, " proto"); in print_instruction()
1737 bprintf(bp, " ip6"); in print_instruction()
1741 bprintf(bp, " proto"); in print_instruction()
1742 bprintf(bp, " ip4"); in print_instruction()
1758 bprintf(bp, " defer-immediate-action"); in print_instruction()
1761 bprintf(bp, " [opcode %d len %d]", cmd->opcode, in print_instruction()
1765 bprintf(bp, " or"); in print_instruction()
1768 bprintf(bp, " }"); in print_instruction()
1813 bprintf(bp, "fwd tablearg"); in print_fwd()
1815 bprintf(bp, "fwd %s", inet_ntoa(sa->sa.sin_addr)); in print_fwd()
1819 bprintf(bp, "fwd "); in print_fwd()
1823 bprintf(bp, "%s", buf); in print_fwd()
1826 bprintf(bp, ",%u", port); in print_fwd()
1839 bprintf(bp, "check-state"); in print_action_instruction()
1845 bprintf(bp, " :%s", s ? s: "any"); in print_action_instruction()
1848 bprintf(bp, "allow"); in print_action_instruction()
1851 bprintf(bp, "count"); in print_action_instruction()
1854 bprintf(bp, "deny"); in print_action_instruction()
1858 bprintf(bp, "reset"); in print_action_instruction()
1860 bprintf(bp, "abort"); in print_action_instruction()
1862 bprintf(bp, "reject"); in print_action_instruction()
1868 bprintf(bp, "reset6"); in print_action_instruction()
1870 bprintf(bp, "abort6"); in print_action_instruction()
1901 bprintf(bp, " log logamount %d", in print_action_instruction()
1904 bprintf(bp, " log"); in print_action_instruction()
1919 bprintf(bp, "nat global"); in print_action_instruction()
1925 bprintf(bp, "setfib %u", cmd->arg1 & 0x7FFF); in print_action_instruction()
1941 bprintf(bp, "%s", s); in print_action_instruction()
1943 bprintf(bp, "eaction %s", s); in print_action_instruction()
1963 bprintf(bp, " %s", s); in print_action_instruction()
1974 bprintf(bp, " %u", cmd->arg1); in print_action_instruction()
1976 bprintf(bp, " %ubytes", in print_action_instruction()
1981 bprintf(bp, "setdscp tablearg"); in print_action_instruction()
1986 bprintf(bp, "setdscp %s", s); in print_action_instruction()
1988 bprintf(bp, "setdscp %u", cmd->arg1 & 0x3F); in print_action_instruction()
1991 bprintf(bp, "reass"); in print_action_instruction()
1995 bprintf(bp, "return"); in print_action_instruction()
2000 bprintf(bp, "** unrecognized action %d len %d ", in print_action_instruction()
2060 bprintf(bp, " ip"); in print_proto()
2109 bprintf(bp, " any"); in print_address()
2177 bprintf(bp, "# DISABLED "); in show_static_rule()
2183 bprintf(bp, "%05u ", rule->rulenum); in show_static_rule()
2193 bprintf(bp, "%10u ", cntr->timestamp); in show_static_rule()
2208 bprintf(bp, "%s ", timestr); in show_static_rule()
2210 bprintf(bp, "%*s ", twidth, ""); in show_static_rule()
2216 bprintf(bp, "set %d ", rule->set); in show_static_rule()
2255 bprintf(bp, " from"); in show_static_rule()
2260 bprintf(bp, " to"); in show_static_rule()
2272 bprintf(bp, " // ..."); in show_static_rule()
2273 bprintf(bp, "\n"); in show_static_rule()
2290 bprintf(bp, "%05d", rulenum); in show_dyn_state()
2292 bprintf(bp, " "); in show_dyn_state()
2295 bprintf(bp, "(%ds)", d->expire); in show_dyn_state()
2299 bprintf(bp, " PARENT %d", d->count); in show_dyn_state()
2302 bprintf(bp, " LIMIT"); in show_dyn_state()
2305 bprintf(bp, " STATE"); in show_dyn_state()
2310 bprintf(bp, " %s", pe->p_name); in show_dyn_state()
2312 bprintf(bp, " proto %u", d->id.proto); in show_dyn_state()
2316 bprintf(bp, " %s %d", inet_ntoa(a), d->id.src_port); in show_dyn_state()
2319 bprintf(bp, " <-> %s %d", inet_ntoa(a), d->id.dst_port); in show_dyn_state()
2321 bprintf(bp, " %s %d", inet_ntop(AF_INET6_LINUX, &d->id.src_ip6, buf, in show_dyn_state()
2323 bprintf(bp, " <-> %s %d", inet_ntop(AF_INET6_LINUX, &d->id.dst_ip6, in show_dyn_state()
2326 bprintf(bp, " UNKNOWN <-> UNKNOWN"); in show_dyn_state()
2328 bprintf(bp, " :%s", object_search_ctlv(fo->tstate, in show_dyn_state()
2334 bprintf(bp, " state 0x%08x%s", d->state, in show_dyn_state()
2337 bprintf(bp, "ORPHANED,"); in show_dyn_state()
2339 bprintf(bp, "BOTH_SYN,"); in show_dyn_state()
2342 bprintf(bp, "F_SYN,"); in show_dyn_state()
2344 bprintf(bp, "R_SYN,"); in show_dyn_state()
2347 bprintf(bp, "BOTH_FIN,"); in show_dyn_state()
2350 bprintf(bp, "F_FIN,"); in show_dyn_state()
2352 bprintf(bp, "R_FIN,"); in show_dyn_state()
2354 bprintf(bp, " f_ack 0x%x, r_ack 0x%x", d->ack_fwd, in show_dyn_state()