All of lore.kernel.org
 help / color / mirror / Atom feed
* ipq problem on PPC 64 bits arch
@ 2005-09-13 14:10 Eric Leblond
  2005-09-13 14:37 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Leblond @ 2005-09-13 14:10 UTC (permalink / raw)
  To: netfilter-devel

Hi,

We were not able to have libipq working on a PPC 64 (openpower from IBM)
running RHEL4 :
	linux HOST 2.6.9-5.EL #1 SMP DATE ppc64 ppc64 ppc64
iptables has been compiled from latest source (1.3.3).

Application (nufw) is able to get the message (an IPV4 queued packet)
but when it try get the version contained in the payload if failed :
	((struct iphdr*) msg->payload)->version
returns 0.

We try to set
	CFLAGS+=-DIPT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
which was not set by Makefile. But there were no result.

BR,
-- 
Éric Leblond, eleblond@inl.fr
Téléphone : 01 44 89 46 40, Fax : 01 44 89 45 01
INL, http://www.inl.fr

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

* Re: ipq problem on PPC 64 bits arch
  2005-09-13 14:10 ipq problem on PPC 64 bits arch Eric Leblond
@ 2005-09-13 14:37 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2005-09-13 14:37 UTC (permalink / raw)
  To: Eric Leblond; +Cc: netfilter-devel

Eric Leblond wrote:
> Hi,
> 
> We were not able to have libipq working on a PPC 64 (openpower from IBM)
> running RHEL4 :
> 	linux HOST 2.6.9-5.EL #1 SMP DATE ppc64 ppc64 ppc64
> iptables has been compiled from latest source (1.3.3).
> 
> Application (nufw) is able to get the message (an IPV4 queued packet)
> but when it try get the version contained in the payload if failed :
> 	((struct iphdr*) msg->payload)->version
> returns 0.
> 
> We try to set
> 	CFLAGS+=-DIPT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
> which was not set by Makefile. But there were no result.

Known problem, the struct is layouted in a way that makes it fail in
mixed 32/64 bit environments. nfnetlink_queue doesn't have this problem.

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

end of thread, other threads:[~2005-09-13 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-13 14:10 ipq problem on PPC 64 bits arch Eric Leblond
2005-09-13 14:37 ` Patrick McHardy

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.