Re: mmotm 2014-09-25-16-28 uploaded (nf_nat_masquerade_ipv4.c)

Arturo Borrero Gonzalez
2014-09-26T17:04:08Z

On 26 September 2014 18:54, Randy Dunlap <rdunlap@infradead.org> wrote:
> On 09/25/14 16:28, akpm@linux-foundation.org wrote:
>> The mm-of-the-moment snapshot 2014-09-25-16-28 has been uploaded to
>>
>> http://www.ozlabs.org/~akpm/mmotm/
>>
>> mmotm-readme.txt says
>>
>> README for mm-of-the-moment:
>>
>> http://www.ozlabs.org/~akpm/mmotm/
>>
>> This is a snapshot of my -mm patch queue. Uploaded at random hopefully
>> more than once a week.
>
> ../net/ipv4/netfilter/nf_nat_masquerade_ipv4.c: In function 'nf_nat_masquerade_ipv4':
> ../net/ipv4/netfilter/nf_nat_masquerade_ipv4.c:59:5: error: 'struct nf_conn_nat' has no member named 'masq_index'
> nat->masq_index = out->ifindex;
> ^
> ../net/ipv4/netfilter/nf_nat_masquerade_ipv4.c: In function 'device_cmp':
> ../net/ipv4/netfilter/nf_nat_masquerade_ipv4.c:83:12: error: 'const struct nf_conn_nat' has no member named 'masq_index'
> return nat->masq_index == (int)(long)ifindex;
> ^
> ../net/ipv4/netfilter/nf_nat_masquerade_ipv4.c:84:1: warning: control reaches end of non-void function [-Wreturn-type]
>
>

That seems fixed in this commit by Pablo Neira:

http://git.kernel.org/cgit/linux/kernel/git/pablo/nf-next.git/commit/?id=67981fefb20e717cea55b42f9081a833fa46b3be

I guess the patch will hit linux-next soon.

Thanks, regards.

--
Arturo Borrero González