Lines Matching refs:ipv6

535 	fputc(fw->ipv6.invflags & XT_INV_PROTO ? '!' : ' ', stdout);  in print_firewall()
537 const char *pname = proto_to_name(fw->ipv6.proto, format&FMT_NUMERIC); in print_firewall()
541 printf(FMT("%-5hu", "%hu "), fw->ipv6.proto); in print_firewall()
555 if (fw->ipv6.invflags & IP6T_INV_VIA_IN) { in print_firewall()
561 if (fw->ipv6.iniface[0] != '\0') { in print_firewall()
562 strcat(iface, fw->ipv6.iniface); in print_firewall()
568 if (fw->ipv6.invflags & IP6T_INV_VIA_OUT) { in print_firewall()
574 if (fw->ipv6.outiface[0] != '\0') { in print_firewall()
575 strcat(iface, fw->ipv6.outiface); in print_firewall()
582 fputc(fw->ipv6.invflags & IP6T_INV_SRCIP ? '!' : ' ', stdout); in print_firewall()
583 if (!memcmp(&fw->ipv6.smsk, &in6addr_any, sizeof in6addr_any) in print_firewall()
588 strcpy(buf, xtables_ip6addr_to_numeric(&fw->ipv6.src)); in print_firewall()
590 strcpy(buf, xtables_ip6addr_to_anyname(&fw->ipv6.src)); in print_firewall()
591 strcat(buf, xtables_ip6mask_to_numeric(&fw->ipv6.smsk)); in print_firewall()
595 fputc(fw->ipv6.invflags & IP6T_INV_DSTIP ? '!' : ' ', stdout); in print_firewall()
596 if (!memcmp(&fw->ipv6.dmsk, &in6addr_any, sizeof in6addr_any) in print_firewall()
601 strcpy(buf, xtables_ip6addr_to_numeric(&fw->ipv6.dst)); in print_firewall()
603 strcpy(buf, xtables_ip6addr_to_anyname(&fw->ipv6.dst)); in print_firewall()
604 strcat(buf, xtables_ip6mask_to_numeric(&fw->ipv6.dmsk)); in print_firewall()
612 if(fw->ipv6.flags & IP6T_F_GOTO) in print_firewall()
616 IP6T_MATCH_ITERATE(fw, print_match, &fw->ipv6, format & FMT_NUMERIC); in print_firewall()
621 target->print(&fw->ipv6, t, format & FMT_NUMERIC); in print_firewall()
656 fw->ipv6.src = saddrs[i]; in append_entry()
657 fw->ipv6.smsk = smasks[i]; in append_entry()
659 fw->ipv6.dst = daddrs[j]; in append_entry()
660 fw->ipv6.dmsk = dmasks[j]; in append_entry()
679 fw->ipv6.src = *saddr; in replace_entry()
680 fw->ipv6.dst = *daddr; in replace_entry()
681 fw->ipv6.smsk = *smask; in replace_entry()
682 fw->ipv6.dmsk = *dmask; in replace_entry()
706 fw->ipv6.src = saddrs[i]; in insert_entry()
707 fw->ipv6.smsk = smasks[i]; in insert_entry()
709 fw->ipv6.dst = daddrs[j]; in insert_entry()
710 fw->ipv6.dmsk = dmasks[j]; in insert_entry()
774 fw->ipv6.src = saddrs[i]; in delete_entry()
775 fw->ipv6.smsk = smasks[i]; in delete_entry()
777 fw->ipv6.dst = daddrs[j]; in delete_entry()
778 fw->ipv6.dmsk = dmasks[j]; in delete_entry()
804 fw->ipv6.src = saddrs[i]; in check_entry()
805 fw->ipv6.smsk = smasks[i]; in check_entry()
807 fw->ipv6.dst = daddrs[j]; in check_entry()
808 fw->ipv6.dmsk = dmasks[j]; in check_entry()
1059 print_ip("-s", &(e->ipv6.src), &(e->ipv6.smsk), in print_rule6()
1060 e->ipv6.invflags & IP6T_INV_SRCIP); in print_rule6()
1062 print_ip("-d", &(e->ipv6.dst), &(e->ipv6.dmsk), in print_rule6()
1063 e->ipv6.invflags & IP6T_INV_DSTIP); in print_rule6()
1065 print_iface('i', e->ipv6.iniface, e->ipv6.iniface_mask, in print_rule6()
1066 e->ipv6.invflags & IP6T_INV_VIA_IN); in print_rule6()
1068 print_iface('o', e->ipv6.outiface, e->ipv6.outiface_mask, in print_rule6()
1069 e->ipv6.invflags & IP6T_INV_VIA_OUT); in print_rule6()
1071 print_proto(e->ipv6.proto, e->ipv6.invflags & XT_INV_PROTO); in print_rule6()
1076 if (e->ipv6.flags & IPT_F_FRAG) in print_rule6()
1078 e->ipv6.invflags & IP6T_INV_FRAG ? " !" : ""); in print_rule6()
1081 if (e->ipv6.flags & IP6T_F_TOS) in print_rule6()
1083 e->ipv6.invflags & IP6T_INV_TOS ? " !" : "", in print_rule6()
1084 e->ipv6.tos); in print_rule6()
1088 IP6T_MATCH_ITERATE(e, print_match_save, &e->ipv6); in print_rule6()
1110 target->save(&e->ipv6, t); in print_rule6()
1125 printf(" -%c %s", e->ipv6.flags & IP6T_F_GOTO ? 'g' : 'j', target_name); in print_rule6()
1218 set_option(&cs->options, OPT_JUMP, &cs->fw6.ipv6.invflags, cs->invert); in command_jump()
1499 set_option(&cs.options, OPT_PROTOCOL, &cs.fw6.ipv6.invflags, in do_command6()
1507 cs.fw6.ipv6.proto = xtables_parse_protocol(cs.protocol); in do_command6()
1508 cs.fw6.ipv6.flags |= IP6T_F_PROTO; in do_command6()
1510 if (cs.fw6.ipv6.proto == 0 in do_command6()
1511 && (cs.fw6.ipv6.invflags & XT_INV_PROTO)) in do_command6()
1515 if (is_exthdr(cs.fw6.ipv6.proto) in do_command6()
1516 && (cs.fw6.ipv6.invflags & XT_INV_PROTO) == 0) in do_command6()
1524 set_option(&cs.options, OPT_SOURCE, &cs.fw6.ipv6.invflags, in do_command6()
1530 set_option(&cs.options, OPT_DESTINATION, &cs.fw6.ipv6.invflags, in do_command6()
1537 set_option(&cs.options, OPT_JUMP, &cs.fw6.ipv6.invflags, in do_command6()
1539 cs.fw6.ipv6.flags |= IP6T_F_GOTO; in do_command6()
1554 set_option(&cs.options, OPT_VIANAMEIN, &cs.fw6.ipv6.invflags, in do_command6()
1557 cs.fw6.ipv6.iniface, in do_command6()
1558 cs.fw6.ipv6.iniface_mask); in do_command6()
1566 set_option(&cs.options, OPT_VIANAMEOUT, &cs.fw6.ipv6.invflags, in do_command6()
1569 cs.fw6.ipv6.outiface, in do_command6()
1570 cs.fw6.ipv6.outiface_mask); in do_command6()
1576 &cs.fw6.ipv6.invflags, cs.invert); in do_command6()
1594 set_option(&cs.options, OPT_NUMERIC, &cs.fw6.ipv6.invflags, in do_command6()
1606 set_option(&cs.options, OPT_EXPANDED, &cs.fw6.ipv6.invflags, in do_command6()
1619 set_option(&cs.options, OPT_LINENUMBERS, &cs.fw6.ipv6.invflags, in do_command6()
1629 set_option(&cs.options, OPT_COUNTERS, &cs.fw6.ipv6.invflags, in do_command6()
1725 (cs.fw6.ipv6.invflags & (IP6T_INV_SRCIP | IP6T_INV_DSTIP))) in do_command6()
1821 if (cs.fw6.ipv6.flags & IP6T_F_GOTO) in do_command6()