Lines Matching refs:printf
132 printf("IP_FW_F_ACCEPT_COMPAT\n");
135 printf("IP_FW_F_COUNT_COMPAT\n");
138 printf("IP_FW_F_PIPE_COMPAT\n");
141 printf("IP_FW_F_QUEUE_COMPAT\n");
144 printf("IP_FW_F_SKIPTO_COMPAT\n");
147 printf("IP_FW_F_DIVERT_COMPAT\n");
150 printf("IP_FW_F_TEE_COMPAT\n");
153 printf("IP_FW_F_FWD_COMPAT\n");
156 printf("IP_FW_F_DENY_COMPAT\n");
159 printf("IP_FW_F_REJECT_COMPAT\n");
162 printf("IP_FW_F_CHECK_S_COMPAT\n");
165 printf("No action given\n");
171 printf("IP_FW_F_IN_COMPAT\n");
174 printf("IP_FW_F_OUT_COMPAT\n");
177 printf("IP_FW_F_IIFACE_COMPAT\n");
180 printf("IP_FW_F_OIFACE_COMPAT\n");
183 printf("IP_FW_F_PRN_COMPAT\n");
186 printf("IP_FW_F_SRNG_COMPAT\n");
189 printf("IP_FW_F_DRNG_COMPAT\n");
192 printf("IP_FW_F_FRAG_COMPAT\n");
195 printf("IP_FW_F_IIFNAME_COMPAT\n");
198 printf("IP_FW_F_OIFNAME_COMPAT\n");
201 printf("IP_FW_F_INVSRC_COMPAT\n");
204 printf("IP_FW_F_INVDST_COMPAT\n");
207 printf("IP_FW_F_ICMPBIT_COMPAT\n");
210 printf("IP_FW_F_UID_COMPAT\n");
213 printf("IP_FW_F_RND_MATCH_COMPAT\n");
216 printf("IP_FW_F_SMSK_COMPAT\n");
219 printf("IP_FW_F_DMSK_COMPAT\n");
222 printf("IP_FW_BRIDGED_COMPAT\n");
225 printf("IP_FW_F_KEEP_S_COMPAT\n");
228 printf("IP_FW_F_CHECK_S_COMPAT\n");
231 printf("IP_FW_F_SME_COMPAT\n");
234 printf("IP_FW_F_DME_COMPAT\n");
243 printf("Version: %s\n", VERSION_ZERO_STR);
246 printf("Version: %s\n", VERSION_ONE_STR);
249 printf("Version: %s\n", CURRENT_API_VERSION_STR);
252 printf("Version: %s\n", NO_VERSION_STR);
255 printf("Unrecognized version\n");
265 printf("Rule #%d\n", vers1_rule->fw_number);
269 printf("fw_pcnt: %llu\n", vers1_rule->fw_pcnt);
270 printf("fw_bcnt: %llu\n", vers1_rule->fw_bcnt);
271 printf("fw_src: %s\n",
273 printf("fw_dst: %s\n",
275 printf("fw_smsk: %s\n",
277 printf("fw_dmsk: %s\n",
284 printf(" icmptype");
291 printf("%c%d", first == 1 ? ' ' : ',', type_index);
300 printf("source ports: fw_uar_compat.fw_pts: %04x", vers1_rule->fw_uar_compat.fw_pts[i]);
302 printf("-");
304 printf(":");
306 printf(",");
309 printf("\n");
313 printf("source ports: fw_uar_compat.fw_pts: %04x", vers1_rule->fw_uar_compat.fw_pts[nsp+i]);
315 printf("-");
317 printf(":");
319 printf(",");
322 printf("\n");
325 printf("fw_ipflg: %d\n", vers1_rule->fw_ipflg);
326 printf("fw_ipopt: %d\n", vers1_rule->fw_ipopt);
327 printf("fw_ipnopt: %d\n", vers1_rule->fw_ipnopt);
328 printf("fw_tcpopt: %d\n", vers1_rule->fw_tcpopt);
329 printf("fw_tcpnopt: %d\n", vers1_rule->fw_tcpnopt);
330 printf("fw_tcpf: %d\n", vers1_rule->fw_tcpf);
331 printf("fw_tcpnf: %d\n", vers1_rule->fw_tcpnf);
332 printf("timestamp: %ld\n", vers1_rule->timestamp);
335 printf("fw_in_if: ");
338 printf("fu_via_ip: %s\n", ipv4str);
339 printf("fu_via_if_compat.name: %s\n", vers1_rule->fw_in_if.fu_via_if_compat.name);
340 printf("fu_via_if_compat.unit: %d\n", vers1_rule->fw_in_if.fu_via_if_compat.unit);
343 printf("fw_in_if: ");
344 printf("fu_via_ip: %s\n",
347 printf("fu_via_if_compat.name: %s\n", vers1_rule->fw_in_if.fu_via_if_compat.name);
348 printf("fu_via_if_compat.unit: %d\n", vers1_rule->fw_in_if.fu_via_if_compat.unit);
351 printf("fw_out_if: ");
352 printf("fu_via_ip: %s\n",
355 printf("fu_via_if_compat.name: %s\n", vers1_rule->fw_out_if.fu_via_if_compat.name);
356 printf("fu_via_if_compat.unit: %d\n", vers1_rule->fw_out_if.fu_via_if_compat.unit);
360 printf("fw_prot: %d\n", vers1_rule->fw_prot);
361 printf("fw_nports: %d\n", vers1_rule->fw_nports);
362 printf("pipe_ptr: %p\n", vers1_rule->pipe_ptr);
363 printf("next_rule_ptr: %p\n", vers1_rule->next_rule_ptr);
364 printf("fw_uid: %d\n", vers1_rule->fw_uid);
365 printf("fw_logamount: %d\n", vers1_rule->fw_logamount);
366 printf("fw_loghighest: %llu\n", vers1_rule->fw_loghighest);
375 printf(" icmptypes");
379 printf("%c%d", sep, i);
397 printf(" setup");
401 printf(" %s ", name);
405 printf("%s%s", comma, list[i].s);
410 printf("%s!%s", comma, list[i].s);
440 printf("%s ", cmd->o.len & F_NOT ? " not": "");
443 printf("me");
457 printf("any");
459 printf("%s", inet_ntop(AF_INET, &a[0], ipv4str, sizeof(ipv4str)));
461 printf(":%s", inet_ntop(AF_INET, &a[1], ipv4str, sizeof(ipv4str)));
463 printf("/%d", mb);
466 printf(",");
479 printf(" any");
481 printf(" %02x:%02x:%02x:%02x:%02x:%02x",
484 printf("&%02x:%02x:%02x:%02x:%02x:%02x",
488 printf("/%d", l);
502 printf("act_ofs: %d\n", vers2_rule->act_ofs);
503 printf("cmd_len: %d\n", vers2_rule->cmd_len);
504 printf("rulenum: %d\n", vers2_rule->rulenum);
505 printf("set: %d\n", vers2_rule->set);
506 printf("pcnt: %llu\n", vers2_rule->pcnt);
507 printf("bcnt: %llu\n", vers2_rule->bcnt);
508 printf("timestamp: %d\n", vers2_rule->timestamp);
517 printf("check-state");
521 printf("allow");
525 printf("count");
529 printf("deny");
534 printf("reset");
536 printf("reject");
538 printf("unreach %u", cmd->arg1);
542 printf("skipto %u", cmd->arg1);
546 printf("pipe %u", cmd->arg1);
550 printf("queue %u", cmd->arg1);
554 printf("divert %u", cmd->arg1);
558 printf("tee %u", cmd->arg1);
565 printf("fwd %s",
569 printf(",%d", s->sa.sin_port);
578 printf("** unrecognized action %d len %d",
584 printf(" log logamount %d", logptr->max_log);
586 printf(" log");
609 printf(" not");
610 printf(" MAC");
613 printf("\n");
622 printf("0x%04x", p[0]);
624 printf("-");
625 printf("0x%04x", p[1]);
627 printf(",");
650 printf("0x%04x", p[0]);
652 printf("-");
653 printf("0x%04x", p[1]);
655 printf(",");
661 printf("O_PROTO");
664 printf(" not");
666 printf(" %u", cmd->arg1);
674 printf(" not");
677 printf("O_FRAG");
681 printf(cmd->len & F_NOT ? " out" : " O_IN");
685 printf(" O_LAYER2");
701 printf(" %s %s", s,
706 printf(" %s %s*", s, cmdif->name);
708 printf(" %s %s%d", s, cmdif->name,
715 printf(" ipid %u", cmd->arg1 );
721 printf("0x%04x", p[0]);
723 printf("-");
724 printf("0x%04x", p[1]);
726 printf(",");
734 printf(" ipttl %u", cmd->arg1 );
740 printf("0x%04x", p[0]);
742 printf("-");
743 printf("0x%04x", p[1]);
745 printf(",");
752 printf(" ipver %u", cmd->arg1 );
756 printf(" ipprecedence %u", (cmd->arg1) >> 5 );
761 printf(" iplen %u", cmd->arg1 );
767 printf("0x%04x", p[0]);
769 printf("-");
770 printf("0x%04x", p[1]);
772 printf(",");
791 printf(" established");
803 printf(" tcpwin %d", ntohs(cmd->arg1));
807 printf(" tcpack %u", ntohl(cmd32->d[0]));
811 printf(" tcpseq %u", ntohl(cmd32->d[0]));
815 printf(" uid %u", cmd32->d[0]);
819 printf(" gid %u", cmd32->d[0]);
823 printf(" verrevpath");
827 printf(" ipsec");
834 printf(" keep-state");
844 printf(" limit");
848 printf("%s%s", comma, p->s);
851 printf(" %d", c->conn_limit);
857 printf(" [opcode %d len %d]",
1367 printf(("%s undefined flag bits set (flags=%x)\n",
1379 printf(("%s neither in nor out\n", err_prefix));
1389 printf(("%s empty interface name\n", err_prefix));
1399 printf(("%s outgoing interface check on incoming\n",
1407 printf(("%s src range set but n_src_p=%d\n",
1414 printf(("%s dst range set but n_dst_p=%d\n",
1421 printf(("%s too many ports (%d+%d)\n",
1433 printf(("%s port(s) specified for non TCP/UDP rule\n",
1447 printf(("%s rule never matches\n", err_prefix));
1456 printf(("%s cannot mix 'frag' and ports\n", err_prefix));
1463 printf(("%s cannot mix 'frag' and TCP flags\n", err_prefix));
1477 printf(("%s unknown reject code\n", err_prefix));
1488 printf(("%s can't divert to port 0\n", err_prefix));
1502 printf(("%s invalid command\n", err_prefix));