Skip to contentSkip to conversation

Compiling a netfilter shared library

DISCUSSION Bjo Breiskoll 1 participant 1 message Mar 10, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

Hello.

Im currently developing a new netfilter-target for the current netfilter-framework under kernel 2.6.x. I had only a few problems with the kernel-modul registering a new target. After the decision of implementing a few user-mode commands via iptables i need to compile a shared-library for my module.
And here is the problem: Is there a "special" way for compiling iptables-shared-libs? For testing purpose i've tried the TCPLAG-Target: The Kernelmodul compiled well but with "gcc -fPIC -c libipt_TCPLAG.c" for the library only compile-errors occour.

Maybe i need special compilation arguments?

Regards
BJO