Jan Engelhardt
09bfb8496e
condition: fix compile error on 2.6.31-rt
...
xt_condition.c:58:8: warning: type defaults to 'int' in declaration
of 'DECLARE_MUTEX'
2009-09-12 02:24:13 +02:00
Jan Engelhardt
137ecb9814
extensions: bump revision number to avoid possible POM clash
...
Users still using a kernel with POM modules may have problems due to
differing binary structures. Bump the revision numbers of the
Xtables-addons modules, to make them distinct from POM.
2009-05-14 21:42:05 +02:00
Bryan Duff
e36c7575fc
condition: compile fix for 2.6.30-rc
2009-04-17 16:01:45 +02:00
Jan Engelhardt
ee7e4f5a42
Update for Linux 2.6.28
2008-11-18 12:51:25 +01:00
Jan Engelhardt
be6fbee56a
src: use NFPROTO_ constants
2008-11-18 11:57:14 +01:00
Jan Engelhardt
213acdffda
xt_condition: ues glue-provided init_net__proc_net
2008-09-01 15:27:43 -04:00
Jan Engelhardt
74880dd6ca
Update license texts
2008-08-02 13:08:48 -04:00
Jan Engelhardt
37e51dc44d
condition: resolve typesize compiler warning
...
Fix warning: field precision should have type "int", but argument 2
has type "long unsigned int".
2008-04-09 19:56:11 +02:00
Jan Engelhardt
e304252f4b
condition: greatly improve processing speed
...
Replace the loop over all possible condvars by a simple deref. This
changes the runtime from O(n) to O(1) at the expense of only 8 bytes
for rule.
2008-04-08 11:58:35 +02:00
Jan Engelhardt
32f06cbedf
condition: squash variables
2008-04-08 11:58:35 +02:00
Jan Engelhardt
f5f17a27c5
condition: style cleanup
2008-04-08 11:58:34 +02:00
Jan Engelhardt
c9579115c3
condition: rework condvar name check
...
Use memchr() instead of a for loop to detect '/' in the condvar name.
Also unconditionally disallow names starting with a dot.
2008-04-08 11:58:34 +02:00
Jan Engelhardt
586353342f
condition: use appropriate types and return values
2008-04-08 11:58:34 +02:00
Jan Engelhardt
317a944fec
condition: use unique symbol names and rewrite init function
...
Use an array of xt_match for the match vtable.
2008-04-08 11:58:34 +02:00
Jan Engelhardt
24dad368dd
condition: use new structure type
...
Use __u8 for the invert flag instead of int. Reduce CONDITION_NAME_LEN
from 32 to 31 so that the entire structure can fit into a cacheline.
2008-04-08 11:58:34 +02:00
Jan Engelhardt
7d0efafdb3
condition: remove casts, add const qualifiers
2008-04-08 11:58:33 +02:00
Jan Engelhardt
330c1fe783
condition: remove version #ifs and compat selectors
2008-04-08 11:58:33 +02:00
Jan Engelhardt
72dc73e6a5
condition: import 20080125 code base
2008-04-08 11:58:33 +02:00