Skip to contentSkip to conversation

what is okfn?

DISCUSSION Fangweiwei 2 participants 2 messages Dec 3, 2003 netfilter

lore
Share & tools
lore

Fangweiwei

author
#0 lore raw

netfilter-devel,hi!
who can tell me where is okfn defined ? and how it works? I found it in the netfilter.h.

Regards

        Fangweiwei
        [email protected]
         2003-12-03

#1 lore raw
Quoted 2 lines · Fangweiwei

netfilter-devel£¬hi£¡
who can tell me where is okfn defined ? and how it works? I found it in the netfilter.h.

There is several. Any specific use of okfn in netfilter.h you refer to?

In all cases okfn is a pointer to the function which will be called when the operation is completed sucessfully. The actual pointer is given by the caller. For example the okfn sent to netfilter hooks is given by the hook in the kernel telling netfilter where the kernel wishes to continue when netfilter has done it's job..

Regards
Henrik