Re: [PATCH libnetfilter_cthelper] src: fix incorrect building and parsing of the NFCTH_POLICY_SETX attribute

2017-03-24 Thread Pablo Neira Ayuso
On Mon, Mar 20, 2017 at 10:35:22PM +0800, Liping Zhang wrote: > From: Liping Zhang > > In nfct_helper_nlmsg_build_policy(), we always set the attribute type to > NFCTH_POLICY_SET, so we cannot add more than one nfct_helper_policy to > the kernel. > > Also: in

[PATCH libnetfilter_cthelper] src: fix incorrect building and parsing of the NFCTH_POLICY_SETX attribute

2017-03-20 Thread Liping Zhang
From: Liping Zhang In nfct_helper_nlmsg_build_policy(), we always set the attribute type to NFCTH_POLICY_SET, so we cannot add more than one nfct_helper_policy to the kernel. Also: in nfct_helper_nlmsg_parse_policy(), we will increase the helper->policy_num for each