Skip to contentSkip to conversation

Writing a new netfilter-target with shared-library

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

lore
Share & tools
lore
#0 lore raw

Hello,

i've written a new netfilter-module which implements an ring-buffer for ip-v4 header in kernelspace. This works pretty good. After the decision of implementing some arguments for the kernel-modul like start/stop/reset buffer, changeable buffersize ... i implemented this argument-handling with module parameter (module_param ...). But it would be much nicer to write a shared-library which handles this - so i am able to change parameters with <iptables>.

After reading some faqs i found out that i have to write a shared library but i have to check and test it very often. So patch-o-matic seems a bit unpractiable. Is there a way to build the needed libs out of the "netfilter-build"-system for test purposes? Like <gcc -fPIC -Wall -c testlib.c>.

Regards and hope for help ...
BJO