Skip to contentSkip to conversation

question: hook/unhook

DISCUSSION Mikkel Christiansen 1 participant 1 message Jul 1, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hi

We're working with an efficient packet filter
(see http://www.cs.auc.dk/~mixxel/cf).

In the implementation we would like to block
all arriving packets while moving from one filter
to another. I.e. something like:

block_all_packets();
nf_unregister_hook(some_nf_hook_ops_struct);
nf_register_hook(some_other_nf_hook_ops_struct);
unblock_all_packets();

Does netfilter provide functions for doing this or can anyone recommend a proper way to do this?

Cheers & thanks
Mikkel