Lines Matching refs:bprintf

513 bprintf(struct buf_pr *b, const char *format, ...)  in bprintf()  function
544 bprintf(bp, "%s", str); in bprint_uint_arg()
546 bprintf(bp, "tablearg"); in bprint_uint_arg()
548 bprintf(bp, "%u", arg); in bprint_uint_arg()
571 bprintf(b, "%*" U64_FMT " ", width, d) : in pr_u64()
952 bprintf(bp, "%s", s); in print_port()
954 bprintf(bp, "0x%04x", port); in print_port()
963 bprintf(bp, "%s", se->s_name); in print_port()
965 bprintf(bp, "%d", port); in print_port()
998 bprintf(bp, " %s", sep); in print_newports()
1002 bprintf(bp, "%s", sep); in print_newports()
1005 bprintf(bp, "-"); in print_newports()
1250 bprintf(bp, "unreach %s", s); in print_reject_code()
1252 bprintf(bp, "unreach %u", code); in print_reject_code()
1294 bprintf(bp, " setup"); in print_flags()
1298 bprintf(bp, " %s ", name); in print_flags()
1302 bprintf(bp, "%s%s", comma, list[i].s); in print_flags()
1307 bprintf(bp, "%s!%s", comma, list[i].s); in print_flags()
1319 bprintf(bp, ",%s=%u", name != NULL ? name: "<invalid>", cmd->value); in print_tvalue()
1336 bprintf(bp, " "); in print_ip()
1340 bprintf(bp, "me"); in print_ip()
1354 bprintf(bp, "lookup %s:%#x %s", in print_ip()
1358 bprintf(bp, "lookup %s %s", key != NULL ? key: in print_ip()
1366 bprintf(bp, "table(%s", t); in print_ip()
1369 bprintf(bp, ")"); in print_ip()
1383 bprintf(bp, "%s/%d", inet_ntoa(addr), in print_ip()
1398 bprintf(bp, "%c%d", comma, i+x); in print_ip()
1400 bprintf(bp, "-%d", j-1+x); in print_ip()
1405 bprintf(bp, "}"); in print_ip()
1421 bprintf(bp, "%s", he->h_name); in print_ip()
1423 bprintf(bp, "any"); in print_ip()
1426 bprintf(bp, "%s", inet_ntoa(*ia)); in print_ip()
1429 bprintf(bp, ":%s", inet_ntoa(*ia)); in print_ip()
1431 bprintf(bp, "/%d", mb); in print_ip()
1434 bprintf(bp, ","); in print_ip()
1447 bprintf(bp, " any"); in format_mac()
1449 bprintf(bp, " %02x:%02x:%02x:%02x:%02x:%02x", in format_mac()
1452 bprintf(bp, "&%02x:%02x:%02x:%02x:%02x:%02x", in format_mac()
1456 bprintf(bp, "/%d", l); in format_mac()
1464 bprintf(bp, " MAC"); in print_mac()
1476 bprintf(bp, " "); in print_mac_lookup()
1479 bprintf(bp, "table(%s", t); in print_mac_lookup()
1482 bprintf(bp, ")"); in print_mac_lookup()
1515 bprintf(bp, " icmptypes"); in print_icmptypes()
1519 bprintf(bp, "%c%d", sep, i); in print_icmptypes()
1532 bprintf(bp, " dscp"); in print_dscp()
1537 bprintf(bp, "%c%s", sep, code); in print_dscp()
1539 bprintf(bp, "%c%d", sep, i); in print_dscp()
1607 bprintf(bp, "%s%s", comma, p->s); in print_limit_mask()
1627 bprintf(bp, " {"); in print_instruction()
1629 bprintf(bp, " not"); in print_instruction()
1634 bprintf(bp, "prob %f ", d); in print_instruction()
1645 bprintf(bp, " src-ip"); in print_instruction()
1660 bprintf(bp, " dst-ip"); in print_instruction()
1667 bprintf(bp, " src-ip6"); in print_instruction()
1674 bprintf(bp, " dst-ip6"); in print_instruction()
1678 bprintf(bp, " src-mac"); in print_instruction()
1682 bprintf(bp, " dst-mac"); in print_instruction()
1697 bprintf(bp, " proto"); in print_instruction()
1699 bprintf(bp, " %s", pe->p_name); in print_instruction()
1701 bprintf(bp, " %u", cmd->arg1); in print_instruction()
1715 bprintf(bp, " fib %u", cmd->arg1); in print_instruction()
1718 bprintf(bp, " sockarg"); in print_instruction()
1721 bprintf(bp, cmd->len & F_NOT ? " out" : " in"); in print_instruction()
1726 bprintf(bp, " diverted"); in print_instruction()
1729 bprintf(bp, " diverted-output"); in print_instruction()
1732 bprintf(bp, " diverted-loopback"); in print_instruction()
1735 bprintf(bp, " diverted-?<%u>", cmd->arg1); in print_instruction()
1740 bprintf(bp, " layer2"); in print_instruction()
1753 bprintf(bp, " %s %s", s, in print_instruction()
1757 bprintf(bp, " %s table(%s)", s, in print_instruction()
1762 bprintf(bp, " %s %s", s, in print_instruction()
1769 bprintf(bp, " flow table(%s", s); in print_instruction()
1772 bprintf(bp, ")"); in print_instruction()
1804 bprintf(bp, " %s %u", s, cmd->arg1); in print_instruction()
1810 bprintf(bp, " ipver %u", cmd->arg1); in print_instruction()
1813 bprintf(bp, " ipprecedence %u", cmd->arg1 >> 5); in print_instruction()
1828 bprintf(bp, " established"); in print_instruction()
1837 bprintf(bp, " tcpack %d", in print_instruction()
1841 bprintf(bp, " tcpseq %d", in print_instruction()
1847 bprintf(bp, " uid %s", pwd->pw_name); in print_instruction()
1849 bprintf(bp, " uid %u", in print_instruction()
1855 bprintf(bp, " gid %s", grp->gr_name); in print_instruction()
1857 bprintf(bp, " gid %u", in print_instruction()
1861 bprintf(bp, " jail %d", insntoc(cmd, u32)->d[0]); in print_instruction()
1864 bprintf(bp, " verrevpath"); in print_instruction()
1867 bprintf(bp, " versrcreach"); in print_instruction()
1870 bprintf(bp, " antispoof"); in print_instruction()
1873 bprintf(bp, " ipsec"); in print_instruction()
1876 bprintf(bp, " // %s", (const char *)(cmd + 1)); in print_instruction()
1880 bprintf(bp, " keep-state"); in print_instruction()
1882 bprintf(bp, " record-state"); in print_instruction()
1883 bprintf(bp, " :%s", in print_instruction()
1890 bprintf(bp, " limit"); in print_instruction()
1892 bprintf(bp, " set-limit"); in print_instruction()
1894 bprintf(bp, " :%s", in print_instruction()
1901 bprintf(bp, " proto"); in print_instruction()
1902 bprintf(bp, " ip6"); in print_instruction()
1906 bprintf(bp, " proto"); in print_instruction()
1907 bprintf(bp, " ip4"); in print_instruction()
1923 bprintf(bp, " defer-immediate-action"); in print_instruction()
1926 bprintf(bp, " mark"); in print_instruction()
1928 bprintf(bp, " tablearg"); in print_instruction()
1930 bprintf(bp, " %#x", insntoc(cmd, u32)->d[0]); in print_instruction()
1933 bprintf(bp, ":%#x", insntoc(cmd, u32)->d[1]); in print_instruction()
1937 bprintf(bp, " [opcode %d len %d]", cmd->opcode, in print_instruction()
1941 bprintf(bp, " or"); in print_instruction()
1944 bprintf(bp, " }"); in print_instruction()
1989 bprintf(bp, "fwd tablearg"); in print_fwd()
1991 bprintf(bp, "fwd %s", inet_ntoa(sa->sa.sin_addr)); in print_fwd()
1995 bprintf(bp, "fwd "); in print_fwd()
1999 bprintf(bp, "%s", buf); in print_fwd()
2002 bprintf(bp, ",%u", port); in print_fwd()
2010 bprintf(bp, " logdst "); in print_logdst()
2012 bprintf(bp, "%ssyslog", comma); in print_logdst()
2016 bprintf(bp, "%sbpf", comma); in print_logdst()
2020 bprintf(bp, "%srtsock", comma); in print_logdst()
2035 bprintf(bp, "check-state"); in print_action_instruction()
2042 bprintf(bp, " :%s", s ? s: "any"); in print_action_instruction()
2045 bprintf(bp, "allow"); in print_action_instruction()
2048 bprintf(bp, "count"); in print_action_instruction()
2051 bprintf(bp, "deny"); in print_action_instruction()
2055 bprintf(bp, "reset"); in print_action_instruction()
2057 bprintf(bp, "abort"); in print_action_instruction()
2059 bprintf(bp, "reject"); in print_action_instruction()
2062 bprintf(bp, "needfrag %u", in print_action_instruction()
2069 bprintf(bp, "reset6"); in print_action_instruction()
2071 bprintf(bp, "abort6"); in print_action_instruction()
2101 bprintf(bp, " log"); in print_action_instruction()
2103 bprintf(bp, " logamount %d", in print_action_instruction()
2121 bprintf(bp, "nat global"); in print_action_instruction()
2127 bprintf(bp, "setfib %u", cmd->arg1 & 0x7FFF); in print_action_instruction()
2144 bprintf(bp, "%s", s); in print_action_instruction()
2146 bprintf(bp, "eaction %s", s); in print_action_instruction()
2167 bprintf(bp, " %s", s); in print_action_instruction()
2178 bprintf(bp, " %u", cmd->arg1); in print_action_instruction()
2180 bprintf(bp, " %ubytes", in print_action_instruction()
2185 bprintf(bp, "setdscp tablearg"); in print_action_instruction()
2190 bprintf(bp, "setdscp %s", s); in print_action_instruction()
2192 bprintf(bp, "setdscp %u", cmd->arg1 & 0x3F); in print_action_instruction()
2195 bprintf(bp, "reass"); in print_action_instruction()
2200 bprintf(bp, "return %s", s ? s: "<invalid>"); in print_action_instruction()
2206 bprintf(bp, "setmark tablearg"); in print_action_instruction()
2209 bprintf(bp, "setmark %#x", insntoc(cmd, u32)->d[0]); in print_action_instruction()
2212 bprintf(bp, "** unrecognized action %d len %d ", in print_action_instruction()
2272 bprintf(bp, " ip"); in print_proto()
2328 bprintf(bp, " any"); in print_address()
2402 bprintf(bp, "# DISABLED "); in show_static_rule()
2409 bprintf(bp, RULENUM_FORMAT " ", rule->rulenum); in show_static_rule()
2421 bprintf(bp, "%10u ", cntr->timestamp); in show_static_rule()
2436 bprintf(bp, "%s ", timestr); in show_static_rule()
2438 bprintf(bp, "%*s ", twidth, ""); in show_static_rule()
2445 bprintf(bp, "set %d ", rule->set); in show_static_rule()
2480 bprintf(bp, " proto ip"); in show_static_rule()
2491 bprintf(bp, " from"); in show_static_rule()
2496 bprintf(bp, " to"); in show_static_rule()
2508 bprintf(bp, " // ..."); in show_static_rule()
2509 bprintf(bp, "\n"); in show_static_rule()
2524 bprintf(bp, RULENUM_FORMAT, d->rulenum); in show_dyn_state()
2526 bprintf(bp, " "); in show_dyn_state()
2529 bprintf(bp, "(%ds)", d->expire); in show_dyn_state()
2533 bprintf(bp, " PARENT %u", d->count); in show_dyn_state()
2536 bprintf(bp, " LIMIT"); in show_dyn_state()
2539 bprintf(bp, " STATE"); in show_dyn_state()
2544 bprintf(bp, " %s", pe->p_name); in show_dyn_state()
2546 bprintf(bp, " proto %u", d->id.proto); in show_dyn_state()
2550 bprintf(bp, " %s %d", inet_ntoa(a), d->id.src_port); in show_dyn_state()
2553 bprintf(bp, " <-> %s %d", inet_ntoa(a), d->id.dst_port); in show_dyn_state()
2555 bprintf(bp, " %s %d", inet_ntop(AF_INET6, &d->id.src_ip6, buf, in show_dyn_state()
2557 bprintf(bp, " <-> %s %d", inet_ntop(AF_INET6, &d->id.dst_ip6, in show_dyn_state()
2560 bprintf(bp, " UNKNOWN <-> UNKNOWN"); in show_dyn_state()
2562 bprintf(bp, " :%s", object_search_ctlv(fo->tstate, in show_dyn_state()
2568 bprintf(bp, " state 0x%08x%s", d->state, in show_dyn_state()
2571 bprintf(bp, "ORPHANED,"); in show_dyn_state()
2573 bprintf(bp, "BOTH_SYN,"); in show_dyn_state()
2576 bprintf(bp, "F_SYN,"); in show_dyn_state()
2578 bprintf(bp, "R_SYN,"); in show_dyn_state()
2581 bprintf(bp, "BOTH_FIN,"); in show_dyn_state()
2584 bprintf(bp, "F_FIN,"); in show_dyn_state()
2586 bprintf(bp, "R_FIN,"); in show_dyn_state()
2588 bprintf(bp, " f_ack 0x%x, r_ack 0x%x", d->ack_fwd, in show_dyn_state()
6055 bprintf(bp, "bad-addr"); in bprint_sa()
6058 bprintf(bp, "%s", buf); in bprint_sa()
6123 bprintf(&bp, "%s.%03ld AF %s", buf, tp.tv_nsec / 1000000, in ipfw_rtsock_monitor()
6126 bprintf(&bp, " %s >", in ipfw_rtsock_monitor()
6128 bprintf(&bp, " %s, ", in ipfw_rtsock_monitor()
6137 bprintf(&bp, " > "); in ipfw_rtsock_monitor()
6139 bprintf(&bp, ", set %u, rulenum %u, targ 0x%08x, " in ipfw_rtsock_monitor()
6150 bprintf(&bp, ", nh "); in ipfw_rtsock_monitor()
6154 bprintf(&bp, " // %s", loghdr->comment); in ipfw_rtsock_monitor()