]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
netfilter: conntrack: don't log "invalid" icmpv6 connections
authorFlorian Westphal <fw@strlen.de>
Fri, 25 Aug 2017 00:59:41 +0000 (02:59 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Aug 2017 15:53:56 +0000 (17:53 +0200)
When enabling logging for invalid connections we currently also log most
icmpv6 types, which we don't track intentionally (e.g. neigh discovery).
"invalid" should really mean "invalid", i.e. short header or bad checksum.

We don't do any logging for icmp(v4) either, its just useless noise.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c

index 808f63e2e1ffecee4c93a85858896113d191fe29..43544b975eaeee31afd218493dc5f419b3255298 100644 (file)
@@ -121,11 +121,6 @@ static bool icmpv6_new(struct nf_conn *ct, const struct sk_buff *skb,
                pr_debug("icmpv6: can't create new conn with type %u\n",
                         type + 128);
                nf_ct_dump_tuple_ipv6(&ct->tuplehash[0].tuple);
-               if (LOG_INVALID(nf_ct_net(ct), IPPROTO_ICMPV6))
-                       nf_log_packet(nf_ct_net(ct), PF_INET6, 0, skb, NULL,
-                                     NULL, NULL,
-                                     "nf_ct_icmpv6: invalid new with type %d ",
-                                     type + 128);
                return false;
        }
        return true;