From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ozgur AKAN Subject: target, match and checkentry functions Date: Wed, 28 Apr 2004 12:04:08 +0300 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <408F7388.5010704@aiqa.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------070809030001040007030801" Return-path: To: "netfilter-devel@lists.netfilter.org" Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org This is a multi-part message in MIME format. --------------070809030001040007030801 Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 7bit Hi, I am reading ip_tables.h. There is a structure called ipt_target. In it there is pointer to a function which is below. unsigned int (*target )(struct sk_buff **pskb, .......) I can not find the original function that this function pointer(*target) points. When I search for target, I see that it is defined in 6 files. Which one is used and when? How can I understand it? (this is same for match and checkentry functions) 6 files in which target is defined; * net/ipv4/netfilter/ipt_ECN.c, line 104 * net/ipv4/netfilter/ipt_DSCP.c, line 25 * net/ipv4/netfilter/ipt_MARK.c, line 11 * net/ipv4/netfilter/ipt_TOS.c, line 11 * net/ipv6/netfilter/ip6t_MARK.c, line 11 thanks, -- Ozgur Akan --------------070809030001040007030801 Content-Type: text/html; charset=ISO-8859-9 Content-Transfer-Encoding: 8bit Hi,

I am reading ip_tables.h. There is a structure called  ipt_target. In it there is pointer to a function which is below.

unsigned int (*target)(struct sk_buff **pskb, .......)

I can not find the original function that this function pointer(*target) points. When I search for target, I see that it is defined in 6 files. Which one is used and when? How can I understand it? (this is same for match and checkentry functions)

6 files in which target is defined;
thanks,

-- 
Ozgur Akan
--------------070809030001040007030801--