Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / netfilter / nf_nat_ftp.c
index e839b97b2863a052c2c69872f98041114327f152..e84a578dbe351da3122732cd2581a0e9322931a3 100644 (file)
@@ -96,8 +96,10 @@ static unsigned int nf_nat_ftp(struct sk_buff *skb,
                }
        }
 
-       if (port == 0)
+       if (port == 0) {
+               nf_ct_helper_log(skb, ct, "all ports in use");
                return NF_DROP;
+       }
 
        buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer),
                                    &newaddr, port);
@@ -113,6 +115,7 @@ static unsigned int nf_nat_ftp(struct sk_buff *skb,
        return NF_ACCEPT;
 
 out:
+       nf_ct_helper_log(skb, ct, "cannot mangle packet");
        nf_ct_unexpect_related(exp);
        return NF_DROP;
 }