About ipt_dstlimit.c, 2.6.10
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line · Grega Bremec
Hello, Harald.
Hi Grega!
Quoted 2 lines
I'm writing to you with regard to latest released pomng and the dstlimit match patch, which I was trying to build into the kernel.
dstlimit hast been superseded by hashlimit. But your locking issue would be the same with both ;)
Quoted 5 lines
Somehow, it turns out you're using
MUST_BE_LOCKED()on aspinlock_t, yet 2.6.10 (probably previous releases, maybe one of the patches I applied, but it doesn't seem so, after skimming over them) expects all arguments to MUST_BE_(READ_|WRITE_|)LOCKED() to be declared withDECLARE_RWLOCK(), which is impossible to add to struct, as it initializes as well.
mh. I see. It appears like I never tried to compile the code with NETFILTER_DEBUG enabled.
The correct fix is to add some macros/functions to lockhelp.h that allow you to use a spinlock or rwlock within a structure. This would require a macro or typedef for the lock itself, and some initialization function that initializes at runtime, just like the DECLARE_foo_LOCK macros work.
Quoted 5 lines
While my question may be related to any possible fixes to that, it is not my primary concern to have that happen irrespective of my actions. I was just wondering if you know any macros that can still operate on
spinlock_tmembers in 2.6.10, so I can produce the (probably extremely tiny) patch myself and send it to you.
I doubt that this code ever compiled with NETFILTER_DEBUG enabled.
Quoted 1 line
Grega Bremec
Signature · 5 lines
- Harald Welte <[email protected]> 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