Skip to contentSkip to conversation

Additional arguments to a module

DISCUSSION Daniel Ivanov 1 participant 1 message Oct 28, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

I want to add an additional argument to the ipt_MARK.c module.
Where do i register that one? I would like a check for true/false(0/1) on that argument and different return code accordint to the value. like :
iptables -t mangle -A PREROUTING -j MARK --set-mark 5 --my 1
to be acceptable.
I suppose it has to do with targinfo , but don't know how to act further. Any clues appreciated.