All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about nf_hookfn
@ 2003-10-10 15:14 Emmanuel Fleury
  2003-10-10 20:23 ` Harald Welte
  0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Fleury @ 2003-10-10 15:14 UTC (permalink / raw)
  To: netfilter-devel

Hi all,

I would like to know more about the last argument of the function
nf_hookfn defined in /usr/src/linux/include/linux/netfilter.h.

Basically, you have:

typedef unsigned int nf_hookfn(unsigned int hooknum,
                               struct sk_buff **skb,
                               const struct net_device *in,
                               const struct net_device *out,
                               int (*okfn)(struct sk_buff *));

I got all the other arguments but the last one...

What is it for ???

Regards
-- 
Emmanuel

Modern technology just makes people try to do everything at once.
  -- Calvin & Hobbes (Bill Waterson)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question about nf_hookfn
  2003-10-10 15:14 Question about nf_hookfn Emmanuel Fleury
@ 2003-10-10 20:23 ` Harald Welte
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Welte @ 2003-10-10 20:23 UTC (permalink / raw)
  To: Emmanuel Fleury; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

On Fri, Oct 10, 2003 at 05:14:05PM +0200, Emmanuel Fleury wrote:
> typedef unsigned int nf_hookfn(unsigned int hooknum,
>                                struct sk_buff **skb,
>                                const struct net_device *in,
>                                const struct net_device *out,
>                                int (*okfn)(struct sk_buff *));
> 
> I got all the other arguments but the last one...
> 
> What is it for ???

it is the function that gets called if the packet is to continue (i.e. when the
registered function returns NF_ACCEPT).

> Regards
> -- 
> Emmanuel


-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-10 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-10 15:14 Question about nf_hookfn Emmanuel Fleury
2003-10-10 20:23 ` Harald Welte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.