Re: netfilter module and shared libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 2010-04-01 13:46, Mark Ryden wrote:

>Hello,
>
>I wrote a simple, short (35 lines) netfilter module (XTable target)
>The code is below.
>I build it and insmoded it.
>When I try to add this iptables rule:
>
>iptables -A OUTPUT -p UDP --dport 9998 -j ECHO

(Note that there is already an "ECHO" target in Xtables-addons ;-))

>I get this error:
>
>iptables v1.4.5: Couldn't load target `ECHO':/lib64/xtables/libipt_ECHO.so:
>cannot open shared object file: No such file or directory
>
>
>My question is: for a simple netfilter module like this ("ECHO"), must
>I create a
>corresponding shared library  (libipt_ECHO.so)?

Yes.

>Is there a way to avoid this when adding such a rule,
>using some default mechansim ?

Let's ask Patrick:

What do you think of enabling iptables to assume targets with .size=0 
(which don't have options by design) if there was no libxt_XYZ.so found? 
That would make things like libxt_NOTRACK.c obsolete, too.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux