Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55df4ac0 authored by Eric Leblond's avatar Eric Leblond Committed by Patrick McHardy
Browse files

netfilter: log invalid new icmpv6 packet with nf_log_packet()



This patch adds a logging message for invalid new icmpv6 packet.

Signed-off-by: default avatarEric Leblond <eric@inl.fr>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 842bff36
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -126,6 +126,10 @@ 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(PF_INET6, 0, skb, NULL, NULL, NULL,
				      "nf_ct_icmpv6: invalid new with type %d ",
				      type + 128);
		return false;
	}
	atomic_set(&ct->proto.icmp.count, 0);