* checkentry() and detroy () called multiple times
@ 2003-05-12 14:22 diegows
2003-05-23 19:54 ` Harald Welte
0 siblings, 1 reply; 2+ messages in thread
From: diegows @ 2003-05-12 14:22 UTC (permalink / raw)
To: netfilter-devel
I 'm doing a match module and I have i little confusion.
If I insert a rule using my match module, I see that checkentry() is
called once. If I insert a rule using my match module again I see that
checkentry() is called twice and destroy is called once, and If i insert
a rule for third time I see that checkentry is called tree times and
destroy twice.
Is this the right? why?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: checkentry() and detroy () called multiple times
2003-05-12 14:22 checkentry() and detroy () called multiple times diegows
@ 2003-05-23 19:54 ` Harald Welte
0 siblings, 0 replies; 2+ messages in thread
From: Harald Welte @ 2003-05-23 19:54 UTC (permalink / raw)
To: diegows; +Cc: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]
On Mon, May 12, 2003 at 11:22:00AM -0300, diegows wrote:
> I 'm doing a match module and I have i little confusion.
>
> If I insert a rule using my match module, I see that checkentry() is
> called once. If I insert a rule using my match module again I see that
> checkentry() is called twice and destroy is called once, and If i insert
> a rule for third time I see that checkentry is called tree times and
> destroy twice.
because checkentry is called for every rule that is using your match in
this table. It is supposed to check the *matchinfo data passed on from
userspace.
> Is this the right? why?
yes. see above.
--
- 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-05-23 19:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-12 14:22 checkentry() and detroy () called multiple times diegows
2003-05-23 19:54 ` 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.