* 32 vs 64 bits
@ 2009-03-26 14:26 Nicolas Dichtel
2009-03-26 14:32 ` Jan Engelhardt
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Dichtel @ 2009-03-26 14:26 UTC (permalink / raw)
To: netfilter-devel
Hi all,
I'm trying to understand why the following commit has been done:
http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commitdiff;h=7d5cc229064b0e718046b9ecaebad3426dfff15f
Removes KERNEL_64_USERSPACE_32
Yasuyuki KOZAKAI [Sat, 30 Jun 2007 10:47:57 +0000 (10:47 +0000)]
The recent kernel has compat layer for iptables. It doesn't have
compat layer for libipq and ip6tables, but ip6tables with
KERNEL_64_USERSPACE_32 is still broken. We should fix kernel instead of
fixing them if and when we want use their 32bit binary with 64bit kernel.
Where is the compat layer? If I look in a recent kernel, it seems that
ip_queue.h still uses long and is broken.
http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=blob;f=include/linux/netfilter_ipv4/ip_queue.h;hb=59b8bfd8fd608821e5addc9f4682c7f2424afd8c
Am I wrong?
If yes, what is the right way to fix this? Updating the API?
Thank you,
Nicolas
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 32 vs 64 bits
2009-03-26 14:26 32 vs 64 bits Nicolas Dichtel
@ 2009-03-26 14:32 ` Jan Engelhardt
0 siblings, 0 replies; 2+ messages in thread
From: Jan Engelhardt @ 2009-03-26 14:32 UTC (permalink / raw)
To: Nicolas Dichtel; +Cc: netfilter-devel
On Thursday 2009-03-26 15:26, Nicolas Dichtel wrote:
> Hi all,
>
> I'm trying to understand why the following commit has been done:
>
> http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commitdiff;h=7d5cc229064b0e718046b9ecaebad3426dfff15f
>
> Removes KERNEL_64_USERSPACE_32
>
> Yasuyuki KOZAKAI [Sat, 30 Jun 2007 10:47:57 +0000 (10:47 +0000)]
>
> The recent kernel has compat layer for iptables. It doesn't have
> compat layer for libipq and ip6tables, but ip6tables with
> KERNEL_64_USERSPACE_32 is still broken. We should fix kernel instead of
> fixing them if and when we want use their 32bit binary with 64bit kernel.
>
> Where is the compat layer?
For example, net/netfilter/xt_MARK.c there are some regions with
"#ifdef CONFIG_COMPAT". People used to use the C type "long", which
has different sizes across different platforms, leading to a mess
and evidently the compat conversion functions. Many of the Xtables
modules do not suffer from this and hence there is not that much
compat code left.
> If I look in a recent kernel, it seems that
> ip_queue.h still uses long and is broken.
> [linux/netfilter_ipv4/ip_queue.h]
Indeed this seems so.
> Am I wrong?
> If yes, what is the right way to fix this? Updating the API?
Use libnetfilter_queue ;-)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-26 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-26 14:26 32 vs 64 bits Nicolas Dichtel
2009-03-26 14:32 ` Jan Engelhardt
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.