your mail

jamal hadi@cyberus.ca
Wed, 13 Feb 2002 08:09:06 -0500 (EST)


On Tue, 12 Feb 2002 kuznet@ms2.inr.ac.ru wrote:

> Hello!
>
> Jamal, what the hell do you invent a problem from nothing?
> The hook is registered in init_module and unregistered in cleanup.

The module part is fine. Registered once and unregistered in cleanup.
The non-module part is the problem. Note, the problem is because
netfilter policies are maintained per system instead of per-device. Maybe
a light wil shine on the netfilter people one of these days ... but before
then solution posted by Harald is: registering more than one time the
same hook will be ignored.

>
> BTW doing something with hook in ingres_destroy() is fatal bug,
> it is called under spinlock.

This is portion that is removed now in new patch.

cheers,
jamal