Skip to content

Commit

Permalink
netfilter: ip6t_REJECT: Remove debug messages from reject_tg6()
Browse files Browse the repository at this point in the history
Make it similar to reject_tg() in ipt_REJECT.

Suggested-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: Subash Abhinov Kasiviswanathan <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
  • Loading branch information
Subash Abhinov Kasiviswanathan authored and ummakynes committed Aug 4, 2015
1 parent f4b3eee commit a6cd379
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/ipv6/netfilter/ip6t_REJECT.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ MODULE_AUTHOR("Yasuyuki KOZAKAI <[email protected]>");
MODULE_DESCRIPTION("Xtables: packet \"rejection\" target for IPv6");
MODULE_LICENSE("GPL");


static unsigned int
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__);
switch (reject->with) {
case IP6T_ICMP6_NO_ROUTE:
nf_send_unreach6(net, skb, ICMPV6_NOROUTE, par->hooknum);
Expand All @@ -65,9 +63,6 @@ reject_tg6(struct sk_buff *skb, const struct xt_action_param *par)
case IP6T_TCP_RESET:
nf_send_reset6(net, skb, par->hooknum);
break;
default:
net_info_ratelimited("case %u not handled yet\n", reject->with);
break;
}

return NF_DROP;
Expand Down

0 comments on commit a6cd379

Please sign in to comment.