Skip to contentSkip to conversation

ipq problem on PPC 64 bits arch

DISCUSSION Eric Leblond 2 participants 2 messages Sep 13, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

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,

Signature · 3 lines
Éric Leblond, [email protected]
Téléphone : 01 44 89 46 40, Fax : 01 44 89 45 01
INL, http://www.inl.fr
#1 lore raw
Quoted 7 lines · Eric Leblond

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).

Quoted 8 lines

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.