netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* C++ compile errors
@ 2013-06-30  7:35 Amos Jeffries
  2013-06-30 16:14 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 3+ messages in thread
From: Amos Jeffries @ 2013-06-30  7:35 UTC (permalink / raw)
  To: netfilter-devel

Can anyone update me on whether this submission or an equivalent fix 
ever made it into the formal releases? and if so which ones?
https://lkml.org/lkml/2012/9/30/146

Cheers
Amos Jeffries

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: C++ compile errors
  2013-06-30  7:35 C++ compile errors Amos Jeffries
@ 2013-06-30 16:14 ` Pablo Neira Ayuso
  2013-07-01 11:16   ` Amos Jeffries
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2013-06-30 16:14 UTC (permalink / raw)
  To: Amos Jeffries; +Cc: netfilter-devel

Hi Amos,

On Sun, Jun 30, 2013 at 07:35:26PM +1200, Amos Jeffries wrote:
> Can anyone update me on whether this submission or an equivalent fix
> ever made it into the formal releases? and if so which ones?
> https://lkml.org/lkml/2012/9/30/146

The solution for this is to cache the modified header (that compiles
with C++) in your application source code tree. We cannot take changes
to get C++ application compiling, sorry.

Regards.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: C++ compile errors
  2013-06-30 16:14 ` Pablo Neira Ayuso
@ 2013-07-01 11:16   ` Amos Jeffries
  0 siblings, 0 replies; 3+ messages in thread
From: Amos Jeffries @ 2013-07-01 11:16 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

On 1/07/2013 4:14 a.m., Pablo Neira Ayuso wrote:
> Hi Amos,
>
> On Sun, Jun 30, 2013 at 07:35:26PM +1200, Amos Jeffries wrote:
>> Can anyone update me on whether this submission or an equivalent fix
>> ever made it into the formal releases? and if so which ones?
>> https://lkml.org/lkml/2012/9/30/146
> The solution for this is to cache the modified header (that compiles
> with C++) in your application source code tree. We cannot take changes
> to get C++ application compiling, sorry.

Really? The application I'm working with is only trying to use 
getsockopt() interface with IP6T_SO_ORIGINAL_DST. Nothing more.

/usr/include/linux/netfilter_ipv6/ip6_tables.h: In function 
'xt_entry_target* ip 6t_get_target(ip6t_entry*)':
/usr/include/linux/netfilter_ipv6/ip6_tables.h:261:19: error: invalid 
conversion from 'void*' to 'xt_entry_target*' [-fpermissive]
   return (void *)e + e->target_offset;
                    ^

Restricting all users of the published headers to C-compilers is a bit 
annoying. Good way to prevent anyone using IPv6 with NAT though ;-)

Amos

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-01 11:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-30  7:35 C++ compile errors Amos Jeffries
2013-06-30 16:14 ` Pablo Neira Ayuso
2013-07-01 11:16   ` Amos Jeffries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).