Skip to contentSkip to conversation

positive target->verdict

DISCUSSION Swapnil Nagle 1 participant 1 message Aug 10, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hi all,

Short query :

What is the significance of a positive verdict in ipt_standard_target ? Its supposed to be a jump offset, but is it from :
- beginning of current chain
- relative to a current ipt_entry

The netfilter-hacking howto only mentions that its an offset.

Long version :

I was looking at the struct ipt_replace generated for this rule :

iptables -A INPUT -d 192.168.1.1 -j REJECT

The first ipt_entry for INPUT chain (i.e repl->hook_entry[1]) has a verdict 3.

Does that mean that its a jump and the next ipt_entry is the 3rd one from the beginning of this chain ?

Regards,
Swapnil.