From: Pablo Neira Ayuso Date: Sat, 9 Feb 2013 17:27:04 +0000 (+0100) Subject: xtables: ipv6: fix wrong error if -p is used X-Git-Tag: v1.6.0~111^2~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e6244b2ad70d7a59508aa9cf33efcd69bcde45c;p=thirdparty%2Fiptables.git xtables: ipv6: fix wrong error if -p is used 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 --- diff --git a/iptables/xtables.c b/iptables/xtables.c index 9c59b7d8..328bc695 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -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,