]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables: ipv6: fix wrong error if -p is used
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 9 Feb 2013 17:27:04 +0000 (18:27 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:24 +0000 (23:50 +0100)
shell$ xtables -6 -I INPUT -p tcp --dport 22 -j ACCEPT
xtables v1.4.15: -f is not valid on IPv6
Try `xtables -h' or 'xtables --help' for more information.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/xtables.c

index 9c59b7d8db2cfae63b856e6cf9747db2635cd468..328bc695cfeab34b77960004c3e66c07e0fd995d 100644 (file)
@@ -1214,10 +1214,6 @@ int do_commandx(struct nft_handle *h, int argc, char *argv[], char **table)
                cs.fw6.ipv6.invflags = invflags;
                cs.fw6.ipv6.flags = flags;
 
-               if (flags & IPT_F_FRAG)
-                       xtables_error(PARAMETER_PROBLEM,
-                                     "-f is not valid on IPv6");
-
                if (is_exthdr(cs.fw6.ipv6.proto)
                    && (cs.fw6.ipv6.invflags & XT_INV_PROTO) == 0)
                        fprintf(stderr,