diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-02-09 18:27:04 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:24 +0100 |
commit | 5e6244b2ad70d7a59508aa9cf33efcd69bcde45c (patch) | |
tree | 22cb78b1197ebe9236e09aa443311aacf91694de | |
parent | c51b85f995caebd41e6d063c8bcab513b305bcaa (diff) |
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 <pablo@netfilter.org>
-rw-r--r-- | iptables/xtables.c | 4 |
1 files changed, 0 insertions, 4 deletions
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, |