From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [netfilter socket hooks 1/5]: Add socket hook infrastructure Date: Thu, 12 May 2005 01:27:31 +0200 Message-ID: <428294E3.9020501@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: juha.heljoranta@evtek.fi, Rusty Russell , netfilter-devel@lists.netfilter.org Return-path: To: James Morris In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org James Morris wrote: > On Tue, 10 May 2005, Patrick McHardy wrote: > > >>+struct nf_sk_hook_ops >>+{ >>+ struct list_head list; >>+ >>+ /* User fills in from here down. */ >>+ nf_sk_hookfn *hook; >>+ struct module *owner; >>+ unsigned int pf; >>+ unsigned int hooknum; >>+ /* Hooks are ordered in ascending priority. */ >>+ int priority; >>+}; > > > Do you need to add this struct? It's the same as nf_hook_ops. Unfortunately yes, the hook functions have different prototypes. Regards Patrick