From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Feng Gao <gfree.wind@outlook.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: 答复: 答复: [PATCH 3/3 nf-next] netfilter: nf_ct_helper: Add nf_conntrack_helpers_register()
Date: Fri, 8 Jan 2016 13:22:27 +0100 [thread overview]
Message-ID: <20160108122227.GA3384@salvia> (raw)
In-Reply-To: <BAY403-EAS167CF4DCA9B031F6AEFDF7F95F60@phx.gbl>
On Fri, Jan 08, 2016 at 08:18:02AM +0800, Feng Gao wrote:
> Hi Pablo,
>
> I know how to enhance it now, and it must be converted.
> Because there is one bug in the codes when using
> nf_conntrack_helpers_register.
>
> Take the following codes as an example
> for (i = 0; i < ports_c; i++) {
> nf_ct_helper_init(&ftp[i][0], AF_INET, IPPROTO_TCP, "ftp",
> FTP_PORT, ports[i], &ftp_exp_policy, 0,
> sizeof(struct nf_ct_ftp_master), help,
> nf_ct_ftp_from_nlattr, THIS_MODULE);
> nf_ct_helper_init(&ftp[i][1], AF_INET6, IPPROTO_TCP, "ftp",
> FTP_PORT, ports[i], &ftp_exp_policy, 0,
> sizeof(struct nf_ct_ftp_master), help,
> nf_ct_ftp_from_nlattr, THIS_MODULE);
> }
> ret = nf_conntrack_helpers_register(&ftp[0][0], ports_c * 2);
>
> When init the helper, we initialized the ftp[i][0], ftp[i][1], they are not
> continuous.
> So it bring one bug when use nf_conntrack_helpers_register(&ftp[0][0],
> ports_c * 2);
>
> I will fix it later
Then, I going to keep these patchset back in this round, sorry.
Please, take over my 2/3 and 3/3 iteration, fix them and resubmit.
Thanks.
next prev parent reply other threads:[~2016-01-08 12:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-04 11:48 [PATCH 1/3 nf-next] netfilter: nf_ct_helper: define pr_fmt() Pablo Neira Ayuso
2016-01-04 11:48 ` [PATCH 2/3 nf-next] netfilter: nf_ct_helper: Add new function nf_ct_helper_init() Pablo Neira Ayuso
2016-01-04 11:48 ` [PATCH 3/3 nf-next] netfilter: nf_ct_helper: Add nf_conntrack_helpers_register() Pablo Neira Ayuso
2016-01-04 11:58 ` kbuild test robot
[not found] ` <BAY403-EAS25258E748DF4B612DF8D4AF95F20@phx.gbl>
2016-01-04 16:15 ` 答复: " Pablo Neira Ayuso
2016-01-04 16:46 ` Pablo Neira Ayuso
[not found] ` <BAY403-EAS3732A77CAF9E1DCE79ED89395F20@phx.gbl>
[not found] ` <BAY403-EAS181F9CE879F779A8E160FD195F50@phx.gbl>
[not found] ` <BAY403-EAS167CF4DCA9B031F6AEFDF7F95F60@phx.gbl>
2016-01-08 12:22 ` Pablo Neira Ayuso [this message]
[not found] ` <BAY403-EAS1672CCA8B36E7E4F7EC720E95F70@phx.gbl>
2016-01-09 12:17 ` 答复: 答复: " Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160108122227.GA3384@salvia \
--to=pablo@netfilter.org \
--cc=gfree.wind@outlook.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.