[prev in list] [next in list] [prev in thread] [next in thread]
List: netfilter-devel
Subject: Re: [Fwd: Netfilter Hacking]
From: Harald Welte <laforge () gnumonks ! org>
Date: 2001-05-25 18:40:17
[Download RAW message or body]
On Fri, May 25, 2001 at 11:39:08AM +0200, Julien Laganier wrote:
>
> And the hook function is a nf_hookfn, which is a typedef :
>
> 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 *));
>
> What is the parameter int (*okfn)(struct sk_buff *) which is passed to
> the hook ?
it is the function where the program continues after the hook was
sucessfully (i.e. NF_ACCEPT) executed. Look for the various examples
in /usr/src/linux/net/ipv4
--
Live long and prosper
- Harald Welte / laforge@gnumonks.org http://www.gnumonks.org
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M-
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic