Skip to contentSkip to conversation

question about ipt_table_info structure.

DISCUSSION Venkatesh Prasad Ranganath 1 participant 1 message Dec 12, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

I am using netfilter/iptables (1.2.7a) in a project (which may end up contributing to netfilter/iptable branch if it succeeds). Hence, I was browsing the kernel space netfilter/iptables code. I am able to follow the code except for a few glitches.

1> What is the purpose of underflow field in ipt_replace? Where is it used?
2> What is the purpose of term field in struct initial_table in iptables_filter.c? Where is it used?
3> What is the purpose of ipt_replace structure? Where is it used?
4> What is the purpose of table field in ipt_table? It is not used at any time during filtering. (or am I wrong about this?) If it is used, where is it used? 5> Is it correct to say that ACCEPT, DROP, QUEUE, and RETURN are the builtin targets?

Also, can someone comment if my understanding of part of netfilter/iptable as given below is correct.
"Each rule that can be added via iptables command is represented via a set of data rather than a single piece of data. Each criterion to be satisfied for the entire rule to be satisfied is represented as a match. If all of the match/criterion are satisfied then target (linked at the end of the sequence of matches) associated with the rule is executed. Hence, there is only one target with a rule, but may be multiple matches."

Finally, are there any documents that discuss the performance of and issues related (if any) to netfilter/iptables? In particular, I am looking for documents which may have identified bottlenecks or have pointers to locations in which to look for such opportunities. Benchmark results and/or test run results would also be helpful. I am just piggy backing this last question along with the others and I would understand if someone replied "google would be a good place to start" ;-)

waiting for reply,

Signature · 4 lines
Venkatesh Prasad Ranganath,
Dept. Computing and Information Science,
Kansas State University, US.
web: http://www.cis.ksu.edu/~rvprasad