question: hook/unhook
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