another libiptc question
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi, Vincent
I received your libiptc code two weeks ago. Thanks you very much!
But I had something else to do so I tested it yesterday.:-)
Now I had another question about struct ipt_entry_match.
You defined two functions (build_match_udp and build_match_tcp) in your code.
I think it's useful for some matchs such as "-p, --sport ".
But I don't know how iptables handle the other macths, for example limit.
I think for each match, it only knows it's name and size which is pointed to by data, so iptable should handle the particular macth by it's name. For example, if it get "limit" in name in struct ipt_entry_match, it shoud use correlative function to interpret the means of the match. Such matchs struct and functions can be added by myself in kernel.
I don't know if my thoughts is correct.
btw: I downloaded and installed iptables-1.2.6, but I found I still have no full iptables source code, bucause I can't use gdb to trace libiptc program. why?
luoqiang