netfilter: ip6t_REJECT: Log reject reason in reject_tg6()
Subsystems (2)
PATCH 1/1 netfilter: ip6t_REJECT: Log reject reason in reject_tg6()
The existing message is not very useful, so add the reject reason to help in debug.
--- net/ipv6/netfilter/ip6t_REJECT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0
b/net/ipv6/netfilter/ip6t_REJECT.c
index 544b0a9..f956513 100644
net/ipv6/netfilter/ip6t_REJECT.c +0 -0
@@ -42,7 +42,7 @@ reject_tg6(struct sk_buff *skb, const struct
xt_action_param *par)
const struct ip6t_reject_info *reject = par->targinfo; struct net *net = dev_net((par->in != NULL) ? par->in : par->out);
- pr_debug("%s: medium point\n", __func__);
+ pr_debug("%s: case %u\n", __func__, reject->with);
switch (reject->with) {
case IP6T_ICMP6_NO_ROUTE:
nf_send_unreach6(net, skb, ICMPV6_NOROUTE, par->hooknum);
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Pablo Neira Ayuso
maintainerQuoted 14 lines · On Thu, Jul 30, 2015 at 02:34:13AM -0000, [email protected] wrote:
The existing message is not very useful, so add the reject reason to help in debug.
Signed-off-by Subash Abhinov Kasiviswanathan <[email protected]>--- net/ipv6/netfilter/ip6t_REJECT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/ipv6/netfilter/ip6t_REJECT.c +0
-0
net/ipv6/netfilter/ip6t_REJECT.c reject_tg6(struct sk_buff *skb, const struct · line 46
Quoted 6 lines
net/ipv6/netfilter/ip6t_REJECT.c +1
-1@@ -42,7 +42,7 @@ reject_tg6(struct sk_buff *skb, const struct xt_action_param *par)const struct ip6t_reject_info *reject = par->targinfo;struct net *net =dev_net ((par->in !=NULL ) ? par->in : par->out); -pr_debug ("%s: medium point\n" , __func__); +pr_debug ("%s: case %u\n" , __func__, reject->with);
I'd suggest you send a patch to remove this debug message to get this in sync with the IPv4 version of the REJECT target.
Thanks.