• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iptables-1.4.12.1/iptables/

Lines Matching refs:ipv6

128 	{.name = "ipv6",          .has_arg = 0, .val = '6'},
254 " --ipv6 -6 Nothing (line is ignored by iptables-restore)\n"
573 fputc(fw->ipv6.invflags & IP6T_INV_PROTO ? '!' : ' ', stdout);
575 const char *pname = proto_to_name(fw->ipv6.proto, format&FMT_NUMERIC);
579 printf(FMT("%-5hu", "%hu "), fw->ipv6.proto);
593 if (fw->ipv6.invflags & IP6T_INV_VIA_IN) {
599 if (fw->ipv6.iniface[0] != '\0') {
600 strcat(iface, fw->ipv6.iniface);
606 if (fw->ipv6.invflags & IP6T_INV_VIA_OUT) {
612 if (fw->ipv6.outiface[0] != '\0') {
613 strcat(iface, fw->ipv6.outiface);
620 fputc(fw->ipv6.invflags & IP6T_INV_SRCIP ? '!' : ' ', stdout);
621 if (!memcmp(&fw->ipv6.smsk, &in6addr_any, sizeof in6addr_any)
626 strcpy(buf, xtables_ip6addr_to_numeric(&fw->ipv6.src));
628 strcpy(buf, xtables_ip6addr_to_anyname(&fw->ipv6.src));
629 strcat(buf, xtables_ip6mask_to_numeric(&fw->ipv6.smsk));
633 fputc(fw->ipv6.invflags & IP6T_INV_DSTIP ? '!' : ' ', stdout);
634 if (!memcmp(&fw->ipv6.dmsk, &in6addr_any, sizeof in6addr_any)
639 strcpy(buf, xtables_ip6addr_to_numeric(&fw->ipv6.dst));
641 strcpy(buf, xtables_ip6addr_to_anyname(&fw->ipv6.dst));
642 strcat(buf, xtables_ip6mask_to_numeric(&fw->ipv6.dmsk));
650 if(fw->ipv6.flags & IP6T_F_GOTO)
654 IP6T_MATCH_ITERATE(fw, print_match, &fw->ipv6, format & FMT_NUMERIC);
659 target->print(&fw->ipv6, t, format & FMT_NUMERIC);
694 fw->ipv6.src = saddrs[i];
695 fw->ipv6.smsk = smasks[i];
697 fw->ipv6.dst = daddrs[j];
698 fw->ipv6.dmsk = dmasks[j];
717 fw->ipv6.src = *saddr;
718 fw->ipv6.dst = *daddr;
719 fw->ipv6.smsk = *smask;
720 fw->ipv6.dmsk = *dmask;
744 fw->ipv6.src = saddrs[i];
745 fw->ipv6.smsk = smasks[i];
747 fw->ipv6.dst = daddrs[j];
748 fw->ipv6.dmsk = dmasks[j];
812 fw->ipv6.src = saddrs[i];
813 fw->ipv6.smsk = smasks[i];
815 fw->ipv6.dst = daddrs[j];
816 fw->ipv6.dmsk = dmasks[j];
842 fw->ipv6.src = saddrs[i];
843 fw->ipv6.smsk = smasks[i];
845 fw->ipv6.dst = daddrs[j];
846 fw->ipv6.dmsk = dmasks[j];
1096 print_ip("-s", &(e->ipv6.src), &(e->ipv6.smsk),
1097 e->ipv6.invflags & IP6T_INV_SRCIP);
1099 print_ip("-d", &(e->ipv6.dst), &(e->ipv6.dmsk),
1100 e->ipv6.invflags & IP6T_INV_DSTIP);
1102 print_iface('i', e->ipv6.iniface, e->ipv6.iniface_mask,
1103 e->ipv6.invflags & IP6T_INV_VIA_IN);
1105 print_iface('o', e->ipv6.outiface, e->ipv6.outiface_mask,
1106 e->ipv6.invflags & IP6T_INV_VIA_OUT);
1108 print_proto(e->ipv6.proto, e->ipv6.invflags & IP6T_INV_PROTO);
1111 /* not definied in ipv6
1113 if (e->ipv6.flags & IPT_F_FRAG)
1115 e->ipv6.invflags & IP6T_INV_FRAG ? " !" : "");
1118 if (e->ipv6.flags & IP6T_F_TOS)
1120 e->ipv6.invflags & IP6T_INV_TOS ? " !" : "",
1121 e->ipv6.tos);
1125 IP6T_MATCH_ITERATE(e, print_match_save, &e->ipv6);
1136 printf(" -%c %s", e->ipv6.flags & IP6T_F_GOTO ? 'g' : 'j', target_name);
1154 target->save(&e->ipv6, t);
1277 set_option(&cs->options, OPT_JUMP, &cs->fw6.ipv6.invflags, cs->invert);
1539 set_option(&cs.options, OPT_PROTOCOL, &cs.fw6.ipv6.invflags,
1547 cs.fw6.ipv6.proto = xtables_parse_protocol(cs.protocol);
1548 cs.fw6.ipv6.flags |= IP6T_F_PROTO;
1550 if (cs.fw6.ipv6.proto == 0
1551 && (cs.fw6.ipv6.invflags & IP6T_INV_PROTO))
1555 if (is_exthdr(cs.fw6.ipv6.proto)
1556 && (cs.fw6.ipv6.invflags & IP6T_INV_PROTO) == 0)
1564 set_option(&cs.options, OPT_SOURCE, &cs.fw6.ipv6.invflags,
1570 set_option(&cs.options, OPT_DESTINATION, &cs.fw6.ipv6.invflags,
1577 set_option(&cs.options, OPT_JUMP, &cs.fw6.ipv6.invflags,
1579 cs.fw6.ipv6.flags |= IP6T_F_GOTO;
1594 set_option(&cs.options, OPT_VIANAMEIN, &cs.fw6.ipv6.invflags,
1597 cs.fw6.ipv6.iniface,
1598 cs.fw6.ipv6.iniface_mask);
1606 set_option(&cs.options, OPT_VIANAMEOUT, &cs.fw6.ipv6.invflags,
1609 cs.fw6.ipv6.outiface,
1610 cs.fw6.ipv6.outiface_mask);
1616 &cs.fw6.ipv6.invflags, cs.invert);
1625 set_option(&cs.options, OPT_NUMERIC, &cs.fw6.ipv6.invflags,
1637 set_option(&cs.options, OPT_EXPANDED, &cs.fw6.ipv6.invflags,
1650 set_option(&cs.options, OPT_LINENUMBERS, &cs.fw6.ipv6.invflags,
1660 set_option(&cs.options, OPT_COUNTERS, &cs.fw6.ipv6.invflags,
1756 (cs.fw6.ipv6.invflags & (IP6T_INV_SRCIP | IP6T_INV_DSTIP)))
1844 if (cs.fw6.ipv6.flags & IP6T_F_GOTO)