Home | History | Annotate | Download | only in iptables

Lines Matching refs:ipv6

228 	{ "ipv6-icmp", IPPROTO_ICMPV6 },
749 (strcmp(match_name,"ipv6-icmp") == 0) ||
880 /* proto means IPv6 extension header ? */
1350 flags = fw->ipv6.flags;
1363 fputc(fw->ipv6.invflags & IP6T_INV_PROTO ? '!' : ' ', stdout);
1365 char *pname = proto_to_name(fw->ipv6.proto, format&FMT_NUMERIC);
1369 printf(FMT("%-5hu", "%hu "), fw->ipv6.proto);
1383 if (fw->ipv6.invflags & IP6T_INV_VIA_IN) {
1389 if (fw->ipv6.iniface[0] != '\0') {
1390 strcat(iface, fw->ipv6.iniface);
1396 if (fw->ipv6.invflags & IP6T_INV_VIA_OUT) {
1402 if (fw->ipv6.outiface[0] != '\0') {
1403 strcat(iface, fw->ipv6.outiface);
1410 fputc(fw->ipv6.invflags & IP6T_INV_SRCIP ? '!' : ' ', stdout);
1411 if (!memcmp(&fw->ipv6.smsk, &in6addr_any, sizeof in6addr_any)
1416 sprintf(buf, "%s", addr_to_numeric(&(fw->ipv6.src)));
1418 sprintf(buf, "%s", addr_to_anyname(&(fw->ipv6.src)));
1419 strcat(buf, mask_to_numeric(&(fw->ipv6.smsk)));
1423 fputc(fw->ipv6.invflags & IP6T_INV_DSTIP ? '!' : ' ', stdout);
1424 if (!memcmp(&fw->ipv6.dmsk, &in6addr_any, sizeof in6addr_any)
1429 sprintf(buf, "%s", addr_to_numeric(&(fw->ipv6.dst)));
1431 sprintf(buf, "%s", addr_to_anyname(&(fw->ipv6.dst)));
1432 strcat(buf, mask_to_numeric(&(fw->ipv6.dmsk)));
1439 IP6T_MATCH_ITERATE(fw, print_match, &fw->ipv6, format & FMT_NUMERIC);
1444 target->print(&fw->ipv6, t, format & FMT_NUMERIC);
1477 fw->ipv6.src = saddrs[i];
1479 fw->ipv6.dst = daddrs[j];
1498 fw->ipv6.src = *saddr;
1499 fw->ipv6.dst = *daddr;
1521 fw->ipv6.src = saddrs[i];
1523 fw->ipv6.dst = daddrs[j];
1583 fw->ipv6.src = saddrs[i];
1585 fw->ipv6.dst = daddrs[j];
2037 set_option(&options, OPT_PROTOCOL, &fw.ipv6.invflags,
2045 fw.ipv6.proto = parse_protocol(protocol);
2046 fw.ipv6.flags |= IP6T_F_PROTO;
2048 if (fw.ipv6.proto == 0
2049 && (fw.ipv6.invflags & IP6T_INV_PROTO))
2053 if (fw.ipv6.proto != IPPROTO_ESP &&
2054 is_exthdr(fw.ipv6.proto))
2061 set_option(&options, OPT_SOURCE, &fw.ipv6.invflags,
2068 set_option(&options, OPT_DESTINATION, &fw.ipv6.invflags,
2074 set_option(&options, OPT_JUMP, &fw.ipv6.invflags,
2098 set_option(&options, OPT_VIANAMEIN, &fw.ipv6.invflags,
2101 fw.ipv6.iniface,
2102 fw.ipv6.iniface_mask);
2107 set_option(&options, OPT_VIANAMEOUT, &fw.ipv6.invflags,
2110 fw.ipv6.outiface,
2111 fw.ipv6.outiface_mask);
2117 &fw.ipv6.invflags, invert);
2144 set_option(&options, OPT_NUMERIC, &fw.ipv6.invflags,
2156 set_option(&options, OPT_EXPANDED, &fw.ipv6.invflags,
2169 set_option(&options, OPT_LINENUMBERS, &fw.ipv6.invflags,
2179 set_option(&options, OPT_COUNTERS, &fw.ipv6.invflags,
2326 &(fw.ipv6.smsk), &nsaddrs);
2330 &(fw.ipv6.dmsk), &ndaddrs);
2333 (fw.ipv6.invflags & (IP6T_INV_SRCIP | IP6T_INV_DSTIP)))