projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
842bff3
)
netfilter: log invalid new icmpv6 packet with nf_log_packet()
author
Eric Leblond
<eric@inl.fr>
Wed, 18 Feb 2009 15:30:56 +0000
(16:30 +0100)
committer
Patrick McHardy
<kaber@trash.net>
Wed, 18 Feb 2009 15:30:56 +0000
(16:30 +0100)
This patch adds a logging message for invalid new icmpv6 packet.
Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
index c323643ffcf964214bcffb522c518cb6546bc38c..165b256a6fa063943e22617853fe8f59cd572f65 100644
(file)
--- a/
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
+++ b/
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
@@
-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);