From 5e6244b2ad70d7a59508aa9cf33efcd69bcde45c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 9 Feb 2013 18:27:04 +0100 Subject: 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 --- iptables/xtables.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'iptables/xtables.c') 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, -- cgit v1.2.3