Help on compiling iptables targets

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

 



Hi all
I m trying to write new tables, targets and matches for iptables.
I have compiled a new table (mytable) and get a .ko file; then insmod
in the kernel and finally used it from iptables command without
problems.
The script i used is:

obj -m := mytable.o
all:
make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(PWD) modules

Then i compiled the TTL target (just to see if thinghs go wrong) with
the same script, getting the .ko file.
When i tried to use TTL target, i got the following:

#iptables -t mangle -A PREROUTING -i eth0 -j TTL --ttl-set 64
/usr/local/libexec/xtables/libipt_TTL.so:
/usr/local/libexec/xtables/libipt_TTL.so: only ET_DYN and ET_EXEC can
be loaded
iptables v1.4.1.rc2:Unknown arg '--ttl-set'


What is the correct script to generate libipt_TTL.so?
What is the reason that iptables accept .ko tables and don accept .ko targets?

Thanks,
Juan Pablo
--
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